mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
A background job fetches air quality, pollen and UV for every earlier local day with a reading, mood entry, dose, symptom or workout: after the update (boot and nightly discovery), when the home is set and when air quality is switched on. A day with a weather row gets its air quality; a day without one gets both, at the covering location period or else at the home, also before the home was set. Days the source does not reach (before 2013 in Europe, before August 2022 elsewhere) stay empty and are not counted. Pending days are grouped by coarse location and cut into ranges of up to 90 days, joining days at most 14 apart, newest first. A run holds itself to 300 of the account's 400 daily calls and half of each instance window, stores its progress on the user (migration 0391) and sends a follow-up while it makes progress; a budget stop waits for the next discovery. The Location & weather card shows the progress. The air-quality client now asks pollen and dust from 2021 and skips the request outside Europe before CAMS global starts.
2.9 MiB
2.9 MiB