A Python module for synchronizing a Zipabox Home Automation Controller to a Netatmo Weather Station
This module requires lnetatmo.py from https://github.com/philippelt/netatmo-api-python
Zipabox
- Add one Virtual Meter device and one Virtual Sensor device to the Zipabox
- Name the devices and set their types properly
-- for the Sensor, set type to CO sensor
-- for Meter values set units to Temperature (ºC), Humidity (%), CO2 Level (ppm), Pressure (mb), Sound level (dB) - Check and note the URL for the Sensor's STATE attribute
- Check and note the URL for the Meter's VALUE attributes
Gateway device (python host)
- Put the gw.py and lnetatmo.py in a folder - preferably somewhere in user's home folder tree
- Make gw.py executable
$ chmod +x gw.py
- Edit gw.py to set user specific information with help of URL's above
- Edit lnetatmo.py to set your Netatmo Developer OAUTH credentials and User my.netatmo.com credentials
- Run the module
$ <module location>/gw.py
- If you do not see a message with a smiling face, check these instructions again
- If still no joy, create an issue at https://github.com/innodron/ZipaNetatmoGW/issues
To run the module periodically, make it executable and add it to cron in your favorite *nix environment
e.g. To run this module in 15 min. intervals with a RaspberryPI:
- Open cron editor
$ crontab -e
- Add the following line (assuming your RaspberryPI user is pi, and script is at ~/scripts/ZipaNetatmoGW)
*/15 * * * * /home/pi/scripts/ZipaNetatmoGW/gw.py 2>&1 | logger -t [ZipatoNetatmoGW]
- Save and exit cron editor