-
Notifications
You must be signed in to change notification settings - Fork 22
Weather Sources
Multiple weather providers are supported, there are implementation differences between them as follows:
Provider | API key | Forecast | Pollution | UV | GPS/Detect Location | Other |
---|---|---|---|---|---|---|
Open-Meteo | Not required | 7 days | Yes (Forecast) | Yes | No | Default provider. |
OpenWeatherMap | Required | 5 days | Yes (Current) | No | Yes | Some weather effects are unavailable. |
Qweather | Required | 7 days | Yes | Yes | No | Primarily for Chinese users. |
Follow these steps to create a free OpenWeatherMap API key:
https://www.educative.io/answers/how-to-get-the-openweather-api-key
Newly created API key can take a day or two to activate, if it does not work immediately (Unauthorized error) try again later.
-
For the current day, current hour weather forecast is shown.
Depending on the weather provider used the current weather is calculated as follows:
- Open-meteo the current hour forecast closest to location time is used.
- OpenWeatherMap current forecast api is used.
-
For future day forecast, priority is given to displaying the most severe weather conditions.
Depending on the weather provider used the severe weather is calculated as follows:
- Open-meteo provides daily severe weather from its response.
- OpenWeatherMap severe weather is calculated from hourly forecast based on these criteria.
If more than one severe weather is found, the most frequent one is selected and then a point in time for the severe weather is selected and shown.
-
For air quality current hour is selected for current day and worst case for future days.