Deferred loading and minor delays
Added 2018-09-11 14:00:02 +0000 UTCOne of the less exciting but also very useful features coming to the next version of beestat is deferred loading. Ever notice when you connect it spins for a while, especially if it's been some time since you last visited?
That's because beestat is connecting to ecobee and downloading all of the data since you last connected. This isn't the end of the world, but it's annoying and first-time users can sometimes have to wait upwards of 10 minutes for this to complete and they may simply give up.
Beestat 1.2 handles this in two ways:
1. Deferred loading. When you first connect, beestat will sync only the most critical information about your thermostat in order to display something meaningful. This happens pretty quickly. The graphs with a ton of historical data will show immediately with whatever data they currently have. A sync will be triggered in the background and when complete those graphs will update.
2. Automatic syncing when you're away. This is more important for syncing historical data which can take some time. If you only check beestat once a week, the next time you log in it would normally take 15-20 seconds to sync your historical data. This is simply unacceptable, so instead data is synced periodically on the server. No matter how long you're away it only takes a few seconds to update when you return. The automatic syncing is also tiered so that it runs more frequently the more active you are.
Once all the deferred loading is complete I'll be moving on to adding some additional detail to the graphs, then pushing for this huge release. It may take longer than originally anticipated due to some personal issues taking up my free time, but we'll get there!
Thanks for your support!