Author: | [email protected] |
---|
This is a set of scripts used to upload moisture readings to Cosm/Pachube.
- Install moisture sensor (http://www.seeedstudio.com/depot/grove-moisture-sensor-p-955.html?cPath=144_147)
- Connect to arduino type device (http://arduino.cc/) using 3.3v/5v, GND, and analog input. In my code I'm using A0.
- Upload sketch file (moisture_v1.ino) to arduino.
- Install python dependencies:
- PySerial - http://pyserial.sourceforge.net/
- Python eeml - https://github.com/flexmox/python-eeml
- Modify pushtocosm.py to include your personal API and feed number (https://cosm.com)
- Run python script pushtocosm.py
- (optional) Set up cron job to run python script at desired interval.
- python-eeml
- PySerial
- Cosm Account
- Arduino or any microcontroller able to put out 3.3-5v and connect to a virtual serial port.
- Moisture sensor