Share your sensors is a breeze with Xively
We have our Raspberry Pi and some sensors onboard or around the house and we would let those data to be available for online screening. Xively service (formerly Cosm, formerly Pachube) is probably the fastest way to do that.
In general, data can be sent to Xively using one of the supported formats with respect to a specific API version. Various Python libraries/wrappers can be found online:
- xively-python the official Xively support
- python-eeml (also on pypi), provide support for EEML
- python-eeml (geekman fork), used to Send Raspberry Pi data to COSM @ Adafruit
METHOD 1 – Python, Xively API, Cron
This method is based on the official tutorial Xively – Rasberry Pi . It is really complete and covers all the required steps from the hardware setup to the actual sensor’s code execution. Assuming the preliminary configuration of the Raspberry Pi (SD card and OS installation) has already been done just start to Write some code!
NOTE: Other than get FEED_ID and API_KEY from the environment you can declare them inside the script changing the section
FEED_ID = os.environ["FEED_ID"]
API_KEY = os.environ["API_KEY"]
DEBUG = os.environ["DEBUG"] or false
FEED_ID = "your_feed_id"
API_KEY = "your_api_key"
DEBUG = false
OTHER METHODS — TODO
and use from it
git clone git://github.com/petervizi/python-eeml.git
eventually install lxml
sudo apt-get install python-lxml