- UID
- 277210
- 帖子
- 43
- 积分
- 46
- 天下币
- 31 枚
- 贡献
- 0
- 签到
- 0 天
- 人气
- 0 度
- 爱心
- 0 颗
- 注册时间
- 2010-11-12
|
这是代码,有会的朋友,给改下,先谢谢了[Rainmeter]
Background=bg.png
;////////////////////////////////////////
; BACKGROUND
;////////////////////////////////////////
[MeterBlack]
Meter=String
x=0
Y=0
W=190
H=230
SolidColor=0, 0, 0, 0
[Variables]
;Please replace your location code of Weather.com below, e.g: Wiesbaden is/CHXX0362 GMXX0138.
;You can check it on Weather.com or Google.
;And you may also delete "&unit=m" if you prefer the Fahrenheit Scale.
Farbe=255,255,255,180
URL=http://xml.weather.com/weather/local/CHXX0086?cc=*&unit=m&dayf=6
Font=微软雅黑
;城市名称, 可使用中文.
Ort=洛阳
;================================================================
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1700
Url=#URL#
RegExp="(?siU)<weather ver="(.*)">(.*)<lsup>(.*)</lsup>(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
;Debug=1
;--------------------------------
[MeasureWeatherTime]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3
[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5
;天气描述 翻译 去掉;Substitute前的分号即可显示中文
[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
Substitute="and":" ","with":" ","Clear":"晴","Fair":"晴朗","Partly Cloudy":"局部多云","Mostly Cloudy":"多云","Cloudy":"阴天","Freezing Rain":"冻雨","Light Rain Shower":"小到阵雨","Light Rain":"小雨","Rain":"雨","Thunder":"雷雨","in the Vicinity":"周边地区","Shower":"阵雨","Light Snow":"小雪","Snow":"雪","Sunny":"晴朗","Windy":"有风","Haze":"薄雾","Fog":"雾","Widespread Dust":"沙尘暴","Set":"Set","T-Storm":"风暴"
StringIndex=7
[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9
;-------------------------
;tomorrow's weather description, id=18
;tomorrow's day, id=11
;tomorrow's date, id=12, you can redefine the StringIndex value below with the id#
[MeasureWeatherDate1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
Substitute="Monday":"周一","Tuesday":"周二","Wednesday":"周三","Thursday":"周四","Friday":"周五","Saturday":"周六","Sunday":"周日"
StringIndex=11
;tomorrow's Hi-temp, id=14
;tomorrow's Lo-temp, id=16, you can redefine the StringIndex value below with the id#
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=14
[MeasureWeatherTemp1l]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16
;tomorrow's weather icon, id=18
[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=18
;-------------------------
;D+2, weather description, id=31
;D+2, day of week, id=22
;D+2, date, id=23
[MeasureWeatherDate2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
Substitute="Monday":"周一","Tuesday":"周二","Wednesday":"周三","Thursday":"周四","Friday":"周五","Saturday":"周六","Sunday":"周日"
StringIndex=22
;D+2, Hi-temp, id=25
;D+2, Lo-temp, id=27
[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=25
[MeasureWeatherTemp2l]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=27
;D+2, weather icon, id=29
[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=29
;-------------------------
;D+3, weather description, id=42
;D+3, day of week, id=33
;D+3, date, id=34
[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
Substitute="Monday":"周一","Tuesday":"周二","Wednesday":"周三","Thursday":"周四","Friday":"周五","Saturday":"周六","Sunday":"周日"
StringIndex=33
;D+3, Hi-temp, id=36
;D+3, Lo-temp, id=38
[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=36
[MeasureWeatherTemp3l]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=38
;D+3, weather icon, id=40
[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=40
;================================================================
;标题
[MeterTitle]
Meter=STRING
X=95
Y=85
FontColor=255,255,255,250
FontSize=15
StringAlign=Left
StringStyle=BOLD
FontFace=汉仪雪君体简
AntiAlias=1
Text=#Ort#
;无数据时显示
[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=0
Y=15
H=70
W=75
;当天温度图标
[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=-60
Y=-50
H=220
W=225
Hidden=1
;当天温度数字部分
[MeterTempDBlau.txt]
MeasureName=MeasureWeatherTempKl0
Meter=STRING
X=118
Y=33
FontColor=255,255,255,180
;StringStyle=BOLD
FontSize=18
StringAlign=Left
;StringStyle=BOLD
FontFace=Capture it
Antialias=1
Hidden=1
;测量当天温度
[MeasureWeatherTempKl0]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5
IfBelowValue=1
IfBelowAction=!execute #HideNormal# [!RainmeterShowMeter MeterTempDBlau.txt] [!RainmeterRedraw]
;测量最高温度
[MeasureWeatherTemp0]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5
IfAboveValue=0
IfAboveAction=!execute #HideNormal# [!RainmeterShowMeter MeterTempBlau.txt] [!RainmeterRedraw]
;测量最低温度
[MeasureWeatherTemp15]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5
IfAboveValue=15
IfAboveAction=!execute #HideNormal# [!RainmeterShowMeter MeterTempWeiss.txt] [!RainmeterRedraw]
;测量未知
[MeasureWeatherTemp27]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5
IfAboveValue=27
IfAboveAction=!execute #HideNormal# [!RainmeterShowMeter MeterTempRot.txt] [!RainmeterRedraw]
;温度单位
[MeterGrad.txt]
Meter=String
X=150
Y=33
FontColor=#Farbe#
StringStyle=BOLD
FontSize=15
Antialias=1
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Text="℃"
;当天天气描述
[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=115
Y=60
FontColor=255,255,255,220
StringStyle=BOLD
FontSize=10
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1
;////////////////////////////////////////////////////////////////////////////////////
;未来天气预报部分
;////////////////////////////////////////////////////////////////////////////////////
;第二天星期
[MeterDate1]
MeasureName=MeasureWeatherDate1
Meter=STRING
X=205
Y=40
FontColor=255,255,255,220
FontSize=8
StringAlign=Center
StringStyle=BOLD
FontFace=#Font#
Antialias=1
;第二天最高温度
[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=210
Y=55
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=8
StringAlign=Right
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="/"
;第二天最低温度
[MeterTemp1l]
MeasureName=MeasureWeatherTemp1l
Meter=STRING
X=207
Y=55
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=7
StringAlign=Left
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
;Postfix="℃"
;第二天天气图片
[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=165
Y=40
H=80
W=80 |
|