Skip to content

datetime: Query GWeather DB on the fly instead of caching

Benjamin Berg requested to merge benzea/no-tz-cache into master

We need the database only quite irregularly (i.e. when the location change). Just grab the required information from GWeather on the fly and destroy it immediately after. Also, use the API to only grab the cities of one country instead of filtering them later.

See also: !168 (closed)

In a way, this is WIP as I have some GWeather changes that might be interesting to improve on top. But, this works stand alone and with my (unfinished, rough and ugly) GWeather changes will already save a lot of memory.

Merge request reports