Any help is welcome and pkg is attached
Code: Select all
[Variables]
@IncludeVariables=#@#Variables.inc
@IncludeStyles=#@#Styles.inc
UpRate=600
Forecast=(?siU)"getSunV3DailyForecastUrlConfig":.*{"dayOfWeek":.*"(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)",.*"temperatureMax":(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),.*"temperatureMin":(.*),(.*),(.*),(.*),(.*),(.*),(.*),(.*),.*"validTimeLocal":.*"(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)".*"iconCode":(.*),(.*),(.*),.*,(.*),.*,(.*),.*,(.*),.*,(.*),.*,(.*),.*,(.*),.*
URL=https://weather.com/en-GB/weather/tenday/l/1a8af5b9d8971c46dd5a52547f9221e22cd895d8d8639267a87df614d0912830
[MeasureForecast]
Measure=WebParser
Url=#URL#
RegExp=#Forecast#
UpdateRate=#UpRate#
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Forecast][!UpdateMeasureGroup Forecast][!UpdateMeterGroup Forecast][!UpdateMeterGroup Background][!Redraw]
;Measures
[MeasureForecastNightsTempMin1]
Measure=WebParser
Url=[MeasureForecast]
StringIndex=17
DecodeCharacterReference=0
Substitute="[":""
Group=Forecast
Disabled=1
[MeasureForecastNightsTempMin1Calc]
Measure=Calc
Formula=((#MetricUnits#=0) ? Round(((MeasureForecastNightsTempMin1*9/5+32)),0) : Round(MeasureForecastNightsTempMin1,0))
UpdateDivider=-1
DynamicVariables=1
Group=Forecast
Disabled=1
[MeasureForecastDaysTempMax1]
Measure=WebParser
Url=[MeasureForecast]
StringIndex=9
DecodeCharacterReference=0
Substitute="[":""
IfMatch=null
IfMatchAction=[!SetOption "MeterForecastDay1Temp" "Text" "--#deg#%2#deg#"]
IfNotMatchAction=[!SetOption "MeterForecastDay1Temp" "Text" "%1#deg#%2#deg#"]
DynamicVariables=1
Group=Forecast
Disabled=1
[MeasureForecastDaysTempMax1Calc]
Measure=Calc
Formula=((#MetricUnits#=0) ? Round(((MeasureForecastDaysTempMax1*9/5+32)),0) : Round(MeasureForecastDaysTempMax1,0))
UpdateDivider=-1
DynamicVariables=1
Group=Forecast
Disabled=1
[MeterForecastDay1Temp]
Meter=String
MeterStyle=stylePrimaryText | StyleCenterAlign
MeasureName=MeasureForecastDaysTempMax1Calc
MeasureName2=MeasureForecastNightsTempMin1Calc
StringStyle=Normal
InlineSetting=Color | 255,51,51,#colorText2Alpha#
InlinePattern=^(.*)(#deg#).*$
InlineSetting2=Color | 102,178,255,#colorText2Alpha#
InlinePattern2=^.+#deg#(.*)(#deg#)$
FontSize=8
X=(#BgOffset#+10+13)
Y=55
Hidden=(#showForecast12_1# = 0)
Text=%1#deg#%2#deg#
Group=Forecast
UpdateDivider=-1
DynamicVariables=1