Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Rainmeter]
- Update=1000
- Author=Flying Hyrax | flyinghyrax.deviantart.com
- DynamicWindowSize=1
- MouseOverAction=!Execute [!ShowMeterGroup buttons][!Redraw]
- MouseLeaveAction=!Execute [!HideMeterGroup buttons][!Redraw]
- [Metadata]
- Name=Do I Need a Jacket?
- Version=1.0
- License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
- Information=Tells you if you'll need a jacket, based on current weather information from Yahoo! Weather and threshold values which you can set. | ALL credit for idea due to www.doineedajacket.com | Variables/options consolidated in Settings.txt in skin's root folder.
- [Variables]
- @Include=#CURRENTPATH#settings.txt
- [mWeatherData]
- Measure=PLUGIN
- Plugin=Plugins\WebParser.dll
- URL=http://weather.yahooapis.com/forecastrss?p=#loc#&u=#unit#
- RegExp="(?siU)<yweather:location city="(.*)".*region="(.*)".*country="(.*)".*<yweather:units temperature="(.*)".*speed="(.*)".*speed="(.*)".*<pubDate>(.*)</pubDate>.*<yweather:condition text="(.*)".*temp="(.*)".*low="(.*)""
- UpdateDivider=900
- ErrorString="ixnay on the eatherway"
- ForceReload=1
- Debug=0
- [mCity]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=1
- [mRegion]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=2
- [mCountry]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=3
- [mTempUnit]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=4
- [mWindUnit]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=5
- [mWind]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=6
- [mDate]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=7
- [mCondition]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=8
- [mTemp]
- Measure=Plugin
- Plugin=Plugins\WebParser.dll
- URL=[mWeatherData]
- StringIndex=9
- [mCalcTemp]
- Measure=CALC
- Formula=#freezeTemp# > mTemp ? 3 : (#coldTemp# > mTemp ? 2 : (#hotTemp# > mTemp ? 1 : 0))
- [mTempSubs]
- Measure=CALC
- Formula=mCalcTemp
- Substitute="3":"damn cold out","2":"chilly out","1":"comfortable","0":"really hot"
- [mCalcWind]
- Measure=CALC
- Formula=#windLow# > mWind ? 0 : (#windHigh# > mWind ? 1 : (#windExtreme# > mWind ? 2 : (#windExtreme# <= mWind ? 3 : 4)))
- [mWindSubs]
- Measure=CALC
- Formula=mCalcWind
- Substitute="0":"not windy","1":"somewhat breezy","2":"very windy","3":"your computer just blew away"
- [mCalcJunction]
- Measure=CALC
- Formula=(mCalcTemp > 1) && (mCalcWind > 0) ? 1 : ((mCalcTemp > 1) && (mCalcWind <= 0) ? 2 : ((mCalcTemp <= 1) && (mCalcWind > 0) ? 2 : ((mCalcTemp <= 1) && (mCalcWind <= 0) ? 1 : 0)))
- Substitute="1":"and","2":"but","0":","
- [mCalcYN]
- Measure=CALC
- Formula=(1 < mCalcTemp) || (0 < mCalcWind) ? 1 : 0
- Substitute="1":"","0":" don't"
- [Y/N]
- Meter=STRING
- MeasureName=mCalcYN
- FontFace=#font1#
- FontSize=#size1#
- FontColor=#color#
- X=0
- Y=0
- AntiAlias=1
- SolidColor=0,0,0,1
- Text="You%1 need a jacket."
- [Elaboration]
- Meter=STRING
- MeasureName=mTempSubs
- MeasureName2=mWindSubs
- MeasureName3=mCalcJunction
- MeasureName4=mCondition
- MeasureName5=mTemp
- MeasureName6=mTempUnit
- MeasureName7=mWind
- MeasureName8=mWindUnit
- MeasureName9=mCity
- MeasureName10=mRegion
- MeasureName11=mCountry
- MeasureName12=mDate
- FontFace=#font2#
- FontSize=#size2#
- FontColor=#color#
- X=5
- Y=43
- AntiAlias=1
- SolidColor=0,0,0,1
- Text="It's %1, %3 %2."
- ToolTipText="%9 %10 %11#CRLF#%12#CRLF#%4, %5 %6#CRLF#Wind: %7 %8"
- [Settings]
- Meter=IMAGE
- ImageName=set.png
- SolidColor=0,0,0,1
- X=0
- Y=0
- W=24
- PreserveAspectRatio=1
- AntiAlias=1
- ImageTint=#color#
- Group=buttons
- Hidden=1
- LeftMouseUpAction=!Execute ["#CURRENTPATH#settings.txt"]
- ToolTipText="Open settings.txt"
- [Refresh]
- Meter=IMAGE
- ImageName=fresh.png
- SolidColor=0,0,0,1
- X=5R
- Y=r
- W=24
- PreserveAspectRatio=1
- AntiAlias=1
- ImageTint=#color#
- Group=buttons
- Hidden=1
- LeftMouseUpAction=!Refresh
- ToolTipText="Refresh skin"
- [Help]
- Meter=IMAGE
- ImageName=help.png
- SolidColor=0,0,0,1
- X=5R
- Y=r
- W=24
- PreserveAspectRatio=1
- AntiAlias=1
- ImageTint=#color#
- Group=buttons
- Hidden=1
- LeftMouseUpAction=!Execute ["#CURRENTPATH#info.rtf"]
- ToolTipText="Open ReadMe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement