GitHub - Thomas101/nest_history: Nest Thermostat logging

1 min read Original article ↗

A scratch your own itch nest thermostat history logger. Logs current temperature and humidity every 5 minutes then gives you a web UI to view it. Uses weather underground to log outside temperature and chartjs.org for graphing. I've got this running on a raspberry pi at home on my local network

Create the following two files...

"use strict"
module.exports = Object.freeze({
	STORAGE_PATH 				: '../db/',
	MAX_DAYS 					: 120,
	RECORD_MINS 				: 5,
	NEST_USERNAME 				: '<nest username>',
	NEST_PASSWORD				: '<nest password>',
	WUNDERGROUND_KEY 			: '<weather underground key>',
	SERVER_PORT 				: 8080
})
window.CONSTANTS = {
	DEVICE_ID : '<nest device id>'
}