Advertisement
Guest User

Untitled

a guest
May 1st, 2016
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. [Rainmeter]
  2. Update=1000
  3. Author=Flying Hyrax | flyinghyrax.deviantart.com
  4. DynamicWindowSize=1
  5. MouseOverAction=!Execute [!ShowMeterGroup buttons][!Redraw]
  6. MouseLeaveAction=!Execute [!HideMeterGroup buttons][!Redraw]
  7.  
  8. [Metadata]
  9. Name=Do I Need a Jacket?
  10. Version=1.0
  11. License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
  12. 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.
  13.  
  14. [Variables]
  15. @Include=#CURRENTPATH#settings.txt
  16.  
  17. [mWeatherData]
  18. Measure=PLUGIN
  19. Plugin=Plugins\WebParser.dll
  20. URL=http://weather.yahooapis.com/forecastrss?p=#loc#&u=#unit#
  21. RegExp="(?siU)<yweather:location city="(.*)".*region="(.*)".*country="(.*)".*<yweather:units temperature="(.*)".*speed="(.*)".*speed="(.*)".*<pubDate>(.*)</pubDate>.*<yweather:condition text="(.*)".*temp="(.*)".*low="(.*)""
  22. UpdateDivider=900
  23. ErrorString="ixnay on the eatherway"
  24. ForceReload=1
  25. Debug=0
  26.  
  27. [mCity]
  28. Measure=Plugin
  29. Plugin=Plugins\WebParser.dll
  30. URL=[mWeatherData]
  31. StringIndex=1
  32.  
  33. [mRegion]
  34. Measure=Plugin
  35. Plugin=Plugins\WebParser.dll
  36. URL=[mWeatherData]
  37. StringIndex=2
  38.  
  39. [mCountry]
  40. Measure=Plugin
  41. Plugin=Plugins\WebParser.dll
  42. URL=[mWeatherData]
  43. StringIndex=3
  44.  
  45. [mTempUnit]
  46. Measure=Plugin
  47. Plugin=Plugins\WebParser.dll
  48. URL=[mWeatherData]
  49. StringIndex=4
  50.  
  51. [mWindUnit]
  52. Measure=Plugin
  53. Plugin=Plugins\WebParser.dll
  54. URL=[mWeatherData]
  55. StringIndex=5
  56.  
  57. [mWind]
  58. Measure=Plugin
  59. Plugin=Plugins\WebParser.dll
  60. URL=[mWeatherData]
  61. StringIndex=6
  62.  
  63. [mDate]
  64. Measure=Plugin
  65. Plugin=Plugins\WebParser.dll
  66. URL=[mWeatherData]
  67. StringIndex=7
  68.  
  69. [mCondition]
  70. Measure=Plugin
  71. Plugin=Plugins\WebParser.dll
  72. URL=[mWeatherData]
  73. StringIndex=8
  74.  
  75. [mTemp]
  76. Measure=Plugin
  77. Plugin=Plugins\WebParser.dll
  78. URL=[mWeatherData]
  79. StringIndex=9
  80.  
  81. [mCalcTemp]
  82. Measure=CALC
  83. Formula=#freezeTemp# > mTemp ? 3 : (#coldTemp# > mTemp ? 2 : (#hotTemp# > mTemp ? 1 : 0))
  84.  
  85. [mTempSubs]
  86. Measure=CALC
  87. Formula=mCalcTemp
  88. Substitute="3":"damn cold out","2":"chilly out","1":"comfortable","0":"really hot"
  89.  
  90. [mCalcWind]
  91. Measure=CALC
  92. Formula=#windLow# > mWind ? 0 : (#windHigh# > mWind ? 1 : (#windExtreme# > mWind ? 2 : (#windExtreme# <= mWind ? 3 : 4)))
  93.  
  94. [mWindSubs]
  95. Measure=CALC
  96. Formula=mCalcWind
  97. Substitute="0":"not windy","1":"somewhat breezy","2":"very windy","3":"your computer just blew away"
  98.  
  99. [mCalcJunction]
  100. Measure=CALC
  101. Formula=(mCalcTemp > 1) && (mCalcWind > 0) ? 1 : ((mCalcTemp > 1) && (mCalcWind <= 0) ? 2 : ((mCalcTemp <= 1) && (mCalcWind > 0) ? 2 : ((mCalcTemp <= 1) && (mCalcWind <= 0) ? 1 : 0)))
  102. Substitute="1":"and","2":"but","0":","
  103.  
  104. [mCalcYN]
  105. Measure=CALC
  106. Formula=(1 < mCalcTemp) || (0 < mCalcWind) ? 1 : 0
  107. Substitute="1":"","0":" don't"
  108.  
  109. [Y/N]
  110. Meter=STRING
  111. MeasureName=mCalcYN
  112. FontFace=#font1#
  113. FontSize=#size1#
  114. FontColor=#color#
  115. X=0
  116. Y=0
  117. AntiAlias=1
  118. SolidColor=0,0,0,1
  119. Text="You%1 need a jacket."
  120.  
  121. [Elaboration]
  122. Meter=STRING
  123. MeasureName=mTempSubs
  124. MeasureName2=mWindSubs
  125. MeasureName3=mCalcJunction
  126. MeasureName4=mCondition
  127. MeasureName5=mTemp
  128. MeasureName6=mTempUnit
  129. MeasureName7=mWind
  130. MeasureName8=mWindUnit
  131. MeasureName9=mCity
  132. MeasureName10=mRegion
  133. MeasureName11=mCountry
  134. MeasureName12=mDate
  135. FontFace=#font2#
  136. FontSize=#size2#
  137. FontColor=#color#
  138. X=5
  139. Y=43
  140. AntiAlias=1
  141. SolidColor=0,0,0,1
  142. Text="It's %1, %3 %2."
  143. ToolTipText="%9 %10 %11#CRLF#%12#CRLF#%4, %5 %6#CRLF#Wind: %7 %8"
  144.  
  145. [Settings]
  146. Meter=IMAGE
  147. ImageName=set.png
  148. SolidColor=0,0,0,1
  149. X=0
  150. Y=0
  151. W=24
  152. PreserveAspectRatio=1
  153. AntiAlias=1
  154. ImageTint=#color#
  155. Group=buttons
  156. Hidden=1
  157. LeftMouseUpAction=!Execute ["#CURRENTPATH#settings.txt"]
  158. ToolTipText="Open settings.txt"
  159.  
  160. [Refresh]
  161. Meter=IMAGE
  162. ImageName=fresh.png
  163. SolidColor=0,0,0,1
  164. X=5R
  165. Y=r
  166. W=24
  167. PreserveAspectRatio=1
  168. AntiAlias=1
  169. ImageTint=#color#
  170. Group=buttons
  171. Hidden=1
  172. LeftMouseUpAction=!Refresh
  173. ToolTipText="Refresh skin"
  174.  
  175. [Help]
  176. Meter=IMAGE
  177. ImageName=help.png
  178. SolidColor=0,0,0,1
  179. X=5R
  180. Y=r
  181. W=24
  182. PreserveAspectRatio=1
  183. AntiAlias=1
  184. ImageTint=#color#
  185. Group=buttons
  186. Hidden=1
  187. LeftMouseUpAction=!Execute ["#CURRENTPATH#info.rtf"]
  188. ToolTipText="Open ReadMe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement