Advertisement
Guest User

SunRiseSet

a guest
Jul 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. ;===== Rainmeter ===============;
  2. [Rainmeter]
  3. AppVersion=2003000
  4. Update=1000
  5.  
  6. ;===== Metadata ================;
  7. [Metadata]
  8. Name=
  9. Author=sJ
  10. Description=Displays the position of the sun, wind speed, direction and etc.
  11. Version=
  12. License=
  13.  
  14. ;===== Variables ===============;
  15. [Variables]
  16. Font="Roboto Th"
  17. FontCOlor=255,255,255,217
  18. COEID=24877369
  19. ;COEID=23418302
  20. Units=c
  21. Width=182
  22. Height=90
  23. Xorigin=25
  24. Yorigin=70
  25.  
  26. WebParserSunRiseSet=sunrise="(.*):.*(.*) .*(.*)" .*sunset="(.*):.*(.*) .*(.*)"
  27.  
  28. ;===== MeasureParent ===========;
  29. [MeasureParent]
  30. Measure=Plugin
  31. Plugin=WebParser
  32. UpdateRate=1800
  33. URL=https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22newark%2Cde%22)%20and%20u%3D'f'&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
  34. RegExp="(?siU)#WebParserSunRiseSet#"
  35. Debug=1
  36.  
  37. ;===== MeasureSunrise/set ======;
  38. [MeasureAstronomySunriseHour]
  39. Measure=Plugin
  40. Plugin=WebParser
  41. URL=[MeasureParent]
  42. StringIndex=1
  43.  
  44. [MeasureAstronomySunriseMin]
  45. Measure=Plugin
  46. Plugin=WebParser
  47. URL=[MeasureParent]
  48. StringIndex=2
  49.  
  50. [MeasureAstronomySunriseAMPM]
  51. Measure=Plugin
  52. Plugin=WebParser
  53. URL=[MeasureParent]
  54. StringIndex=3
  55. Substitute="am":"0","pm":"1"
  56.  
  57. [MeasureAstronomySunsetHour]
  58. Measure=Plugin
  59. Plugin=WebParser
  60. URL=[MeasureParent]
  61. StringIndex=4
  62.  
  63. [MeasureAstronomySunsetMin]
  64. Measure=Plugin
  65. Plugin=WebParser
  66. URL=[MeasureParent]
  67. StringIndex=5
  68.  
  69. [MeasureAstronomySunsetAMPM]
  70. Measure=Plugin
  71. Plugin=WebParser
  72. URL=[MeasureParent]
  73. StringIndex=6
  74. Substitute="am":"0","pm":"1"
  75.  
  76. ;===== MeasurePosition =========;
  77. [MeasureAstronomySunriseHourAdjust]
  78. Measure=Calc
  79. Formula=[MeasureAstronomySunriseAMPM]*12+MeasureAstronomySunriseHour
  80. DynamicVariables=1
  81.  
  82. [MeasureAstronomySunsetHourAdjust]
  83. Measure=Calc
  84. Formula=[MeasureAstronomySunsetAMPM]*12+MeasureAstronomySunsetHour
  85. DynamicVariables=1
  86.  
  87. [MeasureAstronomySunsetHourAdjustt]
  88. Measure=Calc
  89. Formula=[MeasureAstronomySunsetAMPM]*12+MeasureAstronomySunsetHour-12
  90. DynamicVariables=1
  91.  
  92. [MeasureDifferenceinMin]
  93. Measure=Calc
  94. Formula=(MeasureAstronomySunsetHourAdjust*60+MeasureAstronomySunsetMin)-(MeasureAstronomySunriseHourAdjust*60+MeasureAstronomySunriseMin)
  95.  
  96. [MeasureCurrentHour]
  97. Measure=Time
  98. Format=%H
  99.  
  100. [MeasureCurrentMin]
  101. Measure=Time
  102. Format=%M
  103.  
  104. [MeasurePosition1]
  105. Measure=Calc
  106. Formula=((MeasureCurrentHour*60+MeasureCurrentMin)-(MeasureAstronomySunriseHourAdjust*60+MeasureAstronomySunriseMin))/MeasureDifferenceinMin
  107.  
  108. [MeasurePosition2]
  109. Measure=Calc
  110. Formula=MeasurePosition1 < 0 ? 0 : (MeasurePosition1 < 1 ? MeasurePosition1 : 1)
  111.  
  112. [MeasureX]
  113. Measure=Calc
  114. Formula=#Xorigin#+0.5*#Width#*(1-cos(pi*MeasurePosition2))
  115.  
  116. [MeasureY]
  117. Measure=Calc
  118. Formula=#Yorigin#+#Height#*(1-sin(pi*MeasurePosition2))
  119.  
  120. ;===== Meters ==================;
  121. [MeterBase]
  122. Meter=Image
  123. ImageName=#@#\Base.png
  124. ImageAlpha=217
  125. W=270
  126. H=300
  127. X=0
  128. Y=0
  129.  
  130. EDIT THE METER BELOW THIS FOR A TOP MESSAGE
  131.  
  132. [MeterSun]
  133. Meter=String
  134. FontColor=#FontColor#
  135. FontFace=#Font#
  136. FontSize=25
  137. AntiAlias=1
  138. ClipString=1
  139. W=240
  140. H=50
  141. X=15
  142. Y=15
  143. Text=
  144.  
  145. [MeterSunTrail]
  146. Meter=Image
  147. ImageName=#@#\SunRiseSet\SunTrail.png
  148. ImageAlpha=217
  149. W=250
  150. H=150
  151. X=10
  152. Y=50
  153.  
  154. [MeterSunIcon]
  155. Meter=Image
  156. ImageName=#@#\SunRiseSet\Sun.png
  157. ImageAlpha=217
  158. W=35
  159. H=35
  160. X=[MeasureX]
  161. Y=[MeasureY]
  162. DynamicVariables=1
  163.  
  164. [MeterAstronomySunrise]
  165. Meter=String
  166. FontColor=#FontColor#
  167. FontFace=#Font#
  168. FontSize=12
  169. AntiAlias=1
  170. ClipString=1
  171. StringAlign=Left
  172. MeasureName=MeasureAstronomySunriseHourAdjust
  173. MeasureName2=MeasureAstronomySunriseMin
  174. W=75
  175. H=20
  176. X=23
  177. Y=190
  178. Text=%1:%2 am
  179.  
  180. [MeterAstronomySunset]
  181. Meter=String
  182. FontColor=#FontColor#
  183. FontFace=#Font#
  184. FontSize=12
  185. AntiAlias=1
  186. ClipString=1
  187. StringAlign=Right
  188. MeasureName=MeasureAstronomySunsetHourAdjustt
  189. MeasureName2=MeasureAstronomySunsetMin
  190. W=75
  191. H=20
  192. X=222r
  193. Y=r
  194. Text=%1:%2 pm
  195.  
  196. [MeterDivider1]
  197. Meter=Image
  198. ImageName=#@#\Divider.png
  199. ImageAlpha=217
  200. W=230
  201. H=5
  202. X=20
  203. Y=50r
  204.  
  205. EDIT THE METER BELOW THIS FOR A BOTTOM TEXT THINGY
  206.  
  207. [MeterProvider]
  208. Meter=STRING
  209. FontColor=#FontColor#
  210. FontFace=#Font#
  211. FontSize=10
  212. AntiAlias=1
  213. ClipString=1
  214. MeasureName=MeasureAtmosphereError
  215. W=230
  216. H=35
  217. X=r
  218. Y=20r
  219. Text=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement