Graph the ControlByWeb temperature module and Nest Thermostat in rrdtool
Shell PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
vendor
.gitmodules
CREATE_RRD.md
LICENSE
README.md
config.inc.php
create_graph.sh
hourly_graph.png
temperatures.php

README.md

temperature-graphing

A project to graph temperature data from the ControlByWeb temperature module and the Nest Thermostat into rrdtool. Nest Thermostat data retrieved via nest-api. Send your temperature reading to the Weather Underground Personal Weather Station network as well.

Sample 24 hour graph

Blog post here.

Getting started

After you clone this repo, run a git submodule init then git submodule update to get the nest-api submodule checked out as well (files will be under vendor/nest-api)

In config.inc.php enter the following info:

  • Your Nest login & password.
  • The url to the ControlByWeb temperature module's XML status page
  • Your wunderground PWS station ID & password

Create your temperature RRD (see CREATE_RRD.md)

Set up 2 cronjobs to run the polling and graphing scripts

*/5 * * * * php -f /path/to/temperatures.php | xargs /path/to/rrdupdate /path/to/temperatures.rrd
*/2 * * * * /path/to/create_graph.sh >/dev/null 2>&1