如题!大家都知道google天气数据源的天气预报不是很准确,所以我想在我的weather应用中采用中国天气网的数据源(它的数据应该是从中央气象台获得的),其它的数据我能拿到,就是实时的温度我拿不到?请高手帮忙!
图中红色框中即为实时温度
图中红色框中即为实时温度
解决方案 »
- 自定义ViewGroup中不能正确显示 其它的viewGroup
- hello,大家好,请问大家如何在一个包内添加2个widget
- 怎么获知SoftInput键盘是否处于打开状态
- Android 2.0 游戏开发实战宝典-源代码-1-12章
- 关于异常捕获
- android客户端如何与PHP服务端完成通信
- 扫描二维码
- SearchView的OnQueryTextListener中两个方法的返回值有何用?
- 请问关于 显示界面的问题
- gradle project sync failed ... 各位大神,能否帮忙看看这个问题怎么解决,在线等!
- android + jsoup 拆DOM 報錯"http error fetching url"
- android webview contenteditable的问题
$.getJSON("http://m.weather.com.cn/data/"+id+".html"
这个地址返回一个JSON id是城市的ID返回的json如下:
{
"weatherinfo":{
"city":"北京",
"city_en":"beijing",
"date_y":"2012年7月31日",
"date":""
,"week":"星期二",
"fchh":"11",
"cityid":"101010100",
"temp1":"22℃~20℃",
"temp2":"27℃~23℃",
"temp3":"27℃~23℃",
"temp4":"31℃~24℃",
"temp5":"33℃~24℃",
"temp6":"34℃~24℃",
"tempF1":"71.6℉~68℉",
"tempF2":"80.6℉~73.4℉",
"tempF3":"80.6℉~73.4℉",
"tempF4":"87.8℉~75.2℉",
"tempF5":"91.4℉~75.2℉",
"tempF6":"93.2℉~75.2℉",
"weather1":"中雨转小到中雨",
"weather2":"阴转多云",
"weather3":"多云",
"weather4":"阵雨转阴",
"weather5":"阴转晴",
"weather6":"晴",
"img1":"8",
"img2":"21",
"img3":"2",
"img4":"1",
"img5":"1",
"img6":"99",
"img7":"3",
"img8":"2",
"img9":"2",
"img10":"0",
"img11":"0",
"img12":"99",
"img_single":"8",
"img_title1":"中雨",
"img_title2":"小到中雨",
"img_title3":"阴",
"img_title4":"多云",
"img_title5":"多云",
"img_title6":"多云",
"img_title7":"阵雨",
"img_title8":"阴",
"img_title9":"阴",
"img_title10":"晴",
"img_title11":"晴",
"img_title12":"晴",
"img_title_single":"中雨",
"wind1":"微风",
"wind2":"微风",
"wind3":"微风",
"wind4":"微风",
"wind5":"微风",
"wind6":"微风",
"fx1":"微风",
"fx2":"微风",
"fl1":"小于3级",
"fl2":"小于3级",
"fl3":"小于3级",
"fl4":"小于3级",
"fl5":"小于3级",
"fl6":"小于3级",
"index":"暖",
"index_d":"较凉爽,建议着长袖衬衫加单裤等春秋过渡装。年老体弱者宜着针织长袖衬衫、马甲和长裤。",
"index48":"热",
"index48_d":"天气较热,建议着短裙、短裤、短套装、T恤等夏季服装。年老体弱者宜着长袖衬衫和单裤。",
"index_uv":"最弱",
"index48_uv":"最弱",
"index_xc":"不宜",
"index_tr":"一般",
"index_co":"舒适",
"st1":"18",
"st2":"18",
"st3":"29",
"st4":"23",
"st5":"28",
"st6":"23",
"index_cl":"不宜",
"index_ls":"不宜",
"index_ag":"极不易发"
}
}
到中国天气网论坛问下吧