Skip to content

Import Nest thermostat and Weather Underground data into InfluxDB

License

Notifications You must be signed in to change notification settings

nbrownus/nestflux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NestFlux

Gets some basic info from your Nest thermostat and Weather Underground then inserts the data into InfluxDB.

Why? I like to query and mashup this stuff with other sources of information, like Weather Underground. You can then use tools like Grafana to do all sorts of fun things.

This code is not super duper flexible or very clean. It was a weekend hack to get some data to play with. Feel free to contribute!

Usage

  • Git clone the repo
  • copy settings.sh.example to settings.sh
  • Edit settings.sh putting your info into the variables
  • Run npm install to install JS dependencies.
  • Run ./bin/nestflux.sh or put it in upstart/cron/etc
  • Rejoice!

Data Points

Each data points has the value stored in value inside of InfluxDB

  • nest.current_temperature - Current temperature inside in Fahrenheit (nest)
  • nest.outside_temperature - Current temperature outside in Fahrenheit (wunderground)
  • nest.target_temperature - Temperature that it should be inside in Fahrenheit (nest)
  • nest.current_humidity - Current humidity inside in percent (nest)
  • nest.outside_humidity - Current humidity outside in percent (wunderground)
  • nest.target_humidity - Relative humidity that it should be inside in percent (nest)
  • nest.heater_on - Is the heater on or off in binary - 0/1 (nest)
  • nest.battery_level - Nest battery voltage in volts (nest)
  • nest.learning_days_completed_heat - Number of days the Nest has had to learn your nasty habits (nest)
  • nest.auto_away - Is the system in auto away mode in binary - 0/1 (nest)

Here is an example InfluxDB query

select value from "nest.current_temperature"

Grafana Dashboard

You can find the JSON for my Grafana dashboard pictured below here

Grafana Dashboard

About

Import Nest thermostat and Weather Underground data into InfluxDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published