I post the whole rewritten code, because I changed a few things and it's easier to just copy and paste the whole of it:
Code: Select all
[Rainmeter]
Update=1000
[Metadata]
Author=minhtrimatrix
[Variables]
Location=FRXX0055
Metric=M
Font=Segoe UI
FontColor=255,255,255,255
FontInactive=255,255,255,200
[bg1]
ImageName=bg1.png
Meter=IMAGE
X=33
Y=38
[bg]
ImageName=bg.png
Meter=IMAGE
X=0
Y=30
[MeasureHour]
Measure=Time
Format=%#H
IfCondition=(#CURRENTSECTION#<3)
IfTrueAction=[!SetOption MeterTemp2 MeasureName "MeasureWeatherTemp1"][!SetOption MeterDay2 MeasureName "MeasureWeatherDay1"][!SetOption MeterIcon2 MeasureName "MeasureWeatherNightIcon"][!SetOption MeterTemp3 MeasureName "MeasureWeatherTemp2"][!SetOption MeterDay3 MeasureName "MeasureWeatherDay2"][!SetOption MeterIcon3 MeasureName "MeasureWeatherIcon2"][!UpdateMeterGroup "Day2"][!UpdateMeterGroup "Day3"][!Redraw]
IfFalseAction=[!SetOption MeterTemp2 MeasureName "MeasureWeatherTemp2"][!SetOption MeterDay2 MeasureName "MeasureWeatherDay2"][!SetOption MeterIcon2 MeasureName "MeasureWeatherIcon2"][!SetOption MeterTemp3 MeasureName "MeasureWeatherTemp3"][!SetOption MeterDay3 MeasureName "MeasureWeatherDay3"][!SetOption MeterIcon3 MeasureName "MeasureWeatherIcon3"][!UpdateMeterGroup "Day2"][!UpdateMeterGroup "Day3"][!Redraw]
;--------------
[Current]
Measure=WebParser
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0&locale=fr_FR
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
DynamicVariables=1
[Today]
Measure=WebParser
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=1&locale=fr_FR
RegExp="(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
DynamicVariables=1
[Tomorrow]
Measure=WebParser
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=2&locale=fr_FR
RegExp="(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
DynamicVariables=1
[DayAfter]
Measure=WebParser
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=3&locale=fr_FR
RegExp="(?siU)<day d="2" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
DynamicVariables=1
;----------------
[MeasureWeatherTemp]
Measure=WebParser
Url=[Current]
StringIndex=17
[MeasureWeatherDesc]
Measure=WebParser
Url=[Current]
StringIndex=19
Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "
[MeasureWeatherIcon]
Measure=WebParser
Url=[Current]
StringIndex=20
[MeasureWeatherRealFeel]
Measure=WebParser
Url=[Current]
StringIndex=18
;------------------
[MeasureWeatherDesc1]
Measure=WebParser
Url=[Today]
StringIndex=9
Substitute=" And ":" and "
[MeasureWeatherDay1]
Measure=WebParser
Url=[Today]
StringIndex=2
[MeasureWeatherTemp1]
Measure=WebParser
Url=[Today]
StringIndex=4
Substitute="N/A":"666"
[MeasureWeatherIcon1]
Measure=WebParser
Url=[Today]
StringIndex=8
[CheckNATemp]
Measure=Calc
Formula=[MeasureWeatherTemp1]
IfBelowValue=665
IfBelowAction=[!HideMeter MeterNightTemp1][!HideMeter MeterNightDay1][!HideMeter MeterNightDesc1][!HideMeter MeterNightIcon1][!ShowMeter MeterTemp1][!ShowMeter MeterDay1][!ShowMeter MeterDesc1][!ShowMeter MeterIcon1]
IfEqualValue=666
IfEqualAction=[!HideMeter MeterTemp1][!HideMeter MeterDay1][!HideMeter MeterDesc1][!HideMeter MeterIcon1][!ShowMeter MeterNightTemp1][!ShowMeter MeterNightDay1][!ShowMeter MeterNightDesc1][!ShowMeter MeterNightIcon1]
DynamicVariables=1
;----------------
[MeasureWeatherNightDesc]
Measure=WebParser
Url=[Today]
StringIndex=18
Substitute=" And ":" and "
[MeasureWeatherNightTemp]
Measure=WebParser
Url=[Today]
StringIndex=5
[MeasureWeatherNightIcon]
Measure=WebParser
Url=[Today]
StringIndex=17
;-----------------
[MeasureWeatherDesc2]
Measure=WebParser
Url=[Tomorrow]
StringIndex=8
Substitute=" And ":" and "
[MeasureWeatherDay2]
Measure=WebParser
Url=[Tomorrow]
StringIndex=1
Substitute="Sunday":"Dimanche","Monday":"Lundi","Tuesday":"Mardi","Wednesday":"Mercredi","Thursday":"Jeudi","Friday":"Vendredi","Saturday":"Samedi"
[MeasureWeatherTemp2]
Measure=WebParser
Url=[Tomorrow]
StringIndex=3
[MeasureWeatherIcon2]
Measure=WebParser
Url=[Tomorrow]
StringIndex=7
;------------------
[MeasureWeatherDesc3]
Measure=WebParser
Url=[DayAfter]
StringIndex=8
Substitute=" And ":" and "
[MeasureWeatherDay3]
Measure=WebParser
Url=[DayAfter]
StringIndex=1
Substitute="Sunday":"Dimanche","Monday":"Lundi","Tuesday":"Mardi","Wednesday":"Mercredi","Thursday":"Jeudi","Friday":"Vendredi","Saturday":"Samedi"
[MeasureWeatherTemp3]
Measure=WebParser
Url=[DayAfter]
StringIndex=3
;D+3, weather icon, id=38
[MeasureWeatherIcon3]
Measure=WebParser
Url=[DayAfter]
StringIndex=7
;-------------
[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=68
Y=118
FontColor=#FontColor#
StringStyle=Bold
FontSize=12
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,80
FontFace=#Font#
Antialias=1
Postfix=°C
[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=43
Y=15
FontColor=#FontColor#
FontSize=10
StringAlign=Left
StringStyle=BOLD
FontFace=#Font#
Antialias=1
[MeterDay]
Meter=STRING
X=34
Y=40
FontColor=255,255,255,220
FontSize=8
StringAlign=Left
StringStyle=Bold
FontFace=#Font#
Text=Aujourd'hui
Antialias=1
[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=41
Y=58
;------------
[MeterTemp2]
Meter=STRING
X=142
Y=118
FontColor=#FontColor#
StringStyle=Bold
FontSize=12
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,80
FontFace=#Font#
Antialias=1
Postfix=°C
Group=Day2
[MeterDay2]
Meter=STRING
X=141
Y=40
FontColor=255,255,255,220
FontSize=8
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,0
StringStyle=Bold
FontFace=#Font#
Antialias=1
Group=Day2
[MeterIcon2]
Meter=IMAGE
X=114
Y=58
Group=Day2
;------------
[MeterTemp3]
Meter=STRING
X=212
Y=118
FontColor=#FontColor#
StringStyle=Bold
FontSize=12
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,80
FontFace=#Font#
Antialias=1
Postfix=°C
Group=Day3
[MeterDay3]
Meter=STRING
X=211
Y=40
FontColor=255,255,255,220
FontSize=8
StringAlign=Center
StringEffect=Shadow
FontEffectColor=0,0,0,0
StringStyle=Bold
FontFace=#Font#
Antialias=1
Group=Day3
[MeterIcon3]
Meter=IMAGE
X=185
Y=58
Group=Day3