Open binarybill opened 6 years ago
This library only uses data from Nest servers. All interactions with the Nest without touching it are done via the Nest Servers. Example, when you change the temperature up 1 degree from your phone, the request goes from your phone to the servers and then servers to the nest. Unfortunately, this library will not meet your needs.
Thanks for the quick reply. I thought maybe if I were to change the temp by 1 degree (or some other action), the request goes to the server, then the server might grab other information (like historical usage data) while its updating my nest. But I suppose the servers have their own schedule for getting my nest data, and I can't change or affect that.
Anyway, I've been a longtime user of this library.... so thanks to you and everyone else for maintaining it!
I use this software library to archive my historical data each night. The thermostat talks to the Nest servers once each day to dump its historical data. In years past, it was around 2 AM ( US central time zone ). More recently I've noticed that it's happening around midnight.
When I look at the raw data dump saved in my database each night, it always contains the last 10 days of usage data. Whenever I've lost internet service during the time that the nightly dump was supposed to occur, it would have a blank entry in my database. On the next night's data dump, I would still get the entire last 10 day's of history. I've always presumed that the thermostat is retaining the last 10-day rolling window of usage history whether you're connected to the internet or not.
So I don't understand how not having internet for a couple days would matter... it should still dump the last 10 days on the next night while connected to the Internet. Only being disconnected from the internet for 10 days or more would result in lost data.
I assume there are Nest servers that store, in part, the last 10 days energy usage. And when I run the getEnergyLatest function, it gets data from the server (NOT my device). So, is there any way to force the server to get the latest information from my device?
Scenario: I have a beach house that has a full time Nest. The Nest only connects on weekends when I am there and have my hotspot with me. So the mid-week data is not getting updated every night. I can see the usage data on the Nest itself, but its not reflected in the energy report.
Please correct me if my assumption is wrong.
Thanks