stuartpb / rainpower-watchface

A custom watchface for my Pebble.
MIT License
1 stars 0 forks source link

General stale-weather-handling #19

Open stuartpb opened 7 years ago

stuartpb commented 7 years ago

If the phone disconnects or for some other reason (#11?) can't get up-to-date weather, there should be some way to handle that within the watchface, akin to how the phone bar goes purple right now.

stuartpb commented 7 years ago

Per the let's-vary-the-background-color-of-different-days plan from #18, the most sensible way to address this sounds like it'd be to have every hour that we haven't gotten a weather update to be represented by solid purple (while days would be shades of blue). This also means you can see how stale the weather forecast is by how much purple is on it.

stuartpb commented 7 years ago

At a much smaller scale, there should also be handling for the minutely precipitation forecast for the last few minutes between queries - I'm thinking the curve could be silently interpolated based on the change between the last point and the point across from the time that's being estimated (ie a missing minute interpolates from one minute ago, two minutes from two minutes ago, etc). After, say, half an hour (or maybe less), we start filling the minutely precip graph with purple.

stuartpb commented 7 years ago

One reason I kind of like the idea of reporting the forecast going stale before the half-an-hour mark (like, maybe a little more than five minutes) is that that'd allow the minutely forecast to double as a staleness of the disconnected phone battery gauge meter, for when the phone was disconnected under an hour ago.

stuartpb commented 7 years ago

Also, should there be a point where the temperature ceases to display? I think... maybe 48 hours (the point at which the weather staleness can no longer be displayed) - before that, it's still useful-ish, as long as you know how out-of-date it is. (I mean, people like five-day forecasts with temperatures, so meh.)