-
Notifications
You must be signed in to change notification settings - Fork 1
/
TaiwanWeatherAQI.ini
1361 lines (1217 loc) · 81 KB
/
TaiwanWeatherAQI.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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[Metadata]
Name=TaiwanWeatherAQI
Author=https://proliantaholic.blogspot.com/
Information=Taiwan Weather and AQI (Air Quality Index) | 臺灣天氣和空氣品質指標 | 天氣資料來源: 中央氣象署全球資訊網站 | 空品資料來源: 行政院環境保護署 環境資源資料開放平臺
Version=3.21
License=MIT
[Rainmeter]
@Include="#@#Settings\Settings.txt"
[Variables]
; ======================================
; 顯示相關
; ======================================
FontTiny=9
FontSmall=10
FontMedium=14
FontBig=24
FontND=20
FontColorActive=102,204,255,255
SkinW=240
; Weather Row
Row1TitleX=5
Row1TitleY=3
ObsStationNameInputX=5
ObsStationNameInputY=27
Row1Colum1X=81
Row1Colum1Y=19
Row1Colum1PlusX=40
Row1Colum2X=90
Row1Colum3X=160
Row1Y1=24
Row1Y2=38
Row1YPoP=39
Row1Y3=52
Row1Y3Plus=58
Row1Y4Plus=72
Row1Y4=66
Row1Y5=80
Row1ImageX=2
Row1ImageY=54
ApptTempX=30
ApptTempY=19
ApptTempStringX=38
ApptTempTownNameX=45
; AQI Row
AirSiteNameInputX=5
AirSiteNameInputY=103
Row2Colum1X=5
Row2Colum1Y=95
; 當 AQI >= 100
Row2Colum2ShiftedX=66
Row2Colum2PlusShiftedX=82
; 當 AQI < 100
Row2Colum2X=49
Row2Colum2PlusX=65
; 當 AQI < 10
Row2Colum1ShiftedX=22
; 當 PM2.5 >= 10
Row2Colum3X=204
; 當 PM2.5 < 10
Row2Colum3ShiftedX=221
Row2Colum3StringX=160
Row2Y1=99
Row2Y2=114
Row2Y3=132
Row2ImageY=101
[MyMeterStyle]
FontFace=#MyFont#
FontColor=255,255,255,255
FontEffectColor=0,0,0,128
AntiAlias=1
SolidColor=0,0,0,1
StringStyle=Normal
StringEffect=Shadow
StringAlign=Left
; ======================================
; 背景
; ======================================
[MeterBackground]
Meter=Image
ImageName=#@#Images\DAY.png
DynamicVariables=1
UpdateDivider=-1
; ======================================
; 觀測資料 (CWA website)
; https://www.cwa.gov.tw/V8/C/W/OBS_Station.html?ID=[ObsStationId]
; ======================================
[MeasureObsStationNameString]
Measure=String
String=#ObsStationName#
RegExpSubstitute=1
Substitute="(.+)\((.+)\)":"\1\(\2\)"
UpdateDivider=#U1Day#
[MeasureMoEnvApiKey]
Measure=String
String=#MoEnvApiKey#
IfMatch=^$|^填寫在此$
IfMatchAction=[!Log "MoEnv API Key Not Found"][!SetOption MeterAQIString Text "未設定API Key"][!SetOption MeasureAirSiteNameString String "中山"][!SetOption MeasureParentAQI URL "file://#@#Scripts/NoApiKey.txt"][!SetOption MeasureParentAQIOther URL "file://#@#Scripts/NoApiKey.txt"][!SetOption MeterSkinMask ImageName "#@#Images\ErrorApiKey.png"][!UpdateMeter MeterSkinMask][!Redraw]
UpdateRate=#U1Day#
[MeasureObsStationId]
Measure=WebParser
URL=file://#@#Scripts/#ObsStationIdFile#
RegExp=(?miU)^([MeasureObsStationNameString]),(.*),(.*),(.*)\r$
FinishAction=[!Log "測站站號: [ObsStationId]"][!Log "Status: Check..."]
OnRegExpErrorAction=[!SetOption MeterSkinMask ImageName "#@#Images\ErrorObsStationName.png"][!UpdateMeter MeterSkinMask][!Redraw]
CodePage=65001
UpdateRate=#U1Day#
[ObsStationId]
Measure=WebParser
URL=[MeasureObsStationId]
; 測站站號
StringIndex=2
IfMatch=^$
IfMatchAction=[!SetOption MeterObsSSTime Text "臺北市 %1▲ %2▼"]
IfNotMatchAction=[!SetOption KickStart UpdateRate #U30Min#][!EnableMeasure KickStart][!UpdateMeasure KickStart][!SetOption MeterObsSSTime Text "[&MeasureCWACTName:CWACTName('[&ObsStationCountyId]')] %1▲ %2▼"]
[ObsStationCountyId]
Measure=WebParser
URL=[MeasureObsStationId]
; 測站所在縣市行政區域代碼
StringIndex=3
[ObsStationTownId]
Measure=WebParser
URL=[MeasureObsStationId]
; 測站所在鄉鎮市區行政區域代碼
StringIndex=4
[KickStart]
Measure=Plugin
Plugin=PingPlugin
DestAddress=8.8.8.8
Timeout=2000
TimeoutValue=2000
Substitute="2000":"NoConnection"
FinishAction=[!Delay 1100][!CommandMeasure MeasureRun "Run"][!Log "觀測資料更新 開始... (Ping: [KickStart])"]
; 每30分鐘更新
UpdateRate=#U30Min#
Disabled=1
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=PowerShell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "& '#@#Scripts\GetObsData.ps1' '#@#Scripts' '[KickStart]' '[ObsStationId]' '[ObsStationCountyId]' '[ObsStationTownId]' '#CheckPkg#' '#PingPong#' '#MyUserAgent#'"
OutputType=UTF8
OutputFile=#@#Scripts\ObsData\ObsData.txt
FinishAction=[!Log "觀測資料更新 完成 (#ObsStationName# [ObsStationId])"]
IfMatch=^KickPing.*
IfMatchAction=[!Log "Status: KickPing"][!SetOption KickStart UpdateRate #U30Min#][!EnableMeasure KickStart][!UpdateMeasure KickStart][!SetVariable CheckPkg "No"][!SetVariable PingPong "Pong"][!SetVariable WeatherCondition ""][!EnableMeasure MeasureObs][!CommandMeasure MeasureObs "Reset"][!CommandMeasure MeasureObs "Update"][!Log "AQI資料更新 開始..."][!EnableMeasure MeasureParentAQI][!CommandMeasure MeasureParentAQI "Update"][!EnableMeasure MeasureRealtimePicURL][!CommandMeasure MeasureRealtimePicURL "Update"][!Log "AQI其它測項資料更新 開始..."][!EnableMeasure MeasureParentAQIOther][!CommandMeasure MeasureParentAQIOther "Update"]
IfMatch2=^KickPong.*
IfMatchAction2=[!Log "Status: KickPong"][!SetOption KickStart UpdateRate #U30Min#][!EnableMeasure KickStart][!UpdateMeasure KickStart][!SetVariable CheckPkg "No"][!SetVariable PingPong "Ping"][!SetVariable WeatherCondition ""][!EnableMeasure MeasureObs][!CommandMeasure MeasureObs "Reset"][!CommandMeasure MeasureObs "Update"][!Log "AQI資料更新 開始..."][!EnableMeasure MeasureParentAQI][!CommandMeasure MeasureParentAQI "Update"][!EnableMeasure MeasureRealtimePicURL][!CommandMeasure MeasureRealtimePicURL "Update"][!Log "AQI其它測項資料更新 開始..."][!EnableMeasure MeasureParentAQIOther][!CommandMeasure MeasureParentAQIOther "Update"]
IfMatch3=^Skip.*
IfMatchAction3=[!Log "Status: Skip"][!SetOption KickStart UpdateRate #U15Min#][!EnableMeasure KickStart][!UpdateMeasure KickStart][!SetVariable CheckPkg "No"][!SetVariable WeatherCondition ""][!EnableMeasure MeasureObs][!CommandMeasure MeasureObs "Reset"][!CommandMeasure MeasureObs "Update"]
IfMatch4=^Once.*
IfMatchAction4=[!Log "Status: Once"][!SetOption KickStart UpdateRate #U15Min#][!EnableMeasure KickStart][!UpdateMeasure KickStart][!SetVariable CheckPkg "No"][!SetVariable WeatherCondition ""][!EnableMeasure MeasureObs][!CommandMeasure MeasureObs "Reset"][!CommandMeasure MeasureObs "Update"]
IfMatch5=^Stop.*
IfMatchAction5=[!Log "Status: Stop"][!SetOption MeterSkinMask ImageName "#@#Images\ErrorNetwork.png"][!UpdateMeter MeterSkinMask][!Redraw][!SetOption KickStart UpdateRate #U15Min#][!EnableMeasure KickStart][!UpdateMeasure KickStart][!SetVariable CheckPkg "Yes"]
DynamicVariables=1
[MeasureObs]
Measure=WebParser
Flags=ForceReload | NoCacheWrite
URL=file://#@#Scripts/ObsData/ObsData.txt
RegExp=(?miU)^(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),.*$
FinishAction=[!Log "觀測資料擷取 完成"][!EnableMeasure MeasureCWAEcard][!EnableMeasure MeasureCWAForecast][!EnableMeasure MeasureCWAOverallForecast][!EnableMeasure MeasureCWAWarning][!HideMeterGroup ShowObsDataMeter][!UpdateMeterGroup ShowObsDataMeter][!ShowMeterGroup ShowObsDataMeter][!Redraw][!HideMeter MeterSkinMask]
OnConnectErrorAction=[!Log "No ObsData.txt..."]
CodePage=65001
; 每30分鐘
; 由[MeasureRun] !EnableMeasure, !CommandMeasure "Reset", !CommandMeasure "Update"
UpdateRate=#U1Day#
Disabled=1
[ObsData1StationId]
Measure=WebParser
URL=[MeasureObs]
; 測站站號
StringIndex=1
[ObsData2StationName]
Measure=WebParser
URL=[MeasureObs]
; 測站名稱
StringIndex=2
[ObsData3DataStatus]
Measure=WebParser
URL=[MeasureObs]
; 測站狀態 (正常, 儀器故障, 儀器調校中, 網路連線異常)
StringIndex=3
IfMatch=^網路連線異常.*$|^無觀測資料$
IfMatchAction=[!DisableMouseAction MeterObsStationName "MouseOverAction"][!DisableMouseAction MeterObsStationName "LeftMouseDoubleClickAction"][!DisableMouseAction MeterObsSSTime "LeftMouseDoubleClickAction"][!DisableMeasure MeasureCWAEcard][!DisableMeasure MeasureCWAForecast][!DisableMeasure MeasureCWAOverallForecast][!DisableMeasure MeasureCWAWarning][!HideMeter MeterCWAWarning][!SetOption MeterObsSSTime Text "無資料 06:00▲ 18:00▼"][!Log "網路連線 ([ObsData3DataStatus])"]
IfNotMatchAction=[!EnableMouseAction MeterObsStationName "MouseOverAction"][!EnableMouseAction MeterObsStationName "LeftMouseDoubleClickAction"][!EnableMouseAction MeterObsSSTime "LeftMouseDoubleClickAction"][!SetOption MeterObsWeather Text "%1"][!SetOption MeterObsTEMP Text "%1"][!SetOption MeterObsHUMD Text "濕度 %1"][!SetOption MeterObsSSTime Text "[&MeasureCWACTName:CWACTName('[&ObsStationCountyId]')] %1▲ %2▼"][!CommandMeasure MeasureCWAWarning "Reset"][!CommandMeasure MeasureCWAWarning "Update"]
[ObsData4DataRowCount]
Measure=WebParser
URL=[MeasureObs]
; 觀測資料列數
StringIndex=4
[ObsData5DataTimemmdd]
Measure=WebParser
URL=[MeasureObs]
; 觀測時間 (月日)
StringIndex=5
[ObsData6DataTimeHHMM]
Measure=WebParser
URL=[MeasureObs]
; 觀測時間 (時分)
StringIndex=6
[ObsData7TEMP]
Measure=WebParser
URL=[MeasureObs]
; 溫度
StringIndex=7
[ObsData8Weather]
Measure=WebParser
URL=[MeasureObs]
; 天氣狀況
StringIndex=8
IfMatch=^晴$
IfMatchAction=[!SetVariable WeatherCondition "晴"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W01-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch2=^晴有霾$|^晴有靄$|^有霾$|^有靄$
IfMatchAction2=[!SetVariable WeatherCondition "霾靄"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W02-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch3=^晴大雷雨$|^晴有雷$|^晴有雷聲$
IfMatchAction3=[!SetVariable WeatherCondition "雷"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W03-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch4=^多雲$
IfMatchAction4=[!SetVariable WeatherCondition "多雲"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W04-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch5=^多雲有霾$|^多雲有靄$
IfMatchAction5=[!SetVariable WeatherCondition "霾靄"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W05-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch6=^多雲有陣雨$
IfMatchAction6=[!SetVariable WeatherCondition "雨"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W06-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch7=^多雲有雨$
IfMatchAction7=[!SetVariable WeatherCondition "雨"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W07-[ObsData21DayOrNight].png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch8=^有霧$
IfMatchAction8=[!SetVariable WeatherCondition "霧"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W08.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch9=^陰$
IfMatchAction9=[!SetVariable WeatherCondition "陰"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W09.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch10=^陰有霾$|^陰有靄$
IfMatchAction10=[!SetVariable WeatherCondition "霾靄"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W10.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch11=^陰有陣雨$
IfMatchAction11=[!SetVariable WeatherCondition "雨"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W11.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch12=^陰有雨$|^有雨$
IfMatchAction12=[!SetVariable WeatherCondition "雨"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W12.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch13=^陰有雷$|^陰有雷聲$|^陰有雷雨$|^陰大雷雨$|^陰有閃電$|^有雷雨$|^多雲有雷$|^多雲有雷聲$|^多雲有雷雨$|^多雲大雷雨$|^多雲有閃電$|^大雷雨$
IfMatchAction13=[!SetVariable WeatherCondition "雷"][!SetOption MeterObsWeatherImage ImageName "#@#Images\W13.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 ([ObsData8Weather])"]
IfMatch14=^-$
; 把天氣MeterObsWeatherImage設為透明W00.png(不顯示)
IfMatchAction14=[!SetVariable WeatherCondition ""][!SetOption MeterObsWeatherImage ImageName "#@#Images\W00.png"][!UpdateMeter MeterObsWeatherImage][!Redraw][!Log "天氣 (替換-)"]
DynamicVariables=1
[ObsData9WeatherL1]
Measure=WebParser
URL=[MeasureObs]
; 天氣描述Line1 (雲量)
StringIndex=9
DynamicVariables=1
[ObsData10WeatherL2]
Measure=WebParser
URL=[MeasureObs]
; 天氣描述Line2 (天氣現象)
StringIndex=10
DynamicVariables=1
[ObsData11WindDirection]
Measure=WebParser
URL=[MeasureObs]
; 風向
StringIndex=11
[ObsData12Wind]
Measure=WebParser
URL=[MeasureObs]
; 風力(級)
StringIndex=12
[ObsData13Gust]
Measure=WebParser
URL=[MeasureObs]
; 陣風(級)
StringIndex=13
[ObsData14Visibility]
Measure=WebParser
URL=[MeasureObs]
; 能見度(公里)
StringIndex=14
; Decode > <
DecodeCharacterReference=1
[ObsData15HUMD]
Measure=WebParser
URL=[MeasureObs]
; 相對濕度(%)
StringIndex=15
[ObsData16AtmosphericPressure]
Measure=WebParser
URL=[MeasureObs]
; 海平面氣壓(百帕)
StringIndex=16
[ObsData17Rain1day]
Measure=WebParser
URL=[MeasureObs]
; 當日累積雨量(毫米)
StringIndex=17
[ObsData18Sunlight]
Measure=WebParser
URL=[MeasureObs]
; 日照時數
StringIndex=18
[ObsData19SSTimeSunRize]
Measure=WebParser
URL=[MeasureObs]
; 日出時刻
StringIndex=19
RegExpSubstitute=1
Substitute="^.* (..:..)$":"\1"
[ObsData20SSTimeSunSet]
Measure=WebParser
URL=[MeasureObs]
; 日沒時刻
StringIndex=20
RegExpSubstitute=1
Substitute="^.* (..:..)$":"\1"
[ObsData21DayOrNight]
Measure=WebParser
URL=[MeasureObs]
; 白天夜晚
StringIndex=21
IfMatch=^DAY$|^NIGHT$
IfMatchAction=[!SetOption MeterBackground ImageName "#@#Images\[ObsData21DayOrNight]#WeatherCondition#.png"][!UpdateMeter MeterBackground][!Redraw][!Log "白天夜晚 (x[ObsData21DayOrNight]x#WeatherCondition#x)"]
DynamicVariables=1
[ObsData22TownId]
Measure=WebParser
URL=[MeasureObs]
; 測站區鄉鎮代碼
StringIndex=22
[ObsData23ApptTemp]
Measure=WebParser
URL=[MeasureObs]
; 體感溫度
StringIndex=23
IfMatch=^$
IfNotMatchAction=[!Log "體感溫度 ([&MeasureCWACTName:CWACTName('[&ObsStationCountyId]')][&MeasureCWACTName:CWACTName('[&ObsStationTownId]')] [ObsData24ApptTempTime])"]
[ObsData24ApptTempTime]
Measure=WebParser
URL=[MeasureObs]
; 體感溫度預報時間
StringIndex=24
[ObsData25PoP]
Measure=WebParser
URL=[MeasureObs]
; 六小時降雨機率
StringIndex=25
[MeterObsStationName]
Meter=String
MeasureName=ObsData2StationName
MeterStyle=MyMeterStyle
X=#Row1TitleX#
Y=#Row1TitleY#
FontSize=#FontMedium#
Hidden=1
Group=ShowObsDataMeter
DynamicVariables=1
LeftMouseDoubleClickAction=[https://www.cwa.gov.tw/V8/C/W/Town/Town.html?TID=[ObsStationTownId]][MeasureCWAEcardURL]
RightMouseUpAction=!CommandMeasure "MeasureObsStationNameInput" "ExecuteBatch 1"
MouseOverAction=[!SetOption MeterCWAForecastMask ImageName "#@#Images\[ObsData21DayOrNight]#WeatherCondition#.png"][!UpdateMeter MeterCWAForecastMask][!SetOption MeterObsStationName FontColor #FontColorActive#][!SetOption MeterObsStationName FontEffectColor 0,0,0,255][!UpdateMeter MeterObsStationName][!ShowMeterGroup CWAForecastMeter][!Redraw]
MouseLeaveAction=[!SetOption MeterObsStationName FontColor ""][!SetOption MeterObsStationName FontEffectColor ""][!UpdateMeter MeterObsStationName][!HideMeterGroup CWAForecastMeter][!Redraw]
[MeterObsTEMP]
Meter=String
MeasureName=ObsData7TEMP
MeterStyle=MyMeterStyle
NumOfDecimals=1
X=#Row1Colum1X#
Y=#Row1Colum1Y#
FontSize=#FontBig#
StringAlign=Right
Hidden=1
Group=ShowObsDataMeter
LeftMouseDoubleClickAction=https://www.cwa.gov.tw/V8/C/W/OBS_Station.html?ID=[ObsStationId]
[MeterObsHUMD]
Meter=String
MeasureName=ObsData15HUMD
MeterStyle=MyMeterStyle
X=#Row1Colum2X#
Y=#Row1Y1#
FontSize=#FontSmall#
Text=濕度 %1
Hidden=1
Group=ShowObsDataMeter
[MeterObsRain1day]
Meter=String
MeasureName=ObsData17Rain1day
MeterStyle=MyMeterStyle
X=#Row1Colum3X#
Y=#Row1Y1#
FontSize=#FontSmall#
Text=雨量 %1
Hidden=1
Group=ShowObsDataMeter
[MeterObsGust]
Meter=String
MeasureName=ObsData13Gust
MeterStyle=MyMeterStyle
X=#Row1Colum2X#
Y=#Row1Y2#
FontSize=#FontSmall#
Text=陣風 %1
Hidden=1
Group=ShowObsDataMeter
[MeterObsWind]
Meter=String
MeasureName=ObsData12Wind
MeasureName2=ObsData11WindDirection
MeterStyle=MyMeterStyle
X=#Row1Colum3X#
Y=#Row1Y2#
W=91
FontSize=#FontSmall#
Text=風力 %1%2
ClipString=1
Hidden=1
Group=ShowObsDataMeter
[MeterObsVisibility]
Meter=String
MeasureName=ObsData14Visibility
MeterStyle=MyMeterStyle
X=#Row1Colum2X#
Y=#Row1Y3#
FontSize=#FontSmall#
Text=能見 %1
Hidden=1
Group=ShowObsDataMeter
[MeterObsAtmosphericPressure]
Meter=String
MeasureName=ObsData16AtmosphericPressure
MeterStyle=MyMeterStyle
X=#Row1Colum3X#
Y=#Row1Y3#
FontSize=#FontSmall#
Text=氣壓 %1
Hidden=1
Group=ShowObsDataMeter
[MeterObsSatellite]
Meter=String
MeterStyle=MyMeterStyle
X=#Row1Colum2X#
Y=#Row1Y4#
FontSize=#FontSmall#
Text=天氣圖資
Hidden=1
Group=ShowObsDataMeter
LeftMouseDoubleClickAction=https://www.cwa.gov.tw/V8/C/W/graph_collection.html
[MeterObsDataTimeHHMM]
Meter=String
MeasureName=ObsData6DataTimeHHMM
MeterStyle=MyMeterStyle
X=#Row1Colum3X#
Y=#Row1Y4#
FontSize=#FontSmall#
Text=更新 %1
Hidden=1
Group=ShowObsDataMeter
[MeterObsSSTime]
Meter=String
MeasureName=ObsData19SSTimeSunRize
MeasureName2=ObsData20SSTimeSunSet
MeterStyle=MyMeterStyle
X=#Row1Colum2X#
Y=#Row1Y5#
FontSize=#FontSmall#
Text=[&MeasureCWACTName:CWACTName('[&ObsStationCountyId]')] %1▲ %2▼
Hidden=1
DynamicVariables=1
Group=ShowObsDataMeter
LeftMouseDoubleClickAction=[https://www.cwa.gov.tw/V8/C/W/County/County.html?CID=[ObsStationCountyId]#SunMoon_MOD][https://www.cwa.gov.tw/V8/C/D/astronomy_data.html#areasel_1]
[MeterObsWeatherImage]
Meter=Image
X=#Row1ImageX#
Y=#Row1ImageY#
DynamicVariables=1
Hidden=1
Group=ShowObsDataMeter
[MeterObsWeather]
Meter=String
MeasureName=ObsData9WeatherL1
MeterStyle=MyMeterStyle
X=#Row1Colum1PlusX#
Y=#Row1Y3Plus#
DynamicVariables=1
FontSize=#FontSmall#
ClipString=2
ClipStringW=40
ClipStringH=36
Text=%1
Hidden=1
Group=ShowObsDataMeter
[MeterObsWeatherLine2]
Meter=String
MeasureName=ObsData10WeatherL2
MeterStyle=MyMeterStyle
X=#Row1Colum1PlusX#
Y=#Row1Y4Plus#
DynamicVariables=1
FontSize=#FontSmall#
Text=%1
Hidden=1
Group=ShowObsDataMeter
; ======================================
; 輸入(變更) 天氣測站名稱
; ======================================
[MeasureObsStationNameInput]
Measure=Plugin
Plugin=InputText
FontFace=#MyFont#
FontSize=#FontMedium#
StringStyle=Italic
StringAlign=Center
X=#ObsStationNameInputX#
Y=#ObsStationNameInputY#
W=#SkinW#
H=28
DefaultValue="輸入測站後請按Enter"
; Command中第二次用UserInput要用MeasureName [MeasureObsStationNameInput]
Command1=[!SetVariable ObsStationName "$UserInput$"][!WriteKeyValue Variables ObsStationName "[MeasureObsStationNameInput]" "#@#Settings\Settings.txt"][!Log "變更ObsStationName完成"][!Refresh]
; ======================================
; AQI
; ======================================
[MeasureAirSiteNameString]
Measure=String
String=#AirSiteName#
RegExpSubstitute=1
Substitute="(.+)\((.+)\)":"\1\(\2\)"
UpdateDivider=#U1Day#
[MeasureAirSiteMNameString]
Measure=String
String=#AirSiteName#
RegExpSubstitute=1
Substitute="(.+)\((.+)\)":"\1\(\2\)\(行動\)"
UpdateDivider=#U1Day#
[MeasureParentAQI]
Measure=WebParser
URL=https://data.moenv.gov.tw/api/v2/aqx_p_432?format=json&offset=0&limit=100&api_key=#MoEnvApiKey#
UserAgent=#MyUserAgent#
Header=Host: data.moenv.gov.tw
Header2=Accept: text/html
Header3=Accept-Language: zh-TW,zh
Header4=Dnt: 1
Header5=Connection: close
RegExp=(?siU)"sitename":."[MeasureAirSiteNameString]",.*"county":."(.*)",.*"aqi":."(.*)",.*"pollutant":."(.*)",.*"status":."(.*)".*"pm2.5":."(.*)".*"publishtime":."(.*)".*"longitude":."(.*)",.*"latitude":."(.*)"
FinishAction=[!UpdateMeterGroup AQIMeter][!ShowMeterGroup AQIMeter][!HideMeter MeterSkinMask][!Log "AQI資料更新 完成 (#AirSiteName#)"]
OnRegExpErrorAction=[!HideMeterGroup AQIMeter][!HideMeter MeterSkinMask][!Log "AQI資料更新 未完成... (#AirSiteName#)"]
OnConnectErrorAction=[!HideMeter MeterSkinMask][!Log "AQI資料更新 未完成... (#AirSiteName#)"]
; 由[MeasureRun] Enable, CommandMeasure Update
UpdateRate=#U1Day#
Disabled=1
[MeasureChildAQICounty]
Measure=WebParser
URL=[MeasureParentAQI]
; 縣市
StringIndex=1
[MeasureChildAQI]
Measure=WebParser
URL=[MeasureParentAQI]
; 空氣品質指標
StringIndex=2
IfCondition=MeasureChildAQI < 100
IfTrueAction=[!SetOption MeterAQI X #Row2Colum1X#][!SetOption MeterAQIStatusImage X #Row2Colum2X#][!SetOption MeterAQIString X #Row2Colum2PlusX#][!SetOption MeterAQIStatusString X #Row2Colum2X#][!SetOption MeterAQIPollutant X #Row2Colum2X#][!SetOption MeterAQIOther X #Row2Colum2X#][!UpdateMeter MeterAQIBar]
IfCondition2=MeasureChildAQI >= 100
IfTrueAction2=[!SetOption MeterAQI X #Row2Colum1X#][!SetOption MeterAQIStatusImage X #Row2Colum2ShiftedX#][!SetOption MeterAQIString X #Row2Colum2PlusShiftedX#][!SetOption MeterAQIStatusString X #Row2Colum2ShiftedX#][!SetOption MeterAQIPollutant X #Row2Colum2ShiftedX#][!SetOption MeterAQIOther X #Row2Colum2ShiftedX#][!UpdateMeter MeterAQIBar]
IfCondition3=MeasureChildAQI < 200
IfTrueAction3=[!SetOption MeterAQI X #Row2Colum1X#][!SetOption MeasureChildAQI MaxValue 200][!SetOption MeterAQIBar BarImage "#@#Images\AQIBar200.png"][!UpdateMeter MeterAQIBar]
IfCondition4=MeasureChildAQI >= 200
IfTrueAction4=[!SetOption MeterAQI X #Row2Colum1X#][!SetOption MeasureChildAQI MaxValue 500][!SetOption MeterAQIBar BarImage "#@#Images\AQIBar500.png"][!UpdateMeter MeterAQIBar]
IfCondition5=MeasureChildAQI < 10
IfTrueAction5=[!SetOption MeterAQI X #Row2Colum1ShiftedX#][!SetOption MeterAQIStatusImage X #Row2Colum2X#][!SetOption MeterAQIString X #Row2Colum2PlusX#][!SetOption MeterAQIStatusString X #Row2Colum2X#][!SetOption MeterAQIPollutant X #Row2Colum2X#][!SetOption MeterAQIOther X #Row2Colum2X#][!UpdateMeter MeterAQIBar]
IfConditionMode=1
[MeasureChildAQIPollutant]
Measure=WebParser
URL=[MeasureParentAQI]
; 空氣污染指標物
StringIndex=3
RegExpSubstitute=1
Substitute="^(.*)$":"\1 ","\\1 ":""
[MeasureChildAQIStatus]
Measure=WebParser
URL=[MeasureParentAQI]
; 狀態
StringIndex=4
IfMatch=^良好$
IfMatchAction=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S01.png"]
IfMatch2=^普通$
IfMatchAction2=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S02.png"]
IfMatch3=^對敏感族群不健康$
IfMatchAction3=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S03.png"]
IfMatch4=^對所有族群不健康$
IfMatchAction4=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S04.png"]
IfMatch5=^非常不健康$
IfMatchAction5=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S05.png"]
IfMatch6=^危害$
IfMatchAction6=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S06.png"]
IfMatch7=^設備維護$
IfMatchAction7=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S07.png"]
IfMatch8=^無資料$
IfMatchAction8=[!SetOption MeterAQIStatusImage ImageName "#@#Images\S07.png"]
[MeasureChildAQIPM25]
Measure=WebParser
URL=[MeasureParentAQI]
; 細懸浮微粒(μg/m3) PM2.5
StringIndex=5
IfCondition=MeasureChildAQIPM25 >= 10
IfTrueAction=[!SetOption MeterAQIPM25 X #Row2Colum3X#][!SetOption MeterAQIPM25 FontSize #FontBig#]
IfCondition2=(MeasureChildAQIPM25 <> 0) && (MeasureChildAQIPM25 < 10)
IfTrueAction2=[!SetOption MeterAQIPM25 X #Row2Colum3ShiftedX#][!SetOption MeterAQIPM25 FontSize #FontBig#]
IfCondition3=MeasureChildAQIPM25 = 0
IfTrueAction3=[!SetOption MeterAQIPM25 X #Row2Colum3ShiftedX#][!SetOption MeterAQIPM25 FontSize #FontBig#]
[MeasureChildAQIPublishTime]
Measure=WebParser
URL=[MeasureParentAQI]
; 資料建置日期
StringIndex=6
RegExpSubstitute=1
Substitute="^.* (..\:..)\:..$":"\1"
[MeasureChildAirSiteLongitude]
Measure=WebParser
URL=[MeasureParentAQI]
; 經度
StringIndex=7
[MeasureChildAirSiteLatitude]
Measure=WebParser
URL=[MeasureParentAQI]
; 緯度
StringIndex=8
[MeterAQI]
Meter=String
MeasureName=MeasureChildAQI
MeterStyle=MyMeterStyle
Y=#Row2Colum1Y#
FontSize=#FontBig#
Text=%1
Hidden=1
Group=AQIMeter
LeftMouseDoubleClickAction=[https://data.moenv.gov.tw/dataset/detail/AQX_P_432][https://data.moenv.gov.tw/dataset/detail/AQX_P_35]
MouseOverAction=[!HideMeterGroup AQIPollutantMeter][!ShowMeter MeterAQIPollutant][!ShowMeter MeterAQIOther][!Redraw]
MouseLeaveAction=[!HideMeter MeterAQIPollutant][!HideMeter MeterAQIOther][!ShowMeterGroup AQIPollutantMeter][!Redraw]
[MeterAQIStatusImage]
Meter=Image
Y=#Row2ImageY#
Hidden=1
Group=AQIMeter
LeftMouseDoubleClickAction=https://airtw.moenv.gov.tw/CHT/Information/Standard/AirQualityIndicator.aspx#tg4
[MeterAQIString]
Meter=String
MeterStyle=MyMeterStyle
Y=#Row2Y1#
FontSize=#FontSmall#
DynamicVariables=1
Text=#AirSiteName#站
Hidden=1
Group=AQIMeter
LeftMouseDoubleClickAction=[http://www.google.com.tw/maps?q=[MeasureChildAirSiteLatitude],[MeasureChildAirSiteLongitude]][MeasureRealtimePicURLforClick]
RightMouseUpAction=!CommandMeasure "MeasureAirSiteNameInput" "ExecuteBatch 1"
[MeterAQIStatusString]
Meter=String
MeasureName=MeasureChildAQIStatus
MeterStyle=MyMeterStyle
Y=#Row2Y2#
FontSize=#FontSmall#
Text=AQI %1
Hidden=1
Group=AQIMeter | AQIPollutantMeter
LeftMouseDoubleClickAction=https://airtw.moenv.gov.tw/CHT/Information/Standard/AirQualityIndicator.aspx#tg4
[MeterAQIPM25String]
Meter=String
MeterStyle=MyMeterStyle
X=#Row2Colum3StringX#
Y=#Row2Y1#
FontSize=#FontSmall#
Text=PM2.5
InlineSetting=Size | 7
InlinePattern=2.5
Hidden=1
Group=AQIMeter
LeftMouseDoubleClickAction=https://airtw.moenv.gov.tw/#th_area
[MeterAQIPM25]
Meter=String
MeasureName=MeasureChildAQIPM25
MeterStyle=MyMeterStyle
X=#Row2Colum3X#
Y=#Row2Colum1Y#
Text=%1
Hidden=1
Group=AQIMeter
LeftMouseDoubleClickAction=https://airtw.moenv.gov.tw/#th_area
MouseOverAction=[!HideMeterGroup AQIPollutantMeter][!ShowMeter MeterAQIPollutant][!ShowMeter MeterAQIOther][!Redraw]
MouseLeaveAction=[!HideMeter MeterAQIPollutant][!HideMeter MeterAQIOther][!ShowMeterGroup AQIPollutantMeter][!Redraw]
[MeterAQIBar]
Meter=Bar
MeasureName=MeasureChildAQI
BarOrientation=Horizontal
X=5
Y=135
SolidColor=0,0,0,0
AntiAlias=1
Hidden=1
Group=AQIMeter | AQIPollutantMeter
LeftMouseDoubleClickAction=https://airtw.moenv.gov.tw/CHT/Information/Standard/AirQualityIndicator.aspx#tg4
[MeterAQIPollutant]
Meter=String
MeasureName=MeasureChildAQIPollutant
MeasureName2=MeasureChildAQIPublishTime
MeterStyle=MyMeterStyle
Y=#Row2Y2#
FontSize=#FontSmall#
SolidColor=255,0,0,128
Text=%1%2 更新
Hidden=1
; ======================================
; AQI 其它測項
; ======================================
[MeasureParentAQIOther]
Measure=WebParser
URL=https://data.moenv.gov.tw/api/v2/aqx_p_35?format=json&offset=0&limit=200&api_key=#MoEnvApiKey#
UserAgent=#MyUserAgent#
Header=Host: data.moenv.gov.tw
Header2=Accept: text/html
Header3=Accept-Language: zh-TW,zh
Header4=Dnt: 1
Header5=Connection: close
RegExp=(?siU)"sitename":."[MeasureAirSiteNameString]",.*"itemengname":."RH",.*"concentration":."(.*)",.*"sitename":."[MeasureAirSiteNameString]",.*"itemengname":."AMB_TEMP",.*"monitordate":."(.*)",.*"concentration":."(.*)"
FinishAction=[!Log "AQI其它測項資料更新 完成 (#AirSiteName#)"]
OnRegExpErrorAction=[!Log "AQI其它測項資料更新 未完成... (#AirSiteName#)"]
OnConnectErrorAction=[!Log "AQI其它測項資料更新 未完成... (#AirSiteName#)"]
; 由[MeasureRun] Enable, CommandMeasure Update
UpdateRate=#U1Day#
Disabled=1
[MeasureChildAQIOtherHUMD]
Measure=WebParser
URL=[MeasureParentAQIOther]
; 相對濕度(%)
StringIndex=1
RegExpSubstitute=1
Substitute="^(.*)$":"\1%","\\1%":""
[MeasureChildAQIOtherDate]
Measure=WebParser
URL=[MeasureParentAQIOther]
; 監測日期
StringIndex=2
RegExpSubstitute=1
Substitute="^(.*)-(.*)-(.*) (.*):(.*)$":"\2/\3 \4:\5"
[MeasureChildAQIOtherTEMP]
Measure=WebParser
URL=[MeasureParentAQIOther]
; 溫度(℃)
StringIndex=3
RegExpSubstitute=1
Substitute="^(.*)$":"\1°","\\1°":""
[MeterAQIOther]
Meter=String
MeasureName=MeasureChildAQIOtherTEMP
MeasureName2=MeasureChildAQIOtherHUMD
MeasureName3=MeasureChildAQIOtherDate
MeterStyle=MyMeterStyle
Y=#Row2Y3#
FontSize=#FontSmall#
SolidColor=255,0,0,128
Text=%1 %2 %3
Hidden=1
; ======================================
; 測站影像URL
; ======================================
[MeasureRealtimePicURL]
Measure=WebParser
URL=https://airtw.moenv.gov.tw/ajax.aspx?Target=SitePhoto
UserAgent=#MyUserAgent#
Header=Host: airtw.moenv.gov.tw
Header2=Accept: text/html
Header3=Accept-Language: zh-TW,zh
Header4=Dnt: 1
Header5=Connection: close
RegExp=(?siU)'[MeasureAirSiteMNameString]''.*data-original='../../../(.*)'
FinishAction=[!Log "測站影像URL更新"]
OnRegExpErrorAction=[!Log "測站影像URL更新 未完成..."]
OnConnectErrorAction=[!Log "測站影像URL更新 未完成..."]
; 由[MeasureRun] Enable, CommandMeasure Update
UpdateRate=#U1Day#
Disabled=1
[MeasureRealtimePicURLforClick]
Measure=WebParser
URL=[MeasureRealtimePicURL]
StringIndex=1
RegExpSubstitute=1
Substitute="^(.*)$":"https://airtw.moenv.gov.tw/\1","^(https://airtw.moenv.gov.tw/\\1)$":"https://airtw.moenv.gov.tw/CHT/EnvMonitoring/Central/SitePhoto.aspx"
; ======================================
; 輸入(變更) 空氣品質監測站
; ======================================
[MeasureAirSiteNameInput]
Measure=Plugin
Plugin=InputText
FontFace=#MyFont#
FontSize=#FontMedium#
StringStyle=Italic
StringAlign=Center
X=#AirSiteNameInputX#
Y=#AirSiteNameInputY#
W=#SkinW#
H=28
DefaultValue="輸入測站後請按Enter"
; Command中第二次用UserInput要用MeasureName [MeasureAirSiteNameInput]
Command1=[!SetVariable AirSiteName "$UserInput$"][!WriteKeyValue Variables AirSiteName "[MeasureAirSiteNameInput]" "#@#Settings\Settings.txt"][!Log "變更AirSiteName完成"][!Refresh]
; ======================================
; 天氣小叮嚀電子卡
; ======================================
[MeasureCWAEcard]
Measure=WebParser
URL=https://www.cwa.gov.tw/V8/C/W/County/MOD/Ecard/[&ObsStationCountyId]_Ecard.html
UserAgent=#MyUserAgent#
Header=Host: www.cwa.gov.tw
Header2=Accept: text/html
Header3=Accept-Language: zh-TW,zh
Header4=Dnt: 1
Header5=Connection: close
RegExp=(?siU)<ul.*data-href='(.*)'>
DynamicVariables=1
FinishAction=[!Log "天氣小叮嚀電子卡URL更新"]
OnRegExpErrorAction=[!Log "天氣小叮嚀電子卡URL更新 未完成..."]
; 每6小時更新
UpdateRate=#U6Hour#
; 由[MeasureObs] Enable, NO CommandMeasure Update. [ObsData3DataStatus] 網路異常時 Disable
Disabled=1
[MeasureCWAEcardURL]
Measure=WebParser
URL=[MeasureCWAEcard]
; 天氣小叮嚀電子卡URL
StringIndex=1
; ======================================
; 天氣測站所在縣市天氣預報 (中央氣象署)
; ======================================
[MeasureCWAForecast]
Measure=WebParser
URL=https://www.cwa.gov.tw/Data/js/TableData_36hr_County_C.js
UserAgent=#MyUserAgent#
Header=Host: www.cwa.gov.tw
Header2=Accept: text/html
Header3=Accept-Language: zh-TW,zh
Header4=Dnt: 1
Header5=Connection: close
RegExp=(?siU)IssuedTime_36hr = '(.*)';.*'[ObsStationCountyId]':.*,'Type':'(.*)','Temp':{'C':{('L':'.*','H':'.*')},.*'PoP':'(.*)',.*'Wx':'(.*)','CI':'(.*)'},
DynamicVariables=1
FinishAction=[!Log "天氣預報資料更新"]
OnRegExpErrorAction=[!Log "天氣預報資料更新 未完成..."]
; 每3小時更新
UpdateRate=#U3Hour#
; 由[MeasureObs] Enable, NO CommandMeasure Update. [ObsData3DataStatus] 網路異常時 Disable
Disabled=1
[MeasureCWAForecastIssuedTime]
Measure=WebParser
URL=[MeasureCWAForecast]
; 發布時間
StringIndex=1
[MeasureCWAForecastType]
Measure=WebParser
URL=[MeasureCWAForecast]
; 預報時段
StringIndex=2
IfMatch=^TD$
IfMatchAction=[!SetOption MeterCWAForecastType Text "今日白天"]
IfMatch2=^TN$
IfMatchAction2=[!SetOption MeterCWAForecastType Text "今晚明晨"]
IfMatch3=^TM$
IfMatchAction3=[!SetOption MeterCWAForecastType Text "明日白天"]
IfMatch4=^TMN$
IfMatchAction4=[!SetOption MeterCWAForecastType Text "明日晚上"]
[MeasureCWAForecastTemp]
Measure=WebParser
URL=[MeasureCWAForecast]
; 溫度
StringIndex=3
RegExpSubstitute=1
Substitute="^'L':'(.*)','H':'(.*)'$":"\1-\2°C"
[MeasureCWAForecastPoP]
Measure=WebParser
URL=[MeasureCWAForecast]
; 降雨機率
StringIndex=4
[MeasureCWAForecastWx]
Measure=WebParser
URL=[MeasureCWAForecast]
; 天氣現象
StringIndex=5
[MeasureCWAForecastCI]
Measure=WebParser
URL=[MeasureCWAForecast]
; 舒適度
StringIndex=6
[MeterCWAForecastMask]
Meter=Image
X=0
Y=25
; 由[MeterObsStationName] MouseOverAction Update ImageName
ImageCrop=0,25,250,150,1
DynamicVariables=1
Hidden=1
Group=CWAForecastMeter
UpdateDivider=600
[MeterCWAForecastType]
Meter=String
MeasureName=MeasureCWAForecastType
MeterStyle=MyMeterStyle