forked from paul/sinoptik
Service that provides today's weather forecast for air quality, rain and UV metrics.
This is useful if you want to prepare for going outside and need to know what happens in the near future or later today.
Paul van Tilburg
f67f3dfe82
* Add `is_*_stale` methods to the `MapRefresh` trait * Only update the maps of a type if `retrieve_image` yielded something or if the maps are stale * Also only then bump the timestamp for the map type This means if there is nothing in the cache, it will retry each refresh to get something because the timestamp is not bumped until there is something. Once there are maps, it will only update it and bump the timestamp if there is an image, that or, it has become stale and it can be set to `None` and we end up in the initial state. |
||
---|---|---|
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml |