Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; To find your weather code:
- ; ----------------------------------
- ; 1) First, go to www.weather.com and search for your city
- ; 2) When you have found your city (or a city close enough), take a look at the site address.
- ; It should look something like http://www.weather.com/weather/today/Helsinki+Finland+FIXX0002
- ; 3) In the example above, the location code is FIXX0002. This is what you should enter as the
- ; weatherCode in the [Variables] section
- [Rainmeter]
- Update=1000
- Background=#@#Background.png
- ; #@# is equal to Rainmeter\Skins\illustro\@Resources
- BackgroundMode=3
- BackgroundMargins=0,34,0,14
- [Variables]
- fontName=Trebuchet MS
- textSize=8
- colorBar=586edf
- colorText=FFFFFFCC
- weatherCode=USFL0208
- ; --------------------------------------------------------
- ; MEASURES:
- ; W1 = Reads RSS/XML data, which can then be called by the other measures
- ; W2 = Temperature
- ; W3 = "Feels like" temperature (taking wind into account)
- ; W4 = Humidity
- ; W5 = Wind
- ; W6 = Condition (eg "fair")
- ;
- ; UpdateRate sets how often the weather info is fetched,
- ; in seconds. 1800 seconds = 30 minutes.
- ; --------------------------------------------------------
- [measureW1]
- Measure=Plugin
- Plugin=WebParser.dll
- UpdateRate=900
- Url=http://wxdata.weather.com/wxdata/weather/local/#weatherCode#?cc=
- 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>.*"
- [measureW2]
- Measure=Plugin
- Plugin=WebParser.dll
- Url=[measureW1]
- StringIndex=17
- [measureW3]
- Measure=Plugin
- Plugin=WebParser.dll
- Url=[measureW1]
- StringIndex=18
- [measureW4]
- Measure=Plugin
- Plugin=WebParser.dll
- Url=[measureW1]
- StringIndex=27
- [measureW5]
- Measure=Plugin
- Plugin=WebParser.dll
- Url=[measureW1]
- StringIndex=23,25
- [measureW6]
- Measure=Plugin
- Plugin=WebParser.dll
- Url=[measureW1]
- StringIndex=19
- ; ----------------------------------
- ; STYLES
- ; ----------------------------------
- [styleTitle]
- StringAlign=CENTER
- StringCase=UPPER
- StringStyle=BOLD
- StringEffect=SHADOW
- FontEffectColor=0,0,0,50
- FontColor=#colorText#
- FontFace=#fontName#
- FontSize=10
- AntiAlias=1
- ClipString=1
- [styleLeftText]
- StringAlign=LEFT
- ; Meters using styleLeftText will be left-aligned.
- StringCase=NONE
- StringStyle=BOLD
- StringEffect=SHADOW
- FontEffectColor=0,0,0,20
- FontColor=#colorText#
- FontFace=#fontName#
- FontSize=#textSize#
- AntiAlias=1
- ClipString=1
- [styleRightText]
- StringAlign=RIGHT
- StringCase=NONE
- StringStyle=BOLD
- StringEffect=SHADOW
- FontEffectColor=0,0,0,20
- FontColor=#colorText#
- FontFace=#fontName#
- FontSize=#textSize#
- AntiAlias=1
- ClipString=1
- [styleBar]
- BarColor=#colorBar#
- BarOrientation=HORIZONTAL
- SolidColor=255,255,255,15
- ; --------------------------
- ; METERS
- ; Note: not in reading order
- ; (W6, W2, W5, W3, W4)
- ; --------------------------
- [meterTitle]
- Meter=STRING
- MeterStyle=styleTitle
- ; Using MeterStyle=styleTitle will basically "copy" the
- ; contents of the [styleTitle] section here during runtime.
- X=100
- Y=12
- W=190
- H=18
- Text="Weather"
- LeftMouseUpAction=!Execute ["http://www.weather.com/weather/today/#weatherCode#"]
- ToolTipText="Open Weather.com"
- [meterLabel1]
- Meter=STRING
- MeterStyle=styleLeftText
- X=10
- Y=40
- W=190
- H=14
- Text="Conditions"
- [meterValue1]
- Meter=STRING
- MeterStyle=styleRightText
- MeasureName=measureW6
- X=200
- Y=0r
- W=190
- H=14
- Text="%1"
- [meterBar1]
- Meter=Bar
- MeterStyle=styleBar
- MeasureName=measureW6
- X=10
- Y=52
- W=190
- H=1
- [meterLabel2]
- Meter=STRING
- MeterStyle=styleLeftText
- X=10
- Y=60
- W=190
- H=14
- Text="Temperature"
- [meterValue2]
- Meter=STRING
- MeterStyle=styleRightText
- MeasureName=measureW2
- X=200
- Y=0r
- W=190
- H=14
- Text="%1 F"
- [meterBarValue2]
- Meter=Bar
- MeterStyle=styleBar
- MeasureName=measureW2
- X=10
- Y=72
- W=190
- H=1
- [meterLabel3]
- Meter=STRING
- MeterStyle=styleLeftText
- X=10
- Y=100
- W=190
- H=14
- Text="Feels like"
- [meterValue3]
- Meter=STRING
- MeterStyle=styleRightText
- MeasureName=measureW3
- X=200
- Y=0r
- W=190
- H=14
- Text="%1 F"
- [meterBarValue3]
- Meter=Bar
- MeterStyle=styleBar
- MeasureName=measureW3
- X=10
- Y=92
- W=190
- H=1
- [meterLabel4]
- Meter=STRING
- MeterStyle=styleLeftText
- X=10
- Y=120
- W=190
- H=14
- Text="Humidity"
- [meterValue4]
- Meter=STRING
- MeterStyle=styleRightText
- MeasureName=measureW4
- X=200
- Y=0r
- W=190
- H=14
- Text="%1%"
- [meterBarValue4]
- Meter=Bar
- MeterStyle=styleBar
- MeasureName=measureW4
- X=10
- Y=112
- W=190
- H=1
- [meterLabel5]
- Meter=STRING
- MeterStyle=styleLeftText
- X=10
- Y=80
- W=190
- H=14
- Text="Wind"
- [meterValue5]
- Meter=STRING
- MeterStyle=styleRightText
- MeasureName=measureW5
- X=200
- Y=0r
- W=190
- H=14
- Text=%1 mph
- [meterBarValue5]
- Meter=Bar
- MeterStyle=styleBar
- MeasureName=measureW5
- X=10
- Y=132
- W=190
- H=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement