1. WeatherCheck updates the first time as expected.
2. LastCheck is enabled.
3. LastCheck returns 1 from the formula, activating the IfEqualAction.
4. LastCheck executes the IfEqualAction, replacing the variables with the current time and disabling itself.
5. 15 minutes passes and WeatherCheck runs again.
6. LastCheck is enabled again.
7. LastCheck returns 1 from the formula, theoretically activating the IfEqualAction.
8. LastCheck fails to execute the IfEqualAction.
9. Subsequently, LastCheck remains enabled indefinitely without actually achieving anything.
Code: Select all
[Rainmeter]
Update=1000
[Variables]
Country=Australia
City=Melbourne
APIKey=My API Key
WeatherCheckHour=99
WeatherCheckMinute=99
[TH]
Measure=Time
Format=%H
[TM]
Measure=Time
Format=%M
[WeatherCheck]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=900
Url=http://api.wunderground.com/api/#APIKey#/conditions/forecast/q/#Country#/#City#.xml
RegExp="(?siU).*<temp_f>(.*)</temp_f>.*<temp_c>(.*)</temp_c>.*<icon>(.*)</icon>.*<high>.*<fahrenheit>(.*)</fahrenheit>.*<celsius>(.*)</celsius>.*</high>.*<low>.*<fahrenheit>(.*)</fahrenheit>.*<celsius>(.*)</celsius>.*</low>.*<conditions>(.*)</conditions>"
FinishAction=!EnableMeasure LastCheck
DynamicVariables=1
[LastCheck]
Measure=calc
Formula=(1+1=2) ? 1:0
IfEqualValue=1
IfEqualAction=!Execute [!SetVariable WeatherCheckHour [TH]] [!SetVariable WeatherCheckMinute [TM]] [!DisableMeasure LastCheck]
DynamicVariables=1
Disabled=1
Any help would be greatly appreciated!