Giter Club home page Giter Club logo

nest_tracking's Introduction

Nest Thermostat Temperature Tracking

Script to save current Nest Thermostat temperature and humidity in InfluxDB. To do so, the scripts makes use of the HomeBridge Nest extension in order to make it easy to access to the Nest services. Using crontab you can take measures periodically and view them using a Grafana dashboard.

Installation

Configuring the script is as easy as following these steps:

  1. Install NodeJS v12+ on your system.
  2. Install InfluxDB on your system.
  3. Create a database in your Influx instance.
  4. Download the script using git.
  5. Install all the dependencies by running npm install.
  6. Modify the config.js file to include your Nest credentials. Follow the steps included in this guide to obtain the issueToken, cookies and apiKey values.
  7. Modify the config.js file to include your Influx host and database.
  8. Run the script by executing node index.js.

Automatization

To update your InfluxDB periodically with the latest information, you can use crontab. To do so, execute crontab -e and add the following line:

*/5 * * * * node <PATH>/nest_tracker/index.js >> /dev/null 2>&1

This will update the values every five minutes. You can change the periodicity by changing the initial number of the line. Don't forget to replace <PATH> by the real path where you have downloaded this repository.

nest_tracking's People

Contributors

aitormagan avatar dependabot[bot] avatar

Watchers

 avatar

nest_tracking's Issues

Multiple Nest thermostats / C to F

Great work and directions, worked as expected first try!

I can see it polls multiple devices (smoke alarms/thermostats/etc) but only posts the first thermostat to influx
Would it be possible to post the temperatures under their respective device ID ?
Also maybe add an option for Fahrenheit instead of celsius?
I've attached a log file to show the values I'm referring.

Thanks for your work!

nest_log.txt

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.