首页 > 代码库 > current weather
current weather
http://api.openweathermap.org/data/2.5/weather?q={Beijing},{CN}&units=metric&appid=2233c2ce7363b83f8bc8c182f74316bc
units:单位
metric:公制单位,即温度为摄氏度
{
"coord":{"lon":116.4,"lat":39.91},
"weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],
"base":"stations",
"main":{"temp":9.32,"pressure":1005.4,"humidity":98,"temp_min":9.32,"temp_max":9.32,"sea_level":1030.18,"grnd_level":1005.4},
"wind":{"speed":1.51,"deg":86.5003},
"rain":{"3h":3.765},
"clouds":{"all":92},
"dt":1477041090, #:utc time
"sys":{"message":0.0044,"country":"CN","sunrise":1477002690,"sunset":1477041946},
"id":1816670,
"name":"Beijing",
"cod":200
}
current weather
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。