Giter VIP home page Giter VIP logo

nestflux's Introduction

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 ./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

nestflux's People

Contributors

nbrownus avatar

Watchers

John Dyer avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.