-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing weather when using GPS #69
Comments
Main logic located in forecaswatch2/src/pkjs/weather/provider.js Line 114 in a84a3a7
Ideas:
|
I experimented with number 2 above with clach04@16b5cb0 and been running for a few days and this does not work (at least on my Android 10 device). Which leaves number 1 with some sort of delta offset/bounding box to avoid updating the cache EVERY time . Updating cache may not be that terrible, we record the last successful pull already: forecaswatch2/src/pkjs/index.js Line 151 in a84a3a7
in forecaswatch2/src/pkjs/index.js Line 143 in a84a3a7
|
issue mattrossman#69 - used cached GPS location
Actually de-serialize cached dictionary.
Actually de-serialize cached dictionary.
Finally got some time to spend on this. I have a prototype branch https://github.com/clach04/pebble-forecaswatch2-fcsw2-fcw2/tree/issue69_cached_gps_location It unconditionally caches GPS location, and then uses that on a GPS lookup failure. Possible improvements:
|
I'm missing weather when GPS has not been on for (~16 hours), and enabling GPS fixes the issue. This is an idea for a feature, assuming I've diagnosed the problem correctly ;-)
Most of the time I set config to the location I care about, I.e. Location override is NOT left blank. My use case is I don't travel very far, very often, so I always want to see "home" weather. I also don't turn the GPS on that much.
When I travel I'll often leave it blank (to indicate Using GPS. ) but sometimes GPS will be off (e.g. saving power) I'll forget to re-enable. This ends up with blank weather information, force-fetching does NOT fix the issue. Have to re-enable GPS.
Idea is that if Location override is left blank, use GPS as per current behavior to get location, then:
For me this would work great for my use case.
I'm not sure if this would work for everyone, if not this approach would also need a new "cache location" option added to the config page.
Seeking feedback :-)
The text was updated successfully, but these errors were encountered: