Just a short post to share a small side project I put together
Over the past two nights I put together a little data gathering thing for my home. I have a Nest thermostat, and while I find it very handy, I wish I had more data from their app. I wanted to see how the temperature in my house changed over the day, and how that compared with outdoor temp, especially as winter takes it icy grip.
Its all put together with:
• Sinatra framework
Essentially, it used the nest_thermostat gem in a rake task that runs hourly (thanks to Heroku scheduler) and grabs the temperature from my thermostat, and the temperature from the API nest uses for its outdoor temperature. Once deployed, you just need to set envvars for your login, and postcode and it starts getting data.
Its a nice feeling to make something small that I can now just leave and let it gather information for me.