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 ( 2950 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
The Dude 
Saturday, November 3, 2012, 03:47 AM
Posted by Administrator
I have added a hobby page for my installation of The Dude.

http://www.rocode.com/thedude/

It monitors my residential network and transmits Elvin notifications around my local area network.

view entry ( 2897 views )   |  permalink
Raspberry Pi 
Thursday, November 1, 2012, 09:47 AM
Posted by Administrator
I got my Raspberry Pi Model B working today.
http://www.raspberrypi.org/



Using the Fedora Remix.
http://zenit.senecac.on.ca/wiki/index.php/Raspberry_Pi_Fedora_Remix

It is not working with my KVM. This is perhaps due to a lack of power on the USB port. A standalone mouse and keyboard work okay.

I have configured it as an Elvin producer that emits when the Digital Amateur Television repeater VK3RTV goes On Air or Off Air.

I have added a page with details to the web site
http://www.rocode.com/amateurradio/VK3RTVOnOff.html
view entry ( 3205 views )   |  permalink

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