天气预报接口
1. 当前天气
API地址:http://mobile.weather.com.cn/data/sk/101010100.html
sd 湿度
sm 未知
temp 温度
tempF 温度,华氏
time 时间
wd 风向
ws 风速
2. 生活方面
API地址:http://mobile.weather.com.cn/data/zsM/101020500.html
3. 七天天气预报
API地址:http://mobile.weather.com.cn/data/forecast/101010100.html
fa 白天图片id http://mobile.weather.com.cn/images/small/day/00.png
fb 夜晚图片id http://mobile.weather.com.cn/images/small/night/00.png
fc 白天温度
fd 夜晚温度
fi 日出和日落时间
4. 过去24小时趋势
API地址:http://mobile.weather.com.cn/data/UsedLive/101010100.html
l1 温度
l2 湿度
l3 风速
l4 风向(1东北,2东,3东南,4南,5西南,6西,7西北,8北)
l6 雨量
l7 时间
5. 3小时天气预报(7天)
API地址:http://mobile.weather.com.cn/data/forecast3h/101010100.html
ja 图片id http://mobile.weather.com.cn/images/day/00.png
jb 最高温度
jc 最低温度
jh 起始时间
ji 结束时间
6. 当前空气质量
API地址:http://mobile.weather.com.cn/data/airnow/101020100.html
p2 当前空气质量(0-50优,50-100良,100-150轻污染,150-200不健康,200-300危险,300-500有毒)(超过300后,一般用?代替)
p9 测量空气质量时间
作者:Create Chen
出处:http://technology.cnblogs.com
服务项目 | 技术咨询 | 微信图书 | 微信视频 | 微信代码 | 定制开发 | 其他福利 |
服务入口 | QQ群有问必答 查看详情 |
一本书解决90%问题 查看详情 |
微信开发视频 小程序开发视频 |
免费代码 |
¥1888阿里云代金券 查看详情 |
营销工具 微信特异功能 |