Skip to content

Open-Meteo integration ​

Harmattan uses the Open-Meteo Forecast API.

text
https://api.open-meteo.com/v1/forecast

Current weather fields ​

The main application requests current values including:

text
temperature_2m
relative_humidity_2m
apparent_temperature
is_day
weather_code
cloud_cover
surface_pressure
wind_speed_10m
wind_direction_10m

Daily forecast fields ​

text
weather_code
temperature_2m_max
temperature_2m_min
sunrise
sunset
uv_index_max
precipitation_sum

The request also uses timezone=auto and forecast_days=6.

Failure handling ​

The application checks response.ok and treats a non-success HTTP response as a weather-service failure rather than as valid data.

API key ​

No API key is used by the current integration. There is therefore no weather-service secret embedded in the browser code.

Because the request is client-side, successful operation still depends on network connectivity, Open-Meteo availability, and the service continuing to permit browser requests from the deployed origin.

Built around the Naija skies.