Python client to access bee flight forecast information published by Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.
Project description
About
Apicast acquires bee flight forecast information published by Deutscher Wetterdienst (DWD).
Source: https://www.dwd.de/DE/fachnutzer/freizeitgaertner/1_gartenwetter/_node.html
Documentation:
Data copyright: © Deutscher Wetterdienst (DWD), Abteilung Agrarmeteorologie
Setup
CLI version:
pip install apicast
HTTP API variant:
pip install apicast[service]
Synopsis
Display list of states and sites:
apicast beeflight stations
Display list of site slugs:
apicast beeflight stations --site-slugs
Acquire information for given site slug berlin_brandenburg/potsdam:
apicast beeflight forecast --station=berlin_brandenburg/potsdam
Acquire information for given site slug berlin_brandenburg/potsdam, output as table in Markdown format:
apicast beeflight forecast --station=berlin_brandenburg/potsdam --format=table-markdown
HTTP API
Start HTTP API service:
apicast service
There are different endpoints and query parameters. Go figure:
http://localhost:24640/beeflight/stations/germany/site-slugs
http://localhost:24640/beeflight/forecast/germany/berlin_brandenburg/potsdam?translate=false
http://localhost:24640/beeflight/forecast/germany/berlin_brandenburg/potsdam?translate=true
http://localhost:24640/beeflight/forecast/germany/berlin_brandenburg/potsdam?format=json
http://localhost:24640/beeflight/forecast/germany/berlin_brandenburg/potsdam?format=table-markdown
http://localhost:24640/beeflight/forecast/germany/berlin_brandenburg/potsdam?format=json-machine
Example
apicast beeflight forecast --station=berlin_brandenburg/potsdam
[ { "Datum": "Mo 01.06.", "morgens": "stark", "mittags": "intensiv", "abends": "stark" }, { "Datum": "Di 02.06.", "morgens": "stark", "mittags": "intensiv", "abends": "intensiv" }, { "Datum": "Mi 03.06.", "morgens": "intensiv", "mittags": "intensiv", "abends": "intensiv" } ]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.