Advertisement
shdwmagiks

weather ini

Dec 18th, 2013
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 10.13 KB | None | 0 0
  1. ;=================================================
  2. ; Rainmeter configuration file
  3. ; Updated July 25, 2009
  4. ; By Jeffrey Morley
  5. ; Modified by Shiva
  6. ;=================================================
  7.  
  8. ;[BEGIN CONFIG FILE]==============================
  9.  
  10. [Rainmeter]
  11. Author=Jeffrey Morley, modified by Shiva
  12.  
  13. ;==============================================================
  14. ;Please replace your location code for Weather.com below
  15. ;Set "Metric=" to m for metric measures or f for non-metric
  16. ;==============================================================
  17.  
  18. [Variables]
  19. Location=USMA0066
  20. ;Location=INXX0012
  21. Metric=f
  22. Font=Century Gothic
  23. FontColor=255, 255, 255, 255
  24. FontInactive=255, 255, 255, 200
  25.  
  26. ;===============================================================
  27.  
  28. ;[GATHER WEATHER INFO FROM RSS]=================================
  29.  
  30. [Current]
  31. Measure=Plugin
  32. Plugin=Plugins\WebParser.dll
  33. UpdateRate=3000
  34. Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0
  35. 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>.*"
  36.  
  37. [Today]
  38. Measure=Plugin
  39. Plugin=Plugins\WebParser.dll
  40. UpdateRate=3000
  41. Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=1
  42. RegExp="(?siU)<day d="0" t="(.*)" dt="(.*)".*<hi/?>(.*)(</hi>)?.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p=".">.*<icon>(.*)</icon>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
  43.  
  44. [Tomorrow]
  45. Measure=Plugin
  46. Plugin=Plugins\WebParser.dll
  47. UpdateRate=3000
  48. Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=2
  49. RegExp="(?siU)<day d="1" 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>.*"
  50.  
  51. [DayAfter]
  52. Measure=Plugin
  53. Plugin=Plugins\WebParser.dll
  54. UpdateRate=3000
  55. Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=3
  56. RegExp="(?siU)<day d="2" 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>.*"
  57.  
  58. ;[Current]=========================================
  59.  
  60. [MeasureWeatherTemp]
  61. Measure=Plugin
  62. Plugin=Plugins\WebParser.dll
  63. Url=[Current]
  64. StringIndex=17
  65.  
  66. [MeasureWeatherDesc]
  67. Measure=Plugin
  68. Plugin=Plugins\WebParser.dll
  69. Url=[Current]
  70. StringIndex=19
  71. Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "
  72.  
  73. [MeasureWeatherIcon]
  74. Measure=Plugin
  75. Plugin=Plugins\WebParser.dll
  76. Url=[Current]
  77. StringIndex=20
  78.  
  79. [MeasureWeatherRealFeel]
  80. Measure=Plugin
  81. Plugin=Plugins\WebParser.dll
  82. Url=[Current]
  83. StringIndex=18
  84.  
  85. ;[TODAY]=====================================
  86.  
  87.  
  88. [MeasureWeatherDesc1]
  89. Measure=Plugin
  90. Plugin=Plugins\WebParser.dll
  91. Url=[Today]
  92. StringIndex=8
  93. Substitute=" And ":" and "
  94.  
  95. [MeasureWeatherDay1]
  96. Measure=Plugin
  97. Plugin=Plugins\WebParser.dll
  98. Url=[Today]
  99. StringIndex=2
  100.  
  101. [MeasureWeatherTemp1]
  102. Measure=Plugin
  103. Plugin=Plugins\WebParser.dll
  104. Url=[Today]
  105. StringIndex=3
  106. Substitute="":"666"
  107.  
  108. [MeasureWeatherIcon1]
  109. Measure=Plugin
  110. Plugin=Plugins\WebParser.dll
  111. Url=[Today]
  112. StringIndex=7
  113.  
  114. [CheckNATemp]
  115. Measure=Calc
  116. Formula=[MeasureWeatherTemp1]
  117. IfBelowValue=665
  118. IfBelowAction=!execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
  119. IfEqualValue=666
  120. IfEqualAction=!execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
  121. DynamicVariables=1
  122.  
  123. ;[TONIGHT]=====================================
  124.  
  125.  
  126. [MeasureWeatherNightDesc]
  127. Measure=Plugin
  128. Plugin=Plugins\WebParser.dll
  129. Url=[Today]
  130. StringIndex=10
  131. Substitute=" And ":" and "
  132.  
  133. [MeasureWeatherNightTemp]
  134. Measure=Plugin
  135. Plugin=Plugins\WebParser.dll
  136. Url=[Today]
  137. StringIndex=5
  138.  
  139. [MeasureWeatherNightIcon]
  140. Measure=Plugin
  141. Plugin=Plugins\WebParser.dll
  142. Url=[Today]
  143. StringIndex=9
  144.  
  145. ;[TOMORROW]=====================================
  146.  
  147. [MeasureWeatherDesc2]
  148. Measure=Plugin
  149. Plugin=Plugins\WebParser.dll
  150. Url=[Tomorrow]
  151. StringIndex=8
  152. Substitute=" And ":" and "
  153.  
  154. [MeasureWeatherDay2]
  155. Measure=Plugin
  156. Plugin=Plugins\WebParser.dll
  157. Url=[Tomorrow]
  158. StringIndex=1
  159.  
  160. [MeasureWeatherTemp2]
  161. Measure=Plugin
  162. Plugin=Plugins\WebParser.dll
  163. Url=[Tomorrow]
  164. StringIndex=3
  165.  
  166. [MeasureWeatherIcon2]
  167. Measure=Plugin
  168. Plugin=Plugins\WebParser.dll
  169. Url=[Tomorrow]
  170. StringIndex=7
  171.  
  172. ;[DayAfter]=====================================
  173.  
  174. [MeasureWeatherDesc3]
  175. Measure=Plugin
  176. Plugin=Plugins\WebParser.dll
  177. Url=[DayAfter]
  178. StringIndex=8
  179. Substitute=" And ":" and "
  180.  
  181. [MeasureWeatherDay3]
  182. Measure=Plugin
  183. Plugin=Plugins\WebParser.dll
  184. Url=[DayAfter]
  185. StringIndex=1
  186.  
  187. [MeasureWeatherTemp3]
  188. Measure=Plugin
  189. Plugin=Plugins\WebParser.dll
  190. Url=[DayAfter]
  191. StringIndex=3
  192.  
  193. ;D+3, weather icon, id=38
  194. [MeasureWeatherIcon3]
  195. Measure=Plugin
  196. Plugin=Plugins\WebParser.dll
  197. Url=[DayAfter]
  198. StringIndex=7
  199.  
  200. ;[DISPLAY CURRENT]=================================
  201.  
  202. [MeterTemp]
  203. MeasureName=MeasureWeatherTemp
  204. Meter=STRING
  205. X=328
  206. Y=5
  207. FontColor=#FontColor#
  208. StringStyle=NORMAL
  209. FontSize=36
  210. StringAlign=RIGHT
  211. StringEffect=Shadow
  212. FontFace=#Font#
  213. Antialias=1
  214. Postfix="°"
  215.  
  216. [MeterDesc]
  217. MeasureName=MeasureWeatherDesc
  218. Meter=STRING
  219. X=235
  220. Y=10
  221. FontColor=#FontColor#
  222. FontSize=18
  223. StringAlign=RIGHT
  224. StringStyle=NORMAL
  225. StringEffect=Shadow
  226. FontFace=#Font#
  227. Antialias=1
  228.  
  229. [MeterRealFeel]
  230. MeasureName=MeasureWeatherRealFeel
  231. Meter=STRING
  232. X=235
  233. Y=29r
  234. FontColor=#FontColor#
  235. FontSize=10
  236. StringAlign=RIGHT
  237. StringStyle=NORMAL
  238. StringEffect=Shadow
  239. FontFace=#Font#
  240. Antialias=1
  241. Text="Feels like %1°"
  242.  
  243. [MeterIconNA]
  244. ImageName=na.png
  245. Meter=IMAGE
  246. H=30
  247. W=30
  248. X=340
  249. Y=1
  250. Hidden=1
  251.  
  252. [MeterIcon]
  253. MeasureName=MeasureWeatherIcon
  254. Meter=IMAGE
  255. H=70
  256. W=70
  257. X=330
  258. Y=0
  259. Hidden=0
  260.  
  261. ;[DISPLAY TODAY]=============================
  262.  
  263. [MeterTemp1]
  264. MeasureName=MeasureWeatherTemp1
  265. Meter=STRING
  266. X=326
  267. Y=75
  268. FontColor=#FontInactive#
  269. StringStyle=NORMAL
  270. FontSize=30
  271. StringAlign=RIGHT
  272. FontFace=#Font#
  273. Antialias=1
  274. Postfix="°"
  275. StringEffect=Shadow
  276. Hidden=0
  277.  
  278. [MeterDay1]
  279. ;MeasureName=MeasureWeatherDay1
  280. Meter=STRING
  281. X=240
  282. Y=80
  283. FontColor=#FontInactive#
  284. FontSize=14
  285. StringAlign=RIGHT
  286. StringStyle=NORMAL
  287. FontFace=#Font#
  288. Text="Today"
  289. Antialias=1
  290. StringEffect=Shadow
  291. Hidden=0
  292.  
  293. [MeterDesc1]
  294. MeasureName=MeasureWeatherDesc1
  295. Meter=STRING
  296. X=240
  297. Y=100
  298. FontColor=#FontInactive#
  299. FontSize=10
  300. StringAlign=RIGHT
  301. StringStyle=NORMAL
  302. FontFace=#Font#
  303. Antialias=1
  304. StringEffect=Shadow
  305. Hidden=0
  306.  
  307. [MeterIcon1]
  308. MeasureName=MeasureWeatherIcon1
  309. Meter=IMAGE
  310. H=50
  311. W=50
  312. X=340
  313. Y=75
  314. Hidden=0
  315.  
  316. [MeterNightTemp1]
  317. MeasureName=MeasureWeatherNightTemp
  318. Meter=STRING
  319. X=326
  320. Y=75
  321. FontColor=#FontInactive#
  322. StringStyle=NORMAL
  323. FontSize=30
  324. StringAlign=RIGHT
  325. FontFace=#Font#
  326. Antialias=1
  327. Postfix="°"
  328. StringEffect=Shadow
  329. Hidden=1
  330.  
  331. [MeterNightDay1]
  332. ;MeasureName=MeasureWeatherDay1
  333. Meter=STRING
  334. X=240
  335. Y=80
  336. FontColor=#FontInactive#
  337. FontSize=14
  338. StringAlign=RIGHT
  339. StringStyle=NORMAL
  340. FontFace=#Font#
  341. Text="Tonight"
  342. Antialias=1
  343. StringEffect=Shadow
  344. Hidden=1
  345.  
  346. [MeterNightDesc1]
  347. MeasureName=MeasureWeatherNightDesc
  348. Meter=STRING
  349. X=240
  350. Y=100
  351. FontColor=#FontInactive#
  352. FontSize=10
  353. StringAlign=RIGHT
  354. StringStyle=NORMAL
  355. FontFace=#Font#
  356. Antialias=1
  357. StringEffect=Shadow
  358. Hidden=1
  359.  
  360. [MeterNightIcon1]
  361. MeasureName=MeasureWeatherNightIcon
  362. Meter=IMAGE
  363. H=50
  364. W=50
  365. X=340
  366. Y=75
  367. Hidden=1
  368.  
  369. ;[DISPLAY TOMORROW]=============================
  370.  
  371. [MeterTemp2]
  372. MeasureName=MeasureWeatherTemp2
  373. Meter=STRING
  374. X=326
  375. Y=135
  376. FontColor=#FontInactive#
  377. StringStyle=NORMAL
  378. FontSize=30
  379. StringAlign=RIGHT
  380. FontFace=#Font#
  381. Antialias=1
  382. Postfix="°"
  383. StringEffect=Shadow
  384.  
  385. [MeterDay2]
  386. ;MeasureName=MeasureWeatherDay2
  387. Meter=STRING
  388. X=240
  389. Y=140
  390. FontColor=#FontInactive#
  391. FontSize=14
  392. StringAlign=RIGHT
  393. StringStyle=NORMAL
  394. FontFace=#Font#
  395. Text="Tomorrow"
  396. Antialias=1
  397. StringEffect=Shadow
  398.  
  399. [MeterDesc2]
  400. MeasureName=MeasureWeatherDesc2
  401. Meter=STRING
  402. X=240
  403. Y=160
  404. FontColor=#FontInactive#
  405. FontSize=10
  406. StringAlign=RIGHT
  407. StringStyle=NORMAL
  408. FontFace=#Font#
  409. Antialias=1
  410. StringEffect=Shadow
  411.  
  412. [MeterIcon2]
  413. MeasureName=MeasureWeatherIcon2
  414. Meter=IMAGE
  415. H=50
  416. W=50
  417. X=340
  418. Y=135
  419.  
  420. ;[DISPLAY DAY AFTER]=============================
  421.  
  422. [MeterTemp3]
  423. MeasureName=MeasureWeatherTemp3
  424. Meter=STRING
  425. X=326
  426. Y=195
  427. FontColor=#FontInactive#
  428. StringStyle=NORMAL
  429. FontSize=30
  430. StringAlign=RIGHT
  431. FontFace=#Font#
  432. Antialias=1
  433. Postfix="°"
  434. StringEffect=Shadow
  435.  
  436. [MeterDay3]
  437. MeasureName=MeasureWeatherDay3
  438. Meter=STRING
  439. X=240
  440. Y=200
  441. FontColor=#FontInactive#
  442. FontSize=14
  443. StringAlign=RIGHT
  444. StringStyle=NORMAL
  445. FontFace=#Font#
  446. Antialias=1
  447. StringEffect=Shadow
  448.  
  449. [MeterDesc3]
  450. MeasureName=MeasureWeatherDesc3
  451. Meter=STRING
  452. X=240
  453. Y=220
  454. FontColor=#FontInactive#
  455. FontSize=10
  456. StringAlign=RIGHT
  457. StringStyle=NORMAL
  458. FontFace=#Font#
  459. Antialias=1
  460. StringEffect=Shadow
  461.  
  462. [MeterIcon3]
  463. MeasureName=MeasureWeatherIcon3
  464. Meter=IMAGE
  465. H=50
  466. W=50
  467. X=340
  468. Y=195
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement