Python客户端访问由德国联邦气象局Deutscher Wetterdienst(DWD)发布的bee航班预报信息。
apicast的Python项目详细描述
关于
Apicast获取德国韦特迪恩斯特(DWD)发布的蜜蜂飞行预报信息。在
- Source:https://www.dwd.de/DE/fachnutzer/freizeitgaertner/1_gartenwetter/_node.html
- 文档: 在
- Data版权所有:©Deutscher Wetterdienst(DWD),Abteilung Agrameteologie
- Live:http://apicast.hiveeyes.org/
设置
CLI版本:
pip install apicast
HTTP API变体:
^{pr2}$概要
显示状态和站点列表:
apicast beeflight stations
站点段塞显示列表:
apicast beeflight stations --site-slugs
获取给定站点slugberlin_brandenburg/potsdam的信息:
apicast beeflight forecast --station=berlin_brandenburg/potsdam
获取给定站点slugberlin_brandenburg/potsdam的信息,以降价格式输出为表:
apicast beeflight forecast --station=berlin_brandenburg/potsdam --format=table-markdown
HTTP API
启动HTTP API服务:
apicast service
有不同的端点和查询参数。去想象一下:
- http://localhost:24640/beeflight/stations/germany
- 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
示例
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" } ]
- 项目
标签: