command
module
Version:
v0.0.0-...-a04883e
Opens a new window with list of versions in this module.
Published: Sep 13, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
weather
这个是早期做的一个关于发送天气预报的小项目,主要有三个技术点:
获取天气的api
比较百度地图和高德地图,百度地图的天气接口已经取消,高德地图的使用也较为简单。
先申请应用和应用的key
天气查询API服务地址:
https://restapi.amap.com/v3/weather/weatherInfo?parameters
请求参数
参数名 |
含义 |
规则说明 |
是否必须 |
缺省值 |
key |
请求服务权限标识 |
用户在高德地图官网申请web服务API类型KEY |
必填 |
无 |
city |
城市编码 |
输入城市的adcode,adcode信息可参考城市编码表 |
必填 |
无 |
extensions |
气象类型 |
可选值:base/all |
可选 |
无 |
output |
返回格式 |
可选值:JSON,XML |
可选 |
JSON |
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.