Repository navigation
First release of aiofmi, an async Python client for the Finnish Meteorological Institute's open data.
FmiClient.forecast(latitude, longitude)fetches FMI's official point forecast (the one on fmi.fi) as an hourly, typed time series reaching about ten days ahead: temperature, wind, precipitation, cloud cover, probabilities and the SmartSymbol weather code.daily_forecasts()groups that series into days in the location's time zone. Each day gets its minimum and maximum temperature, total precipitation, strongest wind and the weather symbol at 15:00, as FMI's own services show it.- Errors are separate exception types derived from
FmiError: connection, timeout, rate limit, rejected request, and no data for the location. - Built on
aiohttp, its only dependency. You pass in theClientSession; the library never creates or closes one. - Fully typed and ships
py.typed. Requires Python 3.14.
The data is FMI open data under CC BY 4.0.