返回列表 发帖

[Win7桌面秀] RM天气插件高手来!

本人在武汉,天气插件显示的不对,下面附上代码,该怎么修改,忘高手指点啊:[Rainmeter]
Background=bg.png
;////////////////////////////////////////
;   BACKGROUND
;////////////////////////////////////////

;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin
[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=
;End of added Metadata
[MeterBlack]
Meter=String
x=0
Y=0
W=190
H=230

[Variables]
;Please replace your locetion code of Weather.com below, e.g: Wiesbaden is 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://xoap.weather.com/weather/local/CHXX0138?cc=*&unit=m&dayf=6&prod=xoap&link=xoap&par=1003666583&key=4128909340a9b2fc&unit=s&hbhf=12
Font= 微软雅黑
;城市名称, 可使用中文.
Ort=武汉

;================================================================
[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
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=8
Y=8
FontColor=255,255,255,250
FontSize=20
StringAlign=Left
StringStyle=BOLD
FontFace=微软雅黑
AntiAlias=1
Text=#Ort#
;无数据时显示
[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=30
Y=-10
;当天温度图标
[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=-80
Y=-70
Hidden=1
;当天温度数字部分
[MeterTempDBlau.txt]
MeasureName=MeasureWeatherTempKl0
Meter=STRING
X=115
Y=15
FontColor=255,255,255,180
;StringStyle=BOLD
FontSize=35
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=164
Y=35
FontColor=#Farbe#
StringStyle=BOLD
FontSize=14
Antialias=1
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Text="℃"
;当天天气描述
[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=125
Y=103
FontColor=255,255,255,220
StringStyle=BOLD
FontSize=10
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1

;////////////////////////////////////////////////////////////////////////////////////
;未来天气预报部分
;////////////////////////////////////////////////////////////////////////////////////

;第二天星期
[MeterDate1]
MeasureName=MeasureWeatherDate1
Meter=STRING
X=35
Y=140
FontColor=255,255,255,220
FontSize=8
StringAlign=Center
StringStyle=BOLD
FontFace=#Font#
Antialias=1

;第二天最高温度
[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=38
Y=155
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=8
StringAlign=Right
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="/"
;第二天最低温度
[MeterTemp1l]
MeasureName=MeasureWeatherTemp1l
Meter=STRING
X=35
Y=158
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=7
StringAlign=Left
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
;Postfix="℃"
;第二天天气图片
[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
;X=-55
;Y=135
X=-36
Y=123
H=130
W=135
;------------------------- offset Y: +40
;第三天星期
[MeterDate2]
MeasureName=MeasureWeatherDate2
Meter=STRING
X=100
Y=140
FontColor=255,255,255,220
FontSize=8
StringAlign=Center
StringStyle=BOLD
FontFace=#Font#
Antialias=1

;第三天最高温度
[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=103
Y=155
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=8
StringAlign=RIGHT
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="/"

;第三天最低温度
[MeterTemp2l]
MeasureName=MeasureWeatherTemp2l
Meter=STRING
X=100
Y=158
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=7
StringAlign=LEFT
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
;Postfix="℃"

;第三天天气图片
[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=30
Y=123
H=130
W=135
;------------------------- offset Y: +40
;第四天星期
[MeterDate3]
MeasureName=MeasureWeatherDate3
Meter=STRING
X=162
Y=140
FontColor=255,255,255,220
FontSize=8
StringAlign=Center
StringStyle=BOLD
FontFace=#Font#
Antialias=1

;第四天最高温度
[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=166
Y=155
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=8
StringAlign=RIGHT
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="/"

;第四天最低温度
[MeterTemp3l]
MeasureName=MeasureWeatherTemp3l
Meter=STRING
X=163
Y=158
FontColor=255,255,255,160
StringStyle=NORMAL
FontSize=7
StringAlign=LEFT
;StringStyle=BOLD
FontFace=#Font#
Antialias=1
;Postfix="℃"

;第四天天气图片
[MeterIcon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=95
Y=123
H=130
W=135
生命不息,前进不止!

没有高手么?我自己顶!!!!!!!!!!
生命不息,前进不止!

TOP

我也没弄好,求解

TOP

好像是这段没有值

TOP

求解 求解 求解 求解 求解 求解 求解 ;;发奋图强!

TOP

wwwwwwwwwwwww

TOP

dddddddddddddddddddddddd

TOP

URL不对。。。。。。。

TOP

提示: 作者被禁止或删除 内容自动屏蔽

TOP

{:soso__11824279145206529318_4:}

TOP

返回列表