Skip to content

Weather Sources

Dani John edited this page Feb 22, 2024 · 37 revisions

How to change weather provider?

image

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.

Follow these steps to create free 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.

How is weather forecast presented?

  • 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.
  • Enhanced future day forecasts to prioritize 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.

  • Hourly air quality graph is enabled for OpenWeatherMap.

Clone this wiki locally