; © 2020 by xxenium

; ========================================
;                 LOCATION
; ========================================

[MeasureLocation]
Measure=WebParser
Url=#URL#
RegExp=#Location#
UpdateRate=600
LogSubstringErrors=0
DecodeCharacterReference=1
FinishAction=[!EnableMeasureGroup Location][!UpdateMeasureGroup Location]

[MeasureCountry]
Measure=WebParser
Url=[MeasureLocation]
StringIndex=5
Substitute="null":"",'"':""
Group=Location
Disabled=1

[MeasureCity]
Measure=WebParser
Url=[MeasureLocation]
StringIndex=7
Substitute="null":"",'"':""
Group=Location
Disabled=1


; ========================================
;             CURRENT WEATHER
; ========================================

[MeasureCurrentObservations]
Measure=WebParser
Url=#URL#
RegExp=#CurrentObservations#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Current][!UpdateMeasureGroup Current]

[MeasureIcon]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=1
Group=Current
Disabled=1

[MeasurePressure]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=2
Group=Current
Disabled=1

[MeasureHumidity]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=5
Group=Current
Disabled=1

[MeasureTemperature]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=6
Group=Current
Disabled=1

[MeasureFeelsLike]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=8
Group=Current
Disabled=1

[MeasureUpdate]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=11
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1"
Group=Current
Disabled=1

[MeasureUpdateTimeFormat12H]
Measure=Time
DynamicVariables=1
TimeStamp=[MeasureUpdate]
TimeStampFormat=%H:%S
Format=%#I:%S %p
Substitute="AM":"am","PM":"pm"
Group=Current
Disabled=1

[MeasureVisibility]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=12
Group=Current
Disabled=1

[MeasureWindDirection]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=13
Group=Current
Disabled=1

[MeasureWindSpeed]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=15
Substitute="\u002F":"/"
Group=Current
Disabled=1

[MeasureCondition]
Measure=WebParser
Url=[MeasureCurrentObservations]
StringIndex=16
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=Current
Disabled=1

[MeasureUpdateTimeZone]
Measure=WebParser
Url=#URL#
RegExp=#UpdateTimeZone#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup UpdateTimeZone][!UpdateMeasureGroup UpdateTimeZone]

[MeasureUpdateTimeZoneAbbrev]
Measure=WebParser
Url=[MeasureUpdateTimeZone]
StringIndex=1
Group=UpdateTimeZone
Disabled=1


; ========================================
;              5 DAY FORECAST
; ========================================



;============= MOON ==================


[MeasureMoon]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastMOON#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Moon][!UpdateMeasureGroup Moon]

[MeasureMoonPhase]
Measure=WebParser
Url=[MeasureMoon]
StringIndex=1
Group=Moon
Disabled=1

[MeasureMoonPhaseCode]
Measure=WebParser
Url=[MeasureMoon]
StringIndex=2
Group=Moon
Disabled=1

[MeasureMoonrise]
Measure=WebParser
Url=[MeasureMoon]
StringIndex=3
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1","":"[MeasureMoonriseNext]"
DynamicVariables=1
Group=Moon
Disabled=1

[MeasureMoonriseNext]
Measure=WebParser
Url=[MeasureMoon]
StringIndex=4
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1"
Group=Moon
Disabled=1

[MeasureMoonset]
Measure=WebParser
Url=[MeasureMoon]
StringIndex=5
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1","":"[MeasureMoonsetNext]"
DynamicVariables=1
Group=Moon
Disabled=1

[MeasureMoonsetNext]
Measure=WebParser
Url=[MeasureMoon]
StringIndex=6
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1"
Group=Moon
Disabled=1

[MeasureMoonriseTimeFormat12H]
Measure=Time
TimeStamp=[MeasureMoonrise]
TimeStampFormat=%H:%S
Format=%#I:%S %p
Substitute="AM":"am","PM":"pm"
DynamicVariables=1
Group=Moon
Disabled=1

[MeasureMoonsetTimeFormat12H]
Measure=Time
TimeStamp=[MeasureMoonset]
TimeStampFormat=%H:%S
Format=%#I:%S %p
Substitute="AM":"am","PM":"pm"
DynamicVariables=1
Group=Moon
Disabled=1


;============= SUN ==================


[MeasureSun]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastSUN#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Sun][!UpdateMeasureGroup Sun]

[MeasureSunrise]
Measure=WebParser
Url=[MeasureSun]
StringIndex=1
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1","":"[MeasureSunriseNext]"
DynamicVariables=1
Group=Sun
Disabled=1

[MeasureSunriseNext]
Measure=WebParser
Url=[MeasureSun]
StringIndex=2
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1"
Group=Sun
Disabled=1

[MeasureSunset]
Measure=WebParser
Url=[MeasureSun]
StringIndex=3
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1","":"[MeasureSunsetNext]"
DynamicVariables=1
Group=Sun
Disabled=1

[MeasureSunsetNext]
Measure=WebParser
Url=[MeasureSun]
StringIndex=4
RegExpSubstitute=1
Substitute="^.*T(.*):.*$":"\1"
Group=Sun
Disabled=1

[MeasureSunriseTimeFormat12H]
Measure=Time
TimeStamp=[MeasureSunrise]
TimeStampFormat=%H:%S
Format=%#I:%S %p
Substitute="AM":"am","PM":"pm"
DynamicVariables=1
Group=Sun
Disabled=1

[MeasureSunsetTimeFormat12H]
Measure=Time
TimeStamp=[MeasureSunset]
TimeStampFormat=%H:%S
Format=%#I:%S %p
Substitute="AM":"am","PM":"pm"
DynamicVariables=1
Group=Sun
Disabled=1


;============= TEMP MAX ==============


[MeasureDailyForecastTempMax]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastTempMax#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup TempMax][!UpdateMeasureGroup TempMax]

[MeasureTempMax1]
Measure=WebParser
Url=[MeasureDailyForecastTempMax]
StringIndex=1
Substitute="[":""
Group=TempMax
Disabled=1
IfMatch=null
IfMatchAction=[!SetOption MeterTempHighLow Text "↑ --- ↓ %2°"][!SetOption MeterFT1 Text "--- /%2°"]

[MeasureTempMax1Vert]
Measure=WebParser
Url=[MeasureDailyForecastTempMax]
StringIndex=1
Substitute="[":""
Group=TempMax
Disabled=1
IfMatch=null
IfMatchAction=[!SetOption MeterTempHighLow Text "↑ --- ↓ %2°"][!SetOption MeterFT1Vert Text "---#CRLF#%2°"]

[MeasureTempMax2]
Measure=WebParser
Url=[MeasureDailyForecastTempMax]
StringIndex=2
Group=TempMax
Disabled=1

[MeasureTempMax3]
Measure=WebParser
Url=[MeasureDailyForecastTempMax]
StringIndex=3
Group=TempMax
Disabled=1

[MeasureTempMax4]
Measure=WebParser
Url=[MeasureDailyForecastTempMax]
StringIndex=4
Group=TempMax
Disabled=1

[MeasureTempMax5]
Measure=WebParser
Url=[MeasureDailyForecastTempMax]
StringIndex=5
Group=TempMax
Disabled=1


;============== TEMP MIN ==============


[MeasureDailyForecastTempMin]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastTempMin#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup TempMin][!UpdateMeasureGroup TempMin]

[MeasureTempMin1]
Measure=WebParser
Url=[MeasureDailyForecastTempMin]
StringIndex=1
Substitute="[":""
Group=TempMin
Disabled=1

[MeasureTempMin2]
Measure=WebParser
Url=[MeasureDailyForecastTempMin]
StringIndex=2
Group=TempMin
Disabled=1

[MeasureTempMin3]
Measure=WebParser
Url=[MeasureDailyForecastTempMin]
StringIndex=3
Group=TempMin
Disabled=1

[MeasureTempMin4]
Measure=WebParser
Url=[MeasureDailyForecastTempMin]
StringIndex=4
Group=TempMin
Disabled=1

[MeasureTempMin5]
Measure=WebParser
Url=[MeasureDailyForecastTempMin]
StringIndex=5
Group=TempMin
Disabled=1



;============= DAYS ==================


[MeasureDailyForecastDate]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastDate#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Days][!UpdateMeasureGroup Days]

[MeasureDate1]
Measure=WebParser
Url=[MeasureDailyForecastDate]
StringIndex=1
RegExpSubstitute=1
Substitute="^(.*)T.*$":"\1"
Group=Days
Disabled=1

[MeasureDay1]
Measure=Time
TimeStamp=[MeasureDate1]
TimeStampFormat=%Y-%m-%d
Format=#DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDate2]
Measure=WebParser
Url=[MeasureDailyForecastDate]
StringIndex=2
RegExpSubstitute=1
Substitute="^(.*)T.*$":"\1"
Group=Days
Disabled=1

[MeasureDay2]
Measure=Time
TimeStamp=[MeasureDate2]
TimeStampFormat=%Y-%m-%d
Format=%a#CRLF##DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDay2Horiz]
Measure=Time
TimeStamp=[MeasureDate2]
TimeStampFormat=%Y-%m-%d
Format=%a #DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDate3]
Measure=WebParser
Url=[MeasureDailyForecastDate]
StringIndex=3
RegExpSubstitute=1
Substitute="^(.*)T.*$":"\1"
Group=Days
Disabled=1

[MeasureDay3]
Measure=Time
TimeStamp=[MeasureDate3]
TimeStampFormat=%Y-%m-%d
Format=%a#CRLF##DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDay3Horiz]
Measure=Time
TimeStamp=[MeasureDate3]
TimeStampFormat=%Y-%m-%d
Format=%a #DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDate4]
Measure=WebParser
Url=[MeasureDailyForecastDate]
StringIndex=4
RegExpSubstitute=1
Substitute="^(.*)T.*$":"\1"
Group=Days
Disabled=1

[MeasureDay4]
Measure=Time
TimeStamp=[MeasureDate4]
TimeStampFormat=%Y-%m-%d
Format=%a#CRLF##DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDay4Horiz]
Measure=Time
TimeStamp=[MeasureDate4]
TimeStampFormat=%Y-%m-%d
Format=%a #DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDate5]
Measure=WebParser
Url=[MeasureDailyForecastDate]
StringIndex=5
RegExpSubstitute=1
Substitute="^(.*)T.*$":"\1"
Group=Days
Disabled=1

[MeasureDay5]
Measure=Time
TimeStamp=[MeasureDate5]
TimeStampFormat=%Y-%m-%d
Format=%a#CRLF##DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1

[MeasureDay5Horiz]
Measure=Time
TimeStamp=[MeasureDate5]
TimeStampFormat=%Y-%m-%d
Format=%a #DateFormat#
FormatLocale=#Language#
DynamicVariables=1
Group=Days
Disabled=1



;============= DAY PART ===============


[MeasureDailyForecastDayPart]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastDayPart#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup DayPart][!UpdateMeasureGroup DayPart]

[MeasureDayPartDay1]
Measure=WebParser
Url=[MeasureDailyForecastDayPart]
StringIndex=1
Substitute='"':"","[":"","null":"[MeasureDayPartNight1]"
DynamicVariables=1
Group=DayPart
Disabled=1

[MeasureDayPartNight1]
Measure=WebParser
Url=[MeasureDailyForecastDayPart]
StringIndex=2
Group=DayPart
Disabled=1


;========= DAILY ICON CODES ===========


[MeasureDailyForecastIcon]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastIconCode#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup DailyIconCode][!UpdateMeasureGroup DailyIconCode]

[MeasureDailyIconDay1]
Measure=WebParser
Url=[MeasureDailyForecastIcon]
StringIndex=1
Substitute="[":"","null":"[MeasureDailyIconNight1]"
DynamicVariables=1
Group=DailyIconCode
Disabled=1

[MeasureDailyIconNight1]
Measure=WebParser
Url=[MeasureDailyForecastIcon]
StringIndex=2
Group=DailyIconCode
Disabled=1

[MeasureDailyIconDay2]
Measure=WebParser
Url=[MeasureDailyForecastIcon]
StringIndex=3
Group=DailyIconCode
Disabled=1

[MeasureDailyIconDay3]
Measure=WebParser
Url=[MeasureDailyForecastIcon]
StringIndex=5
Group=DailyIconCode
Disabled=1

[MeasureDailyIconDay4]
Measure=WebParser
Url=[MeasureDailyForecastIcon]
StringIndex=7
Group=DailyIconCode
Disabled=1

[MeasureDailyIconDay5]
Measure=WebParser
Url=[MeasureDailyForecastIcon]
StringIndex=9
Group=DailyIconCode
Disabled=1


;========= DAILY DETAILS ==============


[MeasureDailyForecastDetails]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastDetails#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Details][!UpdateMeasureGroup Details]

[MeasureDetailsDay1]
Measure=WebParser
Url=[MeasureDailyForecastDetails]
StringIndex=1
DecodeCharacterReference=1
Substitute='"':"","\u002F":"/","[":"","null":"[MeasureDetailsNight1]"
DynamicVariables=1
Group=Details
Disabled=1

[MeasureDetailsNight1]
Measure=WebParser
Url=[MeasureDailyForecastDetails]
StringIndex=2
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=Details
Disabled=1


;===== DAILY PRECIPITATION CHANCE ======


[MeasureDailyForecastPrecip]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastPrecip#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup DailyPrecip][!UpdateMeasureGroup DailyPrecip]

[MeasureDailyPrecipDay1]
Measure=WebParser
Url=[MeasureDailyForecastPrecip]
StringIndex=1
Substitute="[":"","null":"[MeasureDailyPrecipNight1]"
DynamicVariables=1
Group=DailyPrecip
Disabled=1

[MeasureDailyPrecipNight1]
Measure=WebParser
Url=[MeasureDailyForecastPrecip]
StringIndex=2
Group=DailyPrecip
Disabled=1


;========= DAILY CONDITIONS ===========


[MeasureDailyForecastCond]
Measure=WebParser
Url=#URL#
RegExp=#DailyForecastCondition#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup DailyCondition][!UpdateMeasureGroup DailyCondition]

[MeasureDailyCondDay1]
Measure=WebParser
Url=[MeasureDailyForecastCond]
StringIndex=1
DecodeCharacterReference=1
Substitute='"':"","\u002F":"/","[":"","null":"[MeasureDailyCondNight1]"
DynamicVariables=1
Group=DailyCondition
Disabled=1

[MeasureDailyCondNight1]
Measure=WebParser
Url=[MeasureDailyForecastCond]
StringIndex=2
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=DailyCondition
Disabled=1

[MeasureDailyCondDay2]
Measure=WebParser
Url=[MeasureDailyForecastCond]
StringIndex=3
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=DailyCondition
Disabled=1

[MeasureDailyCondDay3]
Measure=WebParser
Url=[MeasureDailyForecastCond]
StringIndex=5
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=DailyCondition
Disabled=1

[MeasureDailyCondDay4]
Measure=WebParser
Url=[MeasureDailyForecastCond]
StringIndex=7
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=DailyCondition
Disabled=1

[MeasureDailyCondDay5]
Measure=WebParser
Url=[MeasureDailyForecastCond]
StringIndex=9
DecodeCharacterReference=1
Substitute="\u002F":"/"
Group=DailyCondition
Disabled=1


; ========================================
;         WEATHER PARAMETERS LABELS
; ========================================


[MeasureWeatherParametersLabels]
Measure=WebParser
Url=#URL#
RegExp=#WeatherParametersLabels#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Labels][!UpdateMeasureGroup Labels]

[MeasureFeelsLikeLabels]
Measure=WebParser
Url=[MeasureWeatherParametersLabels]
StringIndex=1
Group=Labels
Disabled=1

[MeasureWindLabels]
Measure=WebParser
Url=[MeasureWeatherParametersLabels]
StringIndex=3
Group=Labels
Disabled=1

[MeasureHumidityLabels]
Measure=WebParser
Url=[MeasureWeatherParametersLabels]
StringIndex=4
Group=Labels
Disabled=1

[MeasurePressureLabels]
Measure=WebParser
Url=[MeasureWeatherParametersLabels]
StringIndex=6
Group=Labels
Disabled=1

[MeasureVisibilityLabels]
Measure=WebParser
Url=[MeasureWeatherParametersLabels]
StringIndex=8
Group=Labels
Disabled=1


; ========================================
;          WEATHER PARAMETERS UNITS
; ========================================


[MeasureWeatherParametersUnits]
Measure=WebParser
Url=#URL#
RegExp=#WeatherParametersUnits#
UpdateRate=600
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Units][!UpdateMeasureGroup Units]

[MeasureMph]
Measure=WebParser
Url=[MeasureWeatherParametersUnits]
StringIndex=1
Substitute="\u002F":"/"
Group=Units
Disabled=1

[MeasureKmh]
Measure=WebParser
Url=[MeasureWeatherParametersUnits]
StringIndex=2
Substitute="\u002F":"/"
Group=Units
Disabled=1

[MeasureIn]
Measure=WebParser
Url=[MeasureWeatherParametersUnits]
StringIndex=3
Group=Units
Disabled=1

[MeasureMb]
Measure=WebParser
Url=[MeasureWeatherParametersUnits]
StringIndex=4
Group=Units
Disabled=1

[MeasureMile]
Measure=WebParser
Url=[MeasureWeatherParametersUnits]
StringIndex=5
Group=Units
Disabled=1

[MeasureKm]
Measure=WebParser
Url=[MeasureWeatherParametersUnits]
StringIndex=6
Group=Units
Disabled=1




; © 2020 by xxenium



















































