Advertisement
Guest User

YahooWeather.inc

a guest
Apr 25th, 2016
7,881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.26 KB | None | 0 0
  1. ;-----------------------
  2. ; SITE
  3.  
  4. [MeasureYahooWeather]
  5. Measure=Plugin
  6. Plugin=WebParser
  7. UpdateRate=1800
  8. Url=YOUR_URL_HERE
  9. RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*country=\"(.*)\".*region=\"(.*)\".*chill=\"(.*)\".*direction=\"(.*)\".*speed=\"(.*)\".*humidity=\"(.*)\".*pressure=\"(.*)\".*rising=\"(.*)\".*visibility=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<title>.*:.*m .*(.*)</title>.*lat xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">(.*)<.*long xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">(.*)<.*yweather:condition.*code=\"(.*)\".*temp=\"(.*)\".*text=\"(.*)\".*yweather:forecast.*code=\"(.*)\".*day=\"(.*)\".*high=\"(.*)\".*low=\"(.*)\".*text=\"(.*)\".*yweather:forecast.*code=\"(.*)\".*day=\"(.*)\".*high=\"(.*)\".*low=\"(.*)\".*text=\"(.*)\".*.*yweather:forecast.*code=\"(.*)\".*day=\"(.*)\".*high=\"(.*)\".*low=\"(.*)\".*text=\"(.*)\".*
  10. StringIndex=1
  11.  
  12. ;-----------------------
  13. ; LOCATION
  14.  
  15. [MeasureWeatherCity]
  16. Measure=Plugin
  17. Plugin=WebParser
  18. Url=[MeasureYahooWeather]
  19. StringIndex=2
  20.  
  21. [MeasureWeatherCountry]
  22. Measure=Plugin
  23. Plugin=WebParser
  24. Url=[MeasureYahooWeather]
  25. StringIndex=3
  26.  
  27.  
  28. [MeasureWeatherRegion]
  29. Measure=Plugin
  30. Plugin=WebParser
  31. Url=[MeasureYahooWeather]
  32. StringIndex=4
  33.  
  34. ;-----------------------
  35. ; WIND
  36.  
  37. [MeasureWeatherWindChill]
  38. Measure=Plugin
  39. Plugin=WebParser
  40. Url=[MeasureYahooWeather]
  41. StringIndex=5
  42.  
  43. [MeasureWeatherWindDirection]
  44. Measure=Plugin
  45. Plugin=WebParser
  46. Url=[MeasureYahooWeather]
  47. StringIndex=6
  48.  
  49. [MeasureWeatherWindDirectionCardinal]
  50. Measure=Calc
  51. Formula=FLOOR(((MeasureWeatherWindDirection/11.25)+1.5) < 33 ? ((MeasureWeatherWindDirection/11.25)+1.5) : ((MeasureWeatherWindDirection/11.25)+1.5)-32)
  52. Substitute="10":"EbS","11":"ESE","12":"SEbE","13":"SE","14":"SEbS","15":"SSE","16":"SbE","17":"S","18":"SbW","19":"SSW","20":"SWbS","21":"SW","22":"SWbW","23":"WSW","24":"WbSW","25":"W","26":"WbN","27":"WNW","28":"NWbW","29":"NW","30":"NWbN","31":"NNW","32":"NbW","1":"N","2":"NbE","3":"NNE","4":"NEbN","5":"NE","6":"NEbE","7":"ENE","8":"EbN","9":"E"
  53.  
  54. [MeasureWeatherWindSpeed]
  55. Measure=Plugin
  56. Plugin=WebParser
  57. Url=[MeasureYahooWeather]
  58. StringIndex=7
  59.  
  60. ;-----------------------
  61. ; ATMOSPHERE
  62.  
  63. [MeasureWeatherAtmoHumidity]
  64. Measure=Plugin
  65. Plugin=WebParser
  66. Url=[MeasureYahooWeather]
  67. StringIndex=8
  68.  
  69. [MeasureWeatherAtmoPressure]
  70. Measure=Plugin
  71. Plugin=WebParser
  72. Url=[MeasureYahooWeather]
  73. StringIndex=9
  74.  
  75. [MeasureWeatherAtmoRising]
  76. Measure=Plugin
  77. Plugin=WebParser
  78. Url=[MeasureYahooWeather]
  79. StringIndex=10
  80.  
  81. [MeasureWeatherAtmoVisibility]
  82. Measure=Plugin
  83. Plugin=WebParser
  84. Url=[MeasureYahooWeather]
  85. StringIndex=11
  86.  
  87.  
  88. ;--------------------------------
  89. ; SUN
  90.  
  91. [MeasureWeatherSunrise]
  92. Measure=Plugin
  93. Plugin=WebParser
  94. Url=[MeasureYahooWeather]
  95. StringIndex=12
  96.  
  97. [MeasureWeatherSunset]
  98. Measure=Plugin
  99. Plugin=WebParser
  100. Url=[MeasureYahooWeather]
  101. StringIndex=13
  102.  
  103. ;--------------------------------
  104. ; REGION
  105.  
  106. [MeasureWeatherTimeZone]
  107. Measure=Plugin
  108. Plugin=WebParser
  109. Url=[MeasureYahooWeather]
  110. StringIndex=14
  111.  
  112. [MeasureWeatherLatitude]
  113. Measure=Plugin
  114. Plugin=WebParser
  115. Url=[MeasureYahooWeather]
  116. StringIndex=15
  117.  
  118. [MeasureWeatherLongitude]
  119. Measure=Plugin
  120. Plugin=WebParser
  121. Url=[MeasureYahooWeather]
  122. StringIndex=16
  123.  
  124.  
  125. ;--------------------------------
  126. ; CURRENT
  127.  
  128. [MeasureWeatherIcon]
  129. Measure=Plugin
  130. Plugin=WebParser
  131. Url=[MeasureYahooWeather]
  132. StringIndex=17
  133.  
  134. [MeasureWeatherTemp]
  135. Measure=Plugin
  136. Plugin=WebParser
  137. Url=[MeasureYahooWeather]
  138. StringIndex=18
  139.  
  140. [MeasureWeatherDesc]
  141. Measure=Plugin
  142. Plugin=WebParser
  143. Url=[MeasureYahooWeather]
  144. StringIndex=19
  145.  
  146. ;-------------------------
  147. ; DAY 2
  148.  
  149. [MeasureWeatherDay2Icon]
  150. Measure=Plugin
  151. Plugin=WebParser
  152. Url=[MeasureYahooWeather]
  153. StringIndex=25
  154.  
  155. [MeasureWeatherDay2Date]
  156. Measure=Plugin
  157. Plugin=WebParser
  158. Url=[MeasureYahooWeather]
  159. StringIndex=26
  160. Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"
  161.  
  162. [MeasureWeatherDay2High]
  163. Measure=Plugin
  164. Plugin=WebParser
  165. Url=[MeasureYahooWeather]
  166. StringIndex=27
  167.  
  168. [MeasureWeatherDay2Low]
  169. Measure=Plugin
  170. Plugin=WebParser
  171. Url=[MeasureYahooWeather]
  172. StringIndex=28
  173.  
  174. [MeasureWeatherDay2Average]
  175. Measure=Calc
  176. Formula=ROUND((MeasureWeatherDay2Low+MeasureWeatherDay2High)/2)
  177.  
  178. [MeasureWeatherDay2Desc]
  179. Measure=Plugin
  180. Plugin=WebParser
  181. Url=[MeasureYahooWeather]
  182. StringIndex=29
  183.  
  184. ;-------------------------
  185. ; DAY 3
  186.  
  187. [MeasureWeatherDay3Icon]
  188. Measure=Plugin
  189. Plugin=WebParser
  190. Url=[MeasureYahooWeather]
  191. StringIndex=30
  192.  
  193. [MeasureWeatherDay3Date]
  194. Measure=Plugin
  195. Plugin=WebParser
  196. Url=[MeasureYahooWeather]
  197. StringIndex=31
  198. Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"
  199.  
  200. [MeasureWeatherDay3High]
  201. Measure=Plugin
  202. Plugin=WebParser
  203. Url=[MeasureYahooWeather]
  204. StringIndex=32
  205.  
  206. [MeasureWeatherDay3Low]
  207. Measure=Plugin
  208. Plugin=WebParser
  209. Url=[MeasureYahooWeather]
  210. StringIndex=33
  211.  
  212. [MeasureWeatherDay3Average]
  213. Measure=Calc
  214. Formula=ROUND((MeasureWeatherDay3Low+MeasureWeatherDay3High)/2)
  215.  
  216. [MeasureWeatherDay3Desc]
  217. Measure=Plugin
  218. Plugin=WebParser
  219. Url=[MeasureYahooWeather]
  220. StringIndex=34
  221.  
  222. ;-----------------------
  223. ; UNITS
  224.  
  225. [MeasureYahoo]
  226. Measure=Plugin
  227. Plugin=WebParser
  228. UpdateRate=1800
  229. Url=YOUR_URL_HERE
  230. RegExp=(?siU).*distance=\"(.*)\".*pressure=\"(.*)\".*speed=\"(.*)\".*temperature=\"(.*)\".*
  231.  
  232. [MeasureWeatherUnitDistance]
  233. Measure=Plugin
  234. Plugin=WebParser
  235. Url=[MeasureYahoo]
  236. StringIndex=1
  237.  
  238. [MeasureWeatherUnitPressure]
  239. Measure=Plugin
  240. Plugin=WebParser
  241. Url=[MeasureYahoo]
  242. StringIndex=2
  243.  
  244. [MeasureWeatherUnitSpeed]
  245. Measure=Plugin
  246. Plugin=WebParser
  247. Url=[MeasureYahoo]
  248. StringIndex=3
  249.  
  250. [MeasureWeatherUnitTemp]
  251. Measure=Plugin
  252. Plugin=WebParser
  253. Url=[MeasureYahoo]
  254. StringIndex=4
  255.  
  256. ;-----------------------
  257.  
  258. ; LOGO
  259. ; Yahoo! Weather requires that any application which uses their API include the Y!W logo and a link to their website. This section will automatically insert those elements into any skin which uses this measure module. Please do not remove these elements if you are redistributing this file with your own skin.
  260.  
  261. [YahooWeatherLogo]
  262. Meter=IMAGE
  263. MeterStyle=Style#Variant#Icon
  264. Group=EnigmaMouseover
  265. ImageName=#@#Images\MoxaWeather\Logo.png
  266. H=25
  267. W=25
  268. Hidden=1
  269. LeftMouseUpAction=["http://weather.yahoo.com/"][!Redraw]
  270. ToolTipText=Powered by Yahoo! Weather.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement