Use first url we get:
{"weatherinfo":{"city":"北京","cityid":"101010100","temp":"3","WD":"北风","WS":"2级","SD":"18%","WSE":"2","time":"08:45","isRadar":"1","Radar":"JC_RADAR_AZ9010_JB"}}
current temperature,wind direction,wind strength, humidity,published time
Use second url we get:
{"weatherinfo":{"city":"北京","cityid":"101010100","temp1":"7℃","temp2":"-4℃","weather":"晴","img1":"d0.gif","img2":"n0.gif","ptime":"08:00"}}
high temp,low temp,weather,published time
the two published time is not the same,and sometimes the current temperature is lower than the min temperature.Before we find better weather api,we have no method to resolve this bug.
We use two urls to get the current weather infomation: www.weather. com.cn/ data/sk/ 101010100. html www.weather. com.cn/ data/cityinfo/ 101010100. html
http://
http://
Use first url we get: :{"city" :"北京"," cityid" :"101010100" ,"temp" :"3","WD" :"北风"," WS":"2级" ,"SD":" 18%","WSE" :"2","time" :"08:45" ,"isRadar" :"1","Radar" :"JC_RADAR_ AZ9010_ JB"}}
{"weatherinfo"
current temperature,wind direction,wind strength, humidity,published time
Use second url we get: :{"city" :"北京"," cityid" :"101010100" ,"temp1" :"7℃"," temp2": "-4℃"," weather" :"晴","img1" :"d0.gif" ,"img2" :"n0.gif" ,"ptime" :"08:00" }}
{"weatherinfo"
high temp,low temp,weather, published time
the two published time is not the same,and sometimes the current temperature is lower than the min temperature.Before we find better weather api,we have no method to resolve this bug.