Home

Awesome

README

This is a Raspberry Pi temperature graphing PoC through Plotly (usually up to 200 points drawn) and persistant storage through Google Docs (Spreadsheet).

Plots CPU temperature (directly from RPI), environment temperature (BMP085), environment barometric pressure (BMP085), environment humidity (DHT22). and outdoor temperature (Weather Underground). It runs as a Unix daemon and preferably runs infinitely long.

If there is a LED available, it will pulse it in the background to indicate its running status.

Snapshot

/rpi-plot.png /rpi-board.png

Hardware requirements

Software Requirements

Important notes

    self.bus = smbus.SMBus(0);
    {"wu_city": "Zagreb", "wu_state": "Croatia", "wu_key": "XXXX"}
    {"gdocs_email": "somebody@gmail.com", "gdocs_password": "secret password", "gdocs_sheet": "somesheet"}

Monitoring

Integration with Supervisor http://supervisord.org/ process control system is rather trivial. What is needed is a corresponding daemon configuration in /etc/supervisor/conf.d/rpi-plot.conf if the code has been placed at /home/pi/work/rpi-home-sensors:

    [program:rpi-plot]
    command=/home/pi/work/rpi-home-sensors/rpi-plot.py nodaemon
    stopsignal=INT
    autostart=true
    autorestart=true
    redirect_stderr=true
    stdout_logfile=/var/log/rpi-plot.log
    environment=HOME="/root"

Then the simple sequence of the following commands is enough to kickstart the process:

    supervisorctl update
    supervisorctl status

Copyright

Copyright (C) 2014 Dinko Korunic dinko.korunic@gmail.com