Files associated with the Tinaja Labs Xbee Gateway device using The Raspberry Pi
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
allsensors.py
allsensors.py.old
reader2.py
readme.md
sense2carbon.py
sensorconfig.csv
sensorhistory.py
serial_example_series_1.py
testCSVConfig.py
testLED.py
testLogFile.py
testND.py
testReader.py
testSend.py
testSenseAPI.py
testThingSpeak.py
testtemp.py
twitter.py
xbee.py

readme.md

This is some python code that I use to manage a group of xbee based sensor boards from a Raspberry Pi with an attached Xbee radio. The main program is allsensors.py.

You can see my rough notes and references at: http://tinajalabs.wordpress.com/2012/09/02/raspberry-pi-as-an-xbee-wireless-sensor-network-gateway/

To run it you'll need to create a default.cfg file (in the same directory) that looks like this:

[apikeys]
thingspeak_key: 
cosm_key: 
sense_key: 
twitterusername: 
twitterpassword: 
tinaja_key: 
[paths]
locallogpath: /var/www/tinajalog
tinajalogurl: 
senselogurl: http://api.sen.se/events/?sense_key=
thingspeaklogurl: api.thingspeak.com

Look at the import commands and you'll see it will require the following python modules:

  • SUDS
  • EEML
  • pySerial
  • simplejson