-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimpleforecast.ini
383 lines (334 loc) · 6.82 KB
/
simpleforecast.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
[Rainmeter]
update = 1000
BackgroundMode=2
solidColor = 0,0,0,1
accurateText = 1
dynamicWindowSize = 0
[Metadata]
name = Simple Forecast
author = minusInfinite
information = parsing the Open Weather Map API in to Rainmeter
version = 1.3.0
license = GNU GPLv2
[Variables]
@include=#@#\setup.inc
units=metric
clearday=xf00d
clearnight=xf02e
partlycloudyday=xf002
partlycloudynight=xf086
cloudy=xf013
rain=xf019
showersday=xf009
showersnight=xf029
sleet=xf0b5
rainsnow=xf017
rainsnowshowersday=xf006
rainsnowshowersnight=xf026
snow=xf01b
snowshowersday=xf00a
snowshowersnight=xf02a
wind=xf021
fog=xf014
thunder=xf016
thunderrain=xf01e
thundershowersday=xf068
thundershowersnight=xf02d
hail=xf015
iconsub="01d":"#clearday#","01n":"#clearnight#","02d":"#partlycloudyday#","02n":"#partlycloudynight#","03d":"#cloudy#","03n":"#cloudy#","04d":"#cloudy#","04n":"#cloudy#","09d":"#showersday#","09n":"#showersnight#","10d":"#showersday#","10n":"#showersnight#","11d":"#thundershowersday#","11n":"#thundershowersnight#","13d":"#rainsnowshowersday#","13n":"#rainsnowshowersnight#","50d":"#fog#","50n":"#fog#"
[MeterVars]
StringCase=None
StringStyle=Normal
StringEffect=None
FontFace=Trebuchet MS
FontSize=10
FontColor=255,255,255,225
AntiAlias=1
[IconVars]
W=50
H=40
StringCase=None
StringStyle=Normal
StringEffect=None
StringAlign=CenterRight
FontFace=Weather Icons
FontSize=20
FontColor=255,255,255,225
AntiAlias=1
;=========== MEASURES ======================
[UnitsTemp]
Measure=String
String=#units#
RegExpSubstitute=1
Substitute="metric":"C","imperial":"F"
[MeasureTime]
Measure=Time
Format=%FT%T
[WeatherParent]
Measure=WebParser
URL=https://api.openweathermap.org/data/3.0/onecall?lat=#lat#&lon=#long#&units=#units#&exclude=minutely,hourly&appid=#owmapikey#
;URL=file://#@#darkskydump.json
UpdateRate=900
RegExp=(?siU)^(.*)$
DynamicVariables=1
FinishAction=[!ShowMeterGroup MeterIcon][!EnableMeasureGroup TimeGroup]
[TimeOffsetParent]
Measure=WebParser
Group=GetAPI
URL=[WeatherParent]
RegExp=(?siU)"timezone_offset":(.*),
DynamicVariables=1
[TimeOffset]
Measure=WebParser
URL=[TimeOffsetParent]
StringIndex=1
[IconParent]
Measure=WebParser
Group=GetAPI
URL=[WeatherParent]
RegExp=(?siU)"icon":"(.*)".*"icon":"(.*)".*"icon":"(.*)".*"icon":"(.*)".*
DynamicVariables=1
[CurrentIcon]
Measure=WebParser
URL=[IconParent]
StringIndex=1
Substitute=#iconsub#
DynamicVariables=1
[Day1Icon]
Measure=WebParser
URL=[IconParent]
StringIndex=3
Substitute=#iconsub#
DynamicVariables=1
[Day2Icon]
Measure=WebParser
URL=[IconParent]
StringIndex=4
Substitute=#iconsub#
DynamicVariables=1
[LocationParent]
Measure=WebParser
Group=GetAPI
URL=[WeatherParent]
RegExp=(?siU)"timezone":".*\/(.*)"
DynamicVariables=1
[CityName]
Measure=WebParser
URL=[LocationParent]
StringIndex=1
[CurrentTempParent]
Measure=WebParser
Group=GetAPI
URL=[WeatherParent]
RegExp=(?siU)"current".*temp":(\d++)
DynamicVariables=1
[CurrentTemp]
Measure=WebParser
URL=[CurrentTempParent]
StringIndex=1
[CurrentConditionsParent]
Measure=WebParser
Group=GetAPI
URL=[WeatherParent]
RegExp=(?siU)"current".*main":"(.*)"
DynamicVariables=1
[CurrentConditions]
Measure=WebParser
Url=[CurrentConditionsParent]
StringIndex=1
[APITimeParent]
Measure=WebParser
Group=GetAPI
URL=[WeatherParent]
RegExp=(?siU).*"dt":(.*),.*"dt":(.*),.*(?siU)"dt":(.*),.*(?siU)"dt":(.*),.*
DynamicVariables=1
[APICurrentTime]
Measure=WebParser
URL=[APITimeParent]
StringIndex=1
DynamicVariables=1
[APICurrentDay]
Measure=WebParser
URL=[APITimeParent]
StringIndex=2
[APIDay1]
Measure=WebParser
URL=[APITimeParent]
StringIndex=3
DynamicVariables=1
[APIDay2]
Measure=WebParser
URL=[APITimeParent]
StringIndex=4
DynamicVariables=1
[ForcastTempParent]
Measure=WebParser
Group=ForecastTempGroup
URL=[WeatherParent]
RegExp=(?siU)"temp.*day":(\d++).*".*night":(\d++).*"temp.*day":(\d++).*".*night":(\d++).*"temp.*day":(\d++).*".*night":(\d++).*"temp.*day":(\d++).*".*night":(\d++).*
DynamicVariables=1
[Day1TempHigh]
Measure=WebParser
Group=ForecastTempGroup
URL=[ForcastTempParent]
StringIndex=3
DynamicVariables=1
[Day1TempLow]
Measure=WebParser
Group=ForecastTempGroup
URL=[ForcastTempParent]
StringIndex=4
DynamicVariables=1
[Day2TempHigh]
Measure=WebParser
Group=ForecastTempGroup
URL=[ForcastTempParent]
StringIndex=5
DynamicVariables=1
[Day2TempLow]
Measure=WebParser
Group=ForecastTempGroup
URL=[ForcastTempParent]
StringIndex=6
DynamicVariables=1
[UTimeTimeStamp]
Measure=Time
Group=TimeGroup
TimeStamp=(([APICurrentTime:] + 11644473600) + [TimeOffset])
Format=%#d/%#m/%Y %#I:%M %p
DynamicVariables=1
Disabled=1
[Day1TimeStamp]
Measure=Time
Group=TimeGroup
TimeStamp=(([APIDay1:] + 11644473600) + [TimeOffset])
Format=%A
DynamicVariables=1
Disabled=1
[Day2TimeStamp]
Measure=Time
Group=TimeGroup
TimeStamp=(([APIDay2:] + 11644473600) + [TimeOffset])
Format=%A
DynamicVariables=1
Disabled=1
;=============== METERS =====================
[ShapeBG]
Meter=Shape
Shape=Rectangle 0,0,150,200,5 | Fill Color 0,0,0,225 | StrokeWidth 1 | StrokeColor 200,200,200
Padding=5,5,5,5
[MeterCityName]
X=10
Y=15
Meter=String
MeasureName=CityName
MeterStyle=MeterVars
DynamicVariables=1
[MeterCurrentTemp]
X=5R
Y=0r
Meter=String
MeasureName=CurrentTemp
MeasureName2=UnitsTemp
Text=%1[\x00B0]%2
MeterStyle=MeterVars
DynamicVariables=1
[MeterCurrentIcon]
Group=MeterIcon
X=33R
Y=-5r
Meter=String
MeterStyle=IconVars
Text=[\[&CurrentIcon]]
hidden=1
DynamicVariables=1
[MeterCurrentCond]
W=100
X=10
Y=20r
Meter=String
MeasureName=CurrentConditions
MeterStyle=MeterVars
ClipString = 1
DynamicVariables=1
[Divider1]
Meter=Shape
Shape=Line 10,55,150,55 | StrokeWidth 1.5 | StrokeColor 255,255,255
[MeterDay1Text]
X=10
Y=60
Meter=String
MeasureName=Day1TimeStamp
MeterStyle=MeterVars
DynamicVariables=1
[MeterDay1Temps]
X=10
Y=20r
Meter=String
MeasureName=Day1TempHigh
MeasureName2=Day1TempLow
MeasureName3=UnitsTemp
MeterStyle=MeterVars
Text= %1[\x00B0]%3 - %2[\x00B0]%3
DynamicVariables=1
[MeterDay1Icon]
Group=MeterIcon
X=40R
Y=-20r
Meter=String
MeterStyle=IconVars
Text=[\[&Day1Icon]]
hidden=1
DynamicVariables=1
[Divider2]
Meter=Shape
Shape=Line 10,105,150,105 | StrokeWidth 1.5 | StrokeColor 255,255,255
[MeterDay2Text]
X=10
Y=110
Meter=String
MeasureName=Day2TimeStamp
MeterStyle=MeterVars
DynamicVariables=1
[MeterDay2Temps]
X=10
Y=20r
Meter=String
MeasureName=Day2TempHigh
MeasureName2=Day2TempLow
MeasureName3=UnitsTemp
MeterStyle=MeterVars
Text= %1[\x00B0]%3 - %2[\x00B0]%3
DynamicVariables=1
[MeterDay2Icon]
Group=MeterIcon
X=40R
Y=-20r
Meter=String
MeterStyle=IconVars
Text=[\[&Day2Icon]]
hidden=1
DynamicVariables=1
[MeterDataLink]
X=80
Y=185
Meter=String
Text=Using Open Weather Map
LeftMouseUpAction=["https://openweathermap.org/"]
StringAlign=CenterBottom
FontFace=Trebuchet MS
FontSize=8
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
[MeterUpdateTime]
X=80
Y=200
Meter=String
MeasureName=UTimeTimeStamp
StringAlign=CenterBottom
FontFace=Trebuchet MS
FontSize=8
FontColor=220,220,220,220
AntiAlias=1
DynamicVariables=1