2017-06-14 58 views
0

我的网站有问题openweathermap 我希望把温度 我现在全市30把现场的温度openweathermap

{"coord":{"lon":114.1,"lat":22.37},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"base":"stations","main":{"temp":302.15,"pressure":1008,"humidity":89,"temp_min":302.15,"temp_max":302.15},"visibility":10000,"wind":{"speed":3.1,"deg":210},"clouds":{"all":40},"dt":1497443400,"sys":{"type":1,"id":7904,"message":0.0041,"country":"HK","sunrise":1497389947,"sunset":1497438532},"id":1818209,"name":"Tsuen Wan","cod":200} 

,但我不能找到数30 请帮我

回答

0

根据你的json,内部主要有“温度”:302.15 ... 它看起来像温度在开尔文而不是摄氏度。 下面这个链接https://openweathermap.org/forecast16#data你应该能够看到,你必须改变一些你的API请求:

api.openweathermap.org/data/2.5/find?q=YOURCITYHERE &单位=指标

+0

谢谢你这么多 –

+0

我现在可以在这个城市带上时间吗? –

+0

“带来时间”是什么意思?尝试更具体一点 – FaBioInsolia