Advertisement
Ulfviir

Untitled

Apr 21st, 2015
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. ; To find your weather code:
  2. ; ----------------------------------
  3. ; 1) First, go to www.weather.com and search for your city
  4. ; 2) When you have found your city (or a city close enough), take a look at the site address.
  5. ; It should look something like http://www.weather.com/weather/today/Helsinki+Finland+FIXX0002
  6. ; 3) In the example above, the location code is FIXX0002. This is what you should enter as the
  7. ; weatherCode in the [Variables] section
  8.  
  9.  
  10.  
  11. [Rainmeter]
  12. Update=1000
  13. Background=#@#Background.png
  14. ; #@# is equal to Rainmeter\Skins\illustro\@Resources
  15. BackgroundMode=3
  16. BackgroundMargins=0,34,0,14
  17.  
  18. [Variables]
  19. fontName=Trebuchet MS
  20. textSize=8
  21. colorBar=586edf
  22. colorText=FFFFFFCC
  23. weatherCode=USFL0208
  24.  
  25. ; --------------------------------------------------------
  26. ; MEASURES:
  27. ; W1 = Reads RSS/XML data, which can then be called by the other measures
  28. ; W2 = Temperature
  29. ; W3 = "Feels like" temperature (taking wind into account)
  30. ; W4 = Humidity
  31. ; W5 = Wind
  32. ; W6 = Condition (eg "fair")
  33. ;
  34. ; UpdateRate sets how often the weather info is fetched,
  35. ; in seconds. 1800 seconds = 30 minutes.
  36. ; --------------------------------------------------------
  37.  
  38. [measureW1]
  39. Measure=Plugin
  40. Plugin=WebParser.dll
  41. UpdateRate=900
  42. Url=http://wxdata.weather.com/wxdata/weather/local/#weatherCode#?cc=
  43. 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>.*"
  44.  
  45. [measureW2]
  46. Measure=Plugin
  47. Plugin=WebParser.dll
  48. Url=[measureW1]
  49. StringIndex=17
  50.  
  51. [measureW3]
  52. Measure=Plugin
  53. Plugin=WebParser.dll
  54. Url=[measureW1]
  55. StringIndex=18
  56.  
  57. [measureW4]
  58. Measure=Plugin
  59. Plugin=WebParser.dll
  60. Url=[measureW1]
  61. StringIndex=27
  62.  
  63. [measureW5]
  64. Measure=Plugin
  65. Plugin=WebParser.dll
  66. Url=[measureW1]
  67. StringIndex=23,25
  68.  
  69. [measureW6]
  70. Measure=Plugin
  71. Plugin=WebParser.dll
  72. Url=[measureW1]
  73. StringIndex=19
  74.  
  75.  
  76.  
  77. ; ----------------------------------
  78. ; STYLES
  79. ; ----------------------------------
  80.  
  81. [styleTitle]
  82. StringAlign=CENTER
  83. StringCase=UPPER
  84. StringStyle=BOLD
  85. StringEffect=SHADOW
  86. FontEffectColor=0,0,0,50
  87. FontColor=#colorText#
  88. FontFace=#fontName#
  89. FontSize=10
  90. AntiAlias=1
  91. ClipString=1
  92.  
  93. [styleLeftText]
  94. StringAlign=LEFT
  95. ; Meters using styleLeftText will be left-aligned.
  96. StringCase=NONE
  97. StringStyle=BOLD
  98. StringEffect=SHADOW
  99. FontEffectColor=0,0,0,20
  100. FontColor=#colorText#
  101. FontFace=#fontName#
  102. FontSize=#textSize#
  103. AntiAlias=1
  104. ClipString=1
  105.  
  106. [styleRightText]
  107. StringAlign=RIGHT
  108. StringCase=NONE
  109. StringStyle=BOLD
  110. StringEffect=SHADOW
  111. FontEffectColor=0,0,0,20
  112. FontColor=#colorText#
  113. FontFace=#fontName#
  114. FontSize=#textSize#
  115. AntiAlias=1
  116. ClipString=1
  117.  
  118. [styleBar]
  119. BarColor=#colorBar#
  120. BarOrientation=HORIZONTAL
  121. SolidColor=255,255,255,15
  122.  
  123. ; --------------------------
  124. ; METERS
  125. ; Note: not in reading order
  126. ; (W6, W2, W5, W3, W4)
  127. ; --------------------------
  128.  
  129.  
  130.  
  131. [meterTitle]
  132. Meter=STRING
  133. MeterStyle=styleTitle
  134. ; Using MeterStyle=styleTitle will basically "copy" the
  135. ; contents of the [styleTitle] section here during runtime.
  136. X=100
  137. Y=12
  138. W=190
  139. H=18
  140. Text="Weather"
  141. LeftMouseUpAction=!Execute ["http://www.weather.com/weather/today/#weatherCode#"]
  142. ToolTipText="Open Weather.com"
  143.  
  144. [meterLabel1]
  145. Meter=STRING
  146. MeterStyle=styleLeftText
  147. X=10
  148. Y=40
  149. W=190
  150. H=14
  151. Text="Conditions"
  152.  
  153. [meterValue1]
  154. Meter=STRING
  155. MeterStyle=styleRightText
  156. MeasureName=measureW6
  157. X=200
  158. Y=0r
  159. W=190
  160. H=14
  161. Text="%1"
  162.  
  163. [meterBar1]
  164. Meter=Bar
  165. MeterStyle=styleBar
  166. MeasureName=measureW6
  167. X=10
  168. Y=52
  169. W=190
  170. H=1
  171. [meterLabel2]
  172. Meter=STRING
  173. MeterStyle=styleLeftText
  174. X=10
  175. Y=60
  176. W=190
  177. H=14
  178. Text="Temperature"
  179.  
  180. [meterValue2]
  181. Meter=STRING
  182. MeterStyle=styleRightText
  183. MeasureName=measureW2
  184. X=200
  185. Y=0r
  186. W=190
  187. H=14
  188. Text="%1 F"
  189.  
  190. [meterBarValue2]
  191. Meter=Bar
  192. MeterStyle=styleBar
  193. MeasureName=measureW2
  194. X=10
  195. Y=72
  196. W=190
  197. H=1
  198. [meterLabel3]
  199. Meter=STRING
  200. MeterStyle=styleLeftText
  201. X=10
  202. Y=100
  203. W=190
  204. H=14
  205. Text="Feels like"
  206.  
  207. [meterValue3]
  208. Meter=STRING
  209. MeterStyle=styleRightText
  210. MeasureName=measureW3
  211. X=200
  212. Y=0r
  213. W=190
  214. H=14
  215. Text="%1 F"
  216.  
  217. [meterBarValue3]
  218. Meter=Bar
  219. MeterStyle=styleBar
  220. MeasureName=measureW3
  221. X=10
  222. Y=92
  223. W=190
  224. H=1
  225. [meterLabel4]
  226. Meter=STRING
  227. MeterStyle=styleLeftText
  228. X=10
  229. Y=120
  230. W=190
  231. H=14
  232. Text="Humidity"
  233.  
  234. [meterValue4]
  235. Meter=STRING
  236. MeterStyle=styleRightText
  237. MeasureName=measureW4
  238. X=200
  239. Y=0r
  240. W=190
  241. H=14
  242. Text="%1%"
  243.  
  244. [meterBarValue4]
  245. Meter=Bar
  246. MeterStyle=styleBar
  247. MeasureName=measureW4
  248. X=10
  249. Y=112
  250. W=190
  251. H=1
  252. [meterLabel5]
  253. Meter=STRING
  254. MeterStyle=styleLeftText
  255. X=10
  256. Y=80
  257. W=190
  258. H=14
  259. Text="Wind"
  260.  
  261. [meterValue5]
  262. Meter=STRING
  263. MeterStyle=styleRightText
  264. MeasureName=measureW5
  265. X=200
  266. Y=0r
  267. W=190
  268. H=14
  269. Text=%1 mph
  270.  
  271. [meterBarValue5]
  272. Meter=Bar
  273. MeterStyle=styleBar
  274. MeasureName=measureW5
  275. X=10
  276. Y=132
  277. W=190
  278. H=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement