Skip to content

v0.124.0

Choose a tag to compare

@gutzbenj gutzbenj released this 29 Jun 22:37
· 139 commits to main since this release

What's Changed

Added

  • [DWD MOSMIX / DMO] Add available_issues(station_id, settings) classmethod to DwdMosmixRequest and DwdDmoRequest that lists the model-run datetimes currently available on DWD's OpenData server for a given station (MOSMIX_L single-station KMZ files and ICON single-station KMZ files respectively).
  • [CLI] Add wetterdienst issues --provider <p> --network <n> --station <id> command that prints available issue datetimes as a JSON array.
  • [REST API] Add GET /api/issues?provider=<p>&network=<n>&station=<id> endpoint returning {"issues": ["<UTC ISO datetime>", ...]}. Currently supported: provider=dwd, network=mosmix and provider=dwd, network=dmo.

Fixed

  • [DWD MOSMIX / DMO] Fix issue (and DMO lead_time) parameters being silently ignored when calling the REST API or _get_stations_request directly. The guard used isinstance(api, DwdMosmixRequest) where api is the class itself (not an instance), so the condition was always False and DwdForecastDate.LATEST was used regardless of the caller's intent. Changed to issubclass and added a None-guard so that omitting issue still falls through to the dataclass default (DwdForecastDate.LATEST).

Full Changelog: v0.123.0...v0.124.0