Rainmeter的天气皮肤修改办法,详细.
本帖最后由 huiquan104626 于 2010-1-29 12:04 编辑发错地方了,对不起.恳请斑竹挪一下位置.谢谢.
Rainmeter的天气侧边栏,一般使用的都是一个国外网站的城市编码.CHXX0407什么的.
非常的不方便.很多城市都没有.
现在,我把城市编码换成国内的,详细方法如下:
打开天气皮肤的Weathers.ini文件,把里面的内容全部删除.换成以下内容.
Author=Jason
BackgroundMode=1
;===================seting=======================================
Meter=String
x=0
Y=0
W=190
H=135
;SolidColor=200,200,200,30
SolidColor=0,0,0,0
URL=http://m.weather.com.cn/data/101190704.html
URL2=http://www.weather.com.cn/html/weather/101190704.shtml
Font=微软雅黑
Farbe=255,255,255,180
;================================================================
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=#URL#
RegExp="{"weatherinfo":{"city":"(.*)","city_en":"(.*)","date_y":"(.*)","date":"(.*)","week":"(.*)","fchh":"(.*)","cityid":"(.*)","temp1":"(.*)℃~(.*)℃","temp2":"(.*)","weather1":"(.*)","weather2":"(.*)","img1":"(.*)","img2":"(.*)","img3":"(.*)","img4":"(.*)","img_single":"(.*)","img_title1":"(.*)","img_title2":"(.*)","img_title3":"(.*)","img_title4":"(.*)","img_title_single":"(.*)","wind1":"(.*)","wind2":"(.*)","fl1":"(.*)","fl2":"(.*)","index":"(.*)","index_d":"(.*)","index_xc":"(.*)","index_tr":"(.*)"}}"
StringIndex=1
;Debug=1
;--------------------------------
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=1
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=8
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=8
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=9
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=8
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=11
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=13
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=29
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=23
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=
StringIndex=27
;================================================================
MeasureName=MeasureCity
Meter=STRING
X=105
Y=10
FontColor=105,190,255,240
FontSize=24
StringAlign=Left
String**=BOLD
FontFace=汉仪雪君体简
AntiAlias=1
;ImageName=na.png
Meter=IMAGE
X=60
Y=15
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=5
Y=3
W=100
H=65
MeasureName=MeasureWeathertop
Meter=STRING
X=138
Y=45
FontColor=255,255,255,200
String**=BOLD
FontSize=15
StringAlign=Left
FontFace=Capture it
Antialias=1
MeasureName=MeasureWeatherlow
Meter=STRING
X=96
Y=45
FontColor=255,255,255,200
String**=BOLD
FontSize=15
StringAlign=Left
FontFace=Capture it
Antialias=1
Postfix="~"
Meter=String
X=158
Y=40
FontColor=#Farbe#
FontSize=16
Antialias=1
StringAlign=LEFT
String**=BOLD
FontFace=#Font#
Text="℃"
Meter=STRING
X=72
Y=70
FontColor=255,255,255,250
FontSize=8
StringAlign=Right
String**=BOLD
FontFace=#Font#
AntiAlias=1
Text=天气状况:
MeasureName=MeasureWeatherDesc
Meter=STRING
X=5r
Y=70
FontColor=255,255,255,250
FontSize=8
StringAlign=Left
FontFace=#Font#
Antialias=1
Meter=STRING
X=72
Y=85
FontColor=255,255,255,250
FontSize=8
StringAlign=Right
String**=BOLD
FontFace=#Font#
AntiAlias=1
Text=风向风力:
MeasureName=MeasureWeatherWind
Meter=STRING
X=5r
Y=85
W=110
H=15
FontColor=255,255,255,250
FontSize=8
StringAlign=Left
FontFace=#Font#
Antialias=1
ClipString=1
Meter=STRING
X=72
Y=100
FontColor=255,255,255,250
FontSize=8
StringAlign=Right
String**=BOLD
FontFace=#Font#
AntiAlias=1
Text=气温状况:
MeasureName=MeasureWeatherHot
Meter=STRING
X=5r
Y=100
FontColor=255,255,255,250
FontSize=8
StringAlign=Left
FontFace=#Font#
Antialias=1
Meter=STRING
X=72
Y=115
FontColor=255,255,255,250
FontSize=8
StringAlign=Right
String**=BOLD
FontFace=#Font#
AntiAlias=1
Text=紫 外 线 :
MeasureName=MeasureWeatherUVIndexDesc
Meter=STRING
X=5r
Y=115
FontColor=255,255,255,250
FontSize=8
StringAlign=Left
FontFace=#Font#
Antialias=1
;================================================================
Meter=IMAGE
IMAGEName=wd.png
X=137
Y=102
W=28
H=28
MouseOverAction=!execute [!RainmeterShowMeter MeterWLOverTip][!RainmeterShowMeter MeterWLIcon][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterHideMeter MeterWLOverTip][!RainmeterShowMeter MeterWLIcon][!RainmeterRedraw]
LeftMouseDownAction=#URL2#
Meter=String
X=151
Y=112
FontColor=105,190,255,240
FontSize=9
FontFace=#FontName#
String**=BOLD
StringAlign=CENTER
AntiAlias=1
Prefix=查询更多
LeftMouseDownAction=#URL2#
Hidden=1
然后就可以去http://weather.com.cn/查询具体城市代码,可以具体到县.
URL=http://m.weather.com.cn/data/101190704.html
URL2=http://www.weather.com.cn/html/weather/101190704.shtml
Font=微软雅黑
Farbe=255,255,255,180
101190704是一个老区县城的代码,换了就可以. 支持 楼主辛苦了 有点复杂!! 还是支持下 楼主辛苦了~~可以试试叫看 感谢分享 终于学会一点皮毛了 哈哈 继续努力!
页:
[1]