Node.js code for logging data from a Nest thermostat to ThingSpeak.
Note: This script is NOT finished and will not work
npm install firebase
npm install thingspeakclient
- Clone git repository.
- Install 'firebase' and 'thingspeakclient' using 'npm'.
- Follow configuration steps.
- Copy 'settings.template.js' to 'settings.js'
- Read 'settings.js' for detailed instructions.
- Fill in Nest client ID, client secret, and PIN (using instructions in settings.js).
- Run 'node getNestAccessToken.js'
- Run 'node getNestInformation.js'
- Set up ThingSpeak channels: one for each structure, and one for each thermostat.
- Add ThingSpeak channel IDs and write API keys to 'settings.js' (using instructions in settings.js).
- Run 'node nodeNestThingSpeak.js &'