Monitoring VK3RTV with a LED Display 
Thursday, June 20, 2013, 07:28 AM
Posted by Administrator
I have added a page with details of my new LED Display and how I have connected it to my Elvin router.

http://www.rocode.com/amateurradio/VK3RTVLedDisplay.html

I created an Elvin producer and consumer for the LED Display and connected it to my Temperature and VK3RTV Monitoring scripts.


view entry ( 2685 views )   |  permalink
Elvin Producer - Updated Temperature 
Tuesday, February 26, 2013, 10:24 AM
Posted by Administrator
I have updated the /usr/local/bin/weatherchecker.sh script to remove a hardware error.

The original blog posting may be found via
http://www.rocode.com/blog/index.php?entry=Elvin-Producer---Temperature

The 1-wire temperature sensor is intermittently giving a false temperature of 85 degrees Celsius.


#!/bin/bash

TEMPERATURE=85

while [ "85" == "${TEMPERATURE:0:2}" ];
do
TEMPERATURE=`awk '{printf "%2.1f", $1}' /1-wire/28.92EEC4030000/temperature`

case "$TEMPERATURE" in
"")
READOUT="Not Available";;
*)
CELSIUS="°C"
READOUT=$TEMPERATURE$CELSIUS;;
esac

sleep 1

done

TIMENOW=`date +%d\ %T`
MSG="$TIMENOW $READOUT"
HOSTNAME="Lounge"

/usr/local/sbin/tick elvin://192.168.1.1 Sensors "$HOSTNAME" "$MSG" 10 > /dev/null


Now the producer waits for the 85 to clear and then emits an actual reading.
view entry ( 2649 views )   |  permalink
Network Connected Sensors 
Friday, February 1, 2013, 06:07 AM
Posted by Administrator
I have added a new page to detail my networked connected sensors around my home LAN.

http://www.rocode.com/sensors/

The first two sensors detailed are:

A Raspberry Pi and a Reed Switch
http://rocode.com/sensors/#ReedSwitch

A 1-wire Temperature Sensor
http://rocode.com/sensors/#Temperature
view entry ( 2949 views )   |  permalink
Elvin Producer - Internet Usage 
Monday, January 14, 2013, 11:57 PM
Posted by Administrator
I have added a new Elvin producer to display the current Internet usage of my Bigpond Account.

I have taken the code from http://pastebin.com/XiX6p0L5 that collects the usage details out of Bigpond.

I added a few lines and put this script in to /usr/local/bin/bigpondchecker.sh

BPUSAGE=`$GREP -m 1 'Current Account Usage' $TEMP_TEXT_FILE | awk '{print $4}'`
BPSTATUS=`$GREP -m 1 'Account Usage Status' $TEMP_TEXT_FILE | awk '{print $4,$5}'`

# Check if usage was available on Bigpond meter page
if [ "Usage" == "$BPUSAGE" ];
then
BPUSAGE="Not"
BPSTATUS="Available"
fi

TIMENOW=`date +%d\ %T`
MSG="$TIMENOW Usage $BPUSAGE $BPSTATUS"
HOSTNAME="BigPond"

/usr/local/sbin/tick elvin://192.168.1.1 Status "$HOSTNAME" "$MSG" 10 > /dev/null


I then added a cron hourly entry to call this script each hour.
i.e /etc/cron.hourly/4bigpondchecker that calls the above script.

Here is how the Elvin notification looks on my Windows 7 desktop.

The notification is from the "Status" group saying 24 GBytes have been used in the current billing period.

The "Sensors" group Temperature producer also ran and is displayed prior to the Internet Usage report.

Update: Here is a brief history of usage amounts as stored in Sticker.

view entry ( 2712 views )   |  permalink
Elvin Producer - Temperature 
Monday, January 14, 2013, 11:12 PM
Posted by Administrator
I have added a new Elvin producer for a temperature sensor using 1-wire technology.


I use a DS9490R-P 1-Wire USB Adaptor from Hobby Boards.
http://www.hobby-boards.com/store/products/1%252dWire-USB-Adaptor.html

I added a Digital Thermal Probe or Sensor DS18B20 from ebay for $3.
Here is an example sensor on Amazon.com
http://www.amazon.com/365buying-DS18B20-Temperature-Sensor-Waterproof/dp/B008HODWBU

Using a new crimping tool, a RJ12 connector and 1 meter of flat telephone wire. I connected the wire to the RJ12 connector and then soldered the other end to the lead of the DS18B20.

I installed owserver, owhttpd and owfs to my Fedora Linux computer.
http://sourceforge.net/projects/owfs/

I got them working using the follow instructions.
http://www.it-slav.net/blogs/2008/11/01/1-wire-getting-started/
I put the 3 commands from the above page into a service file called /etc/rc.d/init.d/owfs. This starts the 1-wire system on boot and creates a /1-wire directory on the filesystem.

I created a /usr/local/bin/weatherchecker.sh script as shown

#!/bin/bash

TEMPERATURE=`awk '{printf "%2.1f", $1}' /1-wire/28.92EEC4030000/temperature`

# Check if temperature was available
if [ "" == "$TEMPERATURE" ];
then
TEMPERATURE="Not Available"
else
CELSIUS="°C"
TEMPERATURE=$TEMPERATURE$CELSIUS
fi

TIMENOW=`date +%d\ %T`
MSG="$TIMENOW $TEMPERATURE"
HOSTNAME="Lounge"

/usr/local/sbin/tick elvin://192.168.1.1 Sensors "$HOSTNAME" "$MSG" 10 > /dev/null


I then added a cron hourly entry to call this script each hour.
i.e /etc/cron.hourly/3weatherchecker that calls the above script.

Here is how the Elvin notification looks on my Windows 7 desktop.

The notification is from the "Sensors" group saying 24 degrees centigrade at 10am.

Update: Here is a brief history of readings as stored in Sticker. BTW I have added a decimal place to the temperature readout.


view entry ( 2858 views )   |  permalink

<<First <Back | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Next> Last>>