代码入下
Rainmeter]
Author=阿飞
Update=1000 [Variables]
等号后面的内容修改为你所在地区的CODE
具体细节请到
http://www.weather.com.cn查询
Code=101010100 [MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=12000
Url=
http://m.weather.com.cn/data/Code=101181001.htmlRegExp="{"weatherinfo":{"city":"(.*)","city_en":"(.*)","date_y":"(.*)","date":"(.*)","week":"(.*)","fchh":"(.*)","cityid":"(.*)","temp1":"(.*)","temp2":"(.*)","temp3":"(.*)","temp4":"(.*)","temp5":"(.*)","tempF1":"(.*)","tempF2":"(.*)","tempF3":"(.*)","tempF4":"(.*)","weather1":"(.*)","weather2":"(.*)","weather3":"(.*)","weather4":"(.*)","weather5":"(.*)","img1":"(.*)","img2":"(.*)","img3":"(.*)","img4":"(.*)","img5":"(.*)","img6":"(.*)","img7":"(.*)","img8":"(.*)","img_single":"(.*)","img_title1":"(.*)","img_title2":"(.*)","img_title3":"(.*)","img_title4":"(.*)","img_title5":"(.*)","img_title6":"(.*)","img_title7":"(.*)","img_title8":"(.*)","img_title_single":"(.*)","wind1":"(.*)","wind2":"(.*)","wind3":"(.*)","wind4":(.*)","fl1":"(.*)","fl2":"(.*)","fl3":"(.*)","fl4":"(.*)","index":"(.*)","index_d":"(.*)","index48":"(.*)","index48_d":"(.*)","index_uv":"(.*)","index48_uv":"(.*)","index_xc":"(.*)","index_tr":"(.*)","index_co":"(.*)"}}"
IfAboveValue=1
IfAboveAction=!execute[!RainmeterShowMeter MeterIcon]
[MeasureCity]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=1 [MeasureWeathertemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=8 [MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=22 [MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=17 [MeasureWeatherUVIndexDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=52 [MeasureWeatherWind]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=40 [MeasureWeatherHot]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=48 ;-------------------------------------- [MeterBack1]
Meter=IMAGE
X=10
Y=25
ImageName=skin2 [MeterIcon]
X=0
Y=10
meter=bitmap
measurename=MeasureWeatherIcon
bitmapimage="tianqi.png"
bitmapframes=32
bitmapextend=1
bitmapdigits=1 [MeterCity]
Meter=STRING
MeasureName=MeasureCity
X=30
Y=75
FontColor=0,0,0
FontFace=浪漫雅圆
FontSize=12
StringAlign=left
Antialias=1
LeftMouseDownAction=!Execute ["
http://www.weather.com.cn/html/weather/#WeatherCode#.shtml"] [Weathertemp1]
MeasureName=MeasureWeathertemp1
Meter=STRING
X=58
Y=45
FontColor=0,0,0
FontFace=浪漫雅圆
FontSize=12
Antialias=1 [WeatherDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=86
Y=75
FontColor=0,0,0
FontFace=浪漫雅圆
FontSize=12
Antialias=1