------ 文章開始 ------

[Rainmeter]
Author=JSMorley
Update=500

[Metadata]
Name=Weather
Information=Description:|Yahoo Weather Current Conditions | The three displays are Current / Today / Tomorrow||Instructions:|Edit UserVariables.inc to change weather code and colors.  Instructions for gettin Yahoo weather code in UserVariables.inc.
Version=Sep 30, 2011
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
@Include="#ROOTCONFIGPATH#UserVariables.inc"
MeterDiv=2
MeasureDiv=1200
IconTint=255,255,255,170

[MeterAllBackground]
Meter=IMAGE
W=130
H=268
SolidColor=0,0,0,1
UpdateDivider=-1

;[GATHER WEATHER INFO FROM YahooWeather]===================

[MeasureYahooWeather]
Measure=Plugin
Plugin=WebParser.dll
URL=http://weather.yahooapis.com/forecastrss?w=#Location#&u=#Unit#
RegExp="(?siU)<title>.*- (.*)</title>.*<link>(.*)/\*(.*)</link>.*<description>(.*)</description>.*<language>(.*)</language>.*<lastBuildDate>(.*)</lastBuildDate>.*<yweather:location city="(.*)".*region="(.*)".*country="(.*)".*<yweather:units temperature="(.*)".*distance="(.*)".* pressure="(.*)".*speed="(.*)".*<yweather:wind chill="(.*)".*direction="(.*)".*speed="(.*)".*<yweather:atmosphere humidity="(.*)".* visibility="(.*)".*pressure="(.*)".* rising="(.*)".*<yweather:astronomy sunrise="(.*)".*sunset="(.*)".*<title>(.*)</title>.*<width>(.*)</width>.*<height>(.*)</height>.*<link>(.*)</link>.*<url>(.*)</url>.*<title>(.*)</title>.*<geo:lat>(.*)</geo:lat>.*<geo:long>(.*)</geo:long>.*<link>(.*)/\*(.*)</link>.*<pubDate>(.*)</pubDate>.*<yweather:condition  text="(.*)".*code="(.*)".*temp="(.*)".*date="(.*)".*<img src="(.*)".*Current Conditions:</b><br />(.*)<BR />.*Forecast:</b><BR />(.*)<br />.*(.*)<br />.*<a href="(.*)/\*(.*)">.*provided by <a href="(.*)" >(.*)</a>.*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*<yweather:forecast day="(.*)".*date="(.*)".*low="(.*)".*high="(.*)".*text="(.*)".*code="(.*)".*"
FinishAction=!EnableMeasure MeasureScriptTemp #CURRENTCONFIG#
UpdateRate=#MeasureDiv#

;[Measures]===============================================

[MeasureLink]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=3
UpdateRate=#MeasureDiv#

[MeasureNowIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=35
UpdateRate=#MeasureDiv#

[MeasureNowWeatherConditions]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=34
UpdateRate=#MeasureDiv#

[MeasureNowWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=36
UpdateRate=#MeasureDiv#

[MeasureScriptTemp]
Measure=SCRIPT
ScriptFile=#CURRENTPATH#Weather.lua
FahrenheitColor=#Color1#
CelsiusColor=#Color1#
ToggleUnit=#ToggleUnit#
UpdateDivider=10
Disabled=1

[MeasureNowHumidity]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=17
UpdateRate=#MeasureDiv#

[MeasureWindUnit]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=13
UpdateRate=#MeasureDiv#

[MeasureNowWindDir]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=15
UpdateRate=#MeasureDiv#

[MeasureNowWind]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=16
UpdateRate=#MeasureDiv#

[MeasureNowBarometer]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=19
UpdateRate=#MeasureDiv#

[MeasureNowChange]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=20
Substitute="0":"Steady","1":"Rising","2":"Falling"
UpdateRate=#MeasureDiv#

[MeasureSunRise]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=21
UpdateRate=#MeasureDiv#

[MeasureSunSet]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=22
UpdateRate=#MeasureDiv#

[MeasureTodayWeatherHigh]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=49
UpdateRate=#MeasureDiv#

[MeasureTodayWeatherLow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=48
UpdateRate=#MeasureDiv#

[MeasureTomorrowWeatherHigh]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=55
UpdateRate=#MeasureDiv#

[MeasureTomorrowWeatherLow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=54
UpdateRate=#MeasureDiv#

[MeasureTodayIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=51
UpdateRate=#MeasureDiv#

[MeasureTomorrowName]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=52
Substitute="Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday","Sun":"Sunday"
UpdateRate=#MeasureDiv#

[MeasureTomorrowIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureYahooWeather]
StringIndex=57
UpdateRate=#MeasureDiv#

;[Meters]=================================================

[MeterNowIcon]
Meter=IMAGE
MeasureName=MeasureNowIcon
W=100
X=0
Y=0
Path=#ROOTCONFIGPATH#Images\Weather
PreserveAspectRatio=1
ImageTint=#IconTint#
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=!Execute ["[MeasureLink]"]
MouseOverAction=!Execute [!SetVariable IconTint 255,255,255,255][!Update]
MouseLeaveAction=!Execute [!SetVariable IconTint 255,255,255,170][!Update]

[MeterNowTemp]
Meter=STRING
MeasureName=MeasureNowWeatherTemp
X=130
Y=9
FontColor=#Color1#
FontFace=#FontFace#
FontSize=26
StringStyle=BOLD
StringAlign=Right
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=!Execute ["[MeasureLink]"]
UpdateDivider=#MeterDiv#

[MeterNowConditions]
Meter=STRING
MeasureName=MeasureNowWeatherConditions
X=130
Y=-5R
W=130
H=20
FontColor=#Color1#
FontFace=#FontFace#
FontSize=14
StringStyle=Bold
StringAlign=Right
AntiAlias=1
ClipString=1
UpdateDivider=#MeterDiv#

[MeterNowFeelsPrefix]
Meter=STRING
X=0
Y=3R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Feels:"
UpdateDivider=#MeterDiv#

[MeterNowFeels]
Meter=STRING
MeasureName=MeasureScriptTemp
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text="%1%"
UpdateDivider=#MeterDiv#

[MeterNowHumidityPrefix]
Meter=STRING
X=0
Y=2R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Humidity:"
UpdateDivider=#MeterDiv#

[MeterNowHumidity]
Meter=STRING
MeasureName=MeasureNowHumidity
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text="%1%"
UpdateDivider=#MeterDiv#

[MeterNowWindPrefix]
Meter=STRING
X=0
Y=2R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Wind:"
UpdateDivider=#MeterDiv#

[MeterNowWind]
Meter=STRING
MeasureName=MeasureNowWind
MeasureName2=MeasureNowWindDir
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text=%1 [MeasureWindUnit]
DynamicVariables=1
UpdateDivider=#MeterDiv#

[MeterNowBarometerPrefix]
Meter=STRING
X=0
Y=2R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Barometer:"
UpdateDivider=#MeterDiv#

[MeterNowBarometer]
Meter=STRING
MeasureName=MeasureNowBarometer
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text="%1"
UpdateDivider=#MeterDiv#

[MeterNowChangePrefix]
Meter=STRING
X=0
Y=2R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Change:"
UpdateDivider=#MeterDiv#

[MeterNowChange]
Meter=STRING
MeasureName=MeasureNowChange
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text="%1"
UpdateDivider=#MeterDiv#

[MeterSunRisePrefix]
Meter=STRING
X=0
Y=2R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Sunrise:"
UpdateDivider=#MeterDiv#

[MeterSunRise]
Meter=STRING
MeasureName=MeasureSunRise
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text="%1"
UpdateDivider=#MeterDiv#

[MeterSunSetPrefix]
Meter=STRING
MeasureName=MeasureSunSet
X=0
Y=2R
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=LEFT
AntiAlias=1
ClipString=1
Text="Sunset:"
UpdateDivider=#MeterDiv#

[MeterSunSet]
Meter=STRING
MeasureName=MeasureSunSet
X=130
Y=0r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
ClipString=1
Text="%1"
UpdateDivider=#MeterDiv#

[MeterTodayIcon]
Meter=IMAGE
MeasureName=MeasureTodayIcon
W=60
X=0
Y=17r
Path=#ROOTCONFIGPATH#Images\Weather
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
UpdateDivider=#MeterDiv#

[MeterTodayName]
Meter=STRING
X=130
Y=8r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=RIGHT
AntiAlias=1
Text="Forecast"
UpdateDivider=#MeterDiv#

[MeterTodayLowHigh]
Meter=STRING
MeasureName=MeasureTodayWeatherHigh
MeasureName2=MeasureTodayWeatherLow
X=130
Y=15r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
Text="%2?| %1?
UpdateDivider=#MeterDiv#

[MeterTomorrowIcon]
Meter=IMAGE
MeasureName=MeasureTomorrowIcon
W=60
X=0
Y=17r
Path=#ROOTCONFIGPATH#Images\Weather
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
UpdateDivider=#MeterDiv#

[MeterTomorrowName]
Meter=STRING
MeasureName=MeasureTomorrowName
X=130
Y=5r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=NORMAL
StringAlign=RIGHT
AntiAlias=1
UpdateDivider=#MeterDiv#

[MeterTomorrowLowHigh]
Meter=STRING
MeasureName=MeasureTomorrowWeatherHigh
MeasureName2=MeasureTomorrowWeatherLow
X=130
Y=15r
W=130
H=15
FontColor=#Color2#
FontFace=#FontFace#
FontSize=13
StringStyle=Bold
StringAlign=RIGHT
AntiAlias=1
Text="%2?| %1?
UpdateDivider=#MeterDiv#

;[END CONFIG FILE]========================================
------ 文章結尾 ------

[複製網址] [開新視窗] [檢舉短網址] [QR條碼]

服務條款 - 加入會員(免費) - 回報問題網址 - 聯絡偶們 -

© 2025 PPT.cc