Code: Select all
[Rainmeter]
Author=partibrejkers
Update=1000
----------------------------------------------
The default weather code is set to Belgrade , to get your Weather Code visit (weather.yahoo.com) type in your Zip, click the RSS button, your code will be in the address bar. Click on "Edit Skin" below to enter your code.
- Or try to find your weather code at (edg3.co.uk/snippets/weather-location-codes/)
----------------------------------------------------
[Variables]
Location=EIXX0024
Metric=M
Font=Century Gothic
FontColor=254, 204, 23
[bg]
ImageName=bg.png
Meter=IMAGE
X=0
Y=0
--------------
[Current]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
[Today]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=1
RegExp="(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
----------------
[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=17
[MeasureWeatherDesc]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=19
Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "
[MeasureWeatherIcon]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=20
[MeasureWeatherRealFeel]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=18
------------------
[MeasureWeatherDesc1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=9
Substitute=" And ":" and "
[MeasureWeatherDay1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=2
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=4
Substitute="N/A":"666"
[MeasureWeatherIcon1]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=8
[CheckNATemp]
Measure=Calc
Formula=[MeasureWeatherTemp1]
IfBelowValue=665
IfBelowAction=!execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
IfEqualValue=666
IfEqualAction=!execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
DynamicVariables=1
----------------
[MeasureWeatherNightDesc]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=18
Substitute=" And ":" and "
[MeasureWeatherNightTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=5
[MeasureWeatherNightIcon]
Measure=Plugin
Plugin=WebParser.dll
Url=[Today]
StringIndex=17
-----------------
-------------
[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=225
Y=110
FontColor=211, 219, 229,140
StringStyle=BOLD
FontSize=40
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,100
FontFace=Century Gothic
Antialias=1
Postfix="°C"
[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=225
Y=170
H=30
W=450
FontColor=211, 219, 229,140
FontSize=30
StringAlign=center
StringStyle=BOLD
StringEffect=Shadow
FontEffectColor=0,0,0,100
FontFace=Century Gothic
Antialias=1
[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=150
Y=0
------------