本文共 2459 字,大约阅读时间需要 8 分钟。
喜欢DIY桌面的小伙伴都有一个随时在私人电脑上显示天气的软件。在这里小编要向大家推荐一款名字叫做雨滴桌面(rainmeter)的软件,但使用到这款的小伙伴有时发现就算跟着教程做完天气却根本显示不出来。在这里小编来教大家进行这款雨滴桌面天气软件的代码设置。
打开你下载好的天气软件的配置设置,能看到如图所示的语句代表这是中国内地的天气代表可以使用。
将上述句子改写成下面小编写的句子。
然后再将#CODE#改成你所居住地的地区代码,你可以在http://m.weather.com.cn/里找到自己地区的代码,如图所示小编的地区代码就是101190401。
小编我把修改好的文字放在下面以供大家复制粘贴(红色的代码要靠自己找自己对应的城市):
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=#CODE#&weatherType=0
RegExp="{"weatherinfo":{"city":"(.*)","city_en":"(.*)","date_y":"(.*)","date":"(.*)","week":"(.*)","fchh":(.*),"cityid":(.*),"temp1":"(.*)","temp2":"(.*)","temp3":"(.*)","temp4":"(.*)","temp5":"(.*)","temp6":"(.*)","tempF1":"(.*)","tempF2":"(.*)","tempF3":"(.*)","tempF4":"(.*)","tempF5":"(.*)","tempF6":"(.*)","weather1":"(.*)","weather2":"(.*)","weather3":"(.*)","weather4":"(.*)","weather5":"(.*)","weather6":"(.*)","img1":"(.*)","img2":"(.*)","img3":"(.*)","img4":"(.*)","img5":"(.*)","img6":"(.*)","img7":"(.*)","img8":"(.*)","img9":"(.*)","img10":"(.*)","img11":"(.*)","img12":"(.*)","img_single":(.*),"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":"(.*)","fl2":"(.*)","fl3":"(.*)","fl4":"(.*)","fl5":"(.*)","fl6":"(.*)","index":"(.*)","index_d":"(.*)","index48":"(.*)","index48_d":"(.*)","index_uv":"(.*)","index48_uv":"(.*)","index_xc":"(.*)","index_tr":"(.*)","index_co":"(.*)","st1":(.*),"st2":(.*),"st3":(.*),"st4":(.*),"st5":(.*),"st6":(.*),"index_cl":"(.*)","index_ls":"(.*)","index_ag":"(.*)"}}"
StringIndex=1
FinishAction=!Execute [!UpdateMeasure #CURRENTSECTION#][!Redraw]
;IfAboveValue=1
;IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
;Debug=1
;--------------------------------
[MeasureWeatherNOW]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=#CODE#&weatherType=1
RegExp={"weatherinfo":{"city":"(.*)","cityid":(.*),"temp":"(.*)","WD":"(.*)","WS":"(.*)","SD":"(.*)","WSE":(.*),"time":"(.*)","isRadar":(.*),"Radar":"(.*)","njd":"(.*)","qy":(.*)}}
StringIndex=1
轻轻松松就锁好了一个美观大方的插件,赶快拿给旁边的人炫耀吧。
转载地址:https://blog.csdn.net/weixin_32497403/article/details/117727356 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!