我在网站openweathermap有问题 我想带温度 我的城市现在30岁
{"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 :(得分:0)
根据你的json,在main里面有“temp”:302.15 ...... 看起来温度是以开尔文而不是摄氏温度重新开始的。 点击此链接https://openweathermap.org/forecast16#data,您应该可以看到必须更改您的API请求,例如:
api.openweathermap.org/data/2.5/find?q=YOURCITYHERE&units=metric