Code: Select all
[MeasureCurrentTimeToUnix]
Measure=Time
Timestamp=([MeasureCurrentTimeToUnix]-11644473600)
DynamicVariables=1
Code: Select all
[MeasureCurrentTimeToUnix]
Measure=Time
Timestamp=([MeasureCurrentTimeToUnix]-11644473600)
DynamicVariables=1
Code: Select all
[Variables]
UnixTime=1619766794
[InfoUnixTime]
Measure=WebParser
URL=https://converter.by/unixtime
UpdateRate=#UpdateTime#
RegExp="(?siU)<span class="btn btn-dark-green current-unix-time" id="current-unix-time">(.*)</span>"
UpdateDivider=-1
DynamicVariables=1
[MeasureInfoUnixTime]
Measure=WebParser
URL=[InfoUnixTime]
StringIndex=1
;RegExpSubstitute=1
DynamicVariables=1
UpdateDivider=-1
[Meter]
Meter=String
IfCondition=(#UnixTime# > [MeasureInfoUnixTime])
IfTrueAction=[!RainmeterHideMeter MeterIconEmpty][!RainmeterShowMeter MeterIconFull][!RainmeterShowMeter MeterCount]
IfFalseAction=[!RainmeterHideMeter MeterIconFull][!RainmeterShowMeter MeterIconEmpty][!RainmeterHideMeter MeterCount]
DynamicVariables=1
Code: Select all
[Meter]
Code: Select all
[MeasureCurrentTime]
Measure=Time
[MeasureCurrentTimeToUnix]
Measure=Calc
Formula=([MeasureCurrentTime:Timestamp]-11644473600)
DynamicVariables=1
Please tell me how to make the last element to work?
Code: Select all
IfCondition==(#UnixTime# > [MeasureInfoUnixTime])
IfTrueAction=[!RainmeterHideMeter MeterIconEmpty][!RainmeterShowMeter MeterIconFull][!Rain gauge counter]
IfFalseAction=[!RainmeterHideMeter MeterIconFull][!RainmeterShowMeter MeterIconEmpty][!Precipitation counter]
Dynamic variables=1
We will get there, but I WANT to understand what you are trying to do, and what values you want to compare first. There is almost nothing about that IfCondition that is right, but we will get to that. It will be easy to fix.MaestroSky wrote: ↑April 30th, 2021, 11:15 am Please tell me how to make the last element to work?
Code: Select all
IfCondition==(#UnixTime# > [MeasureInfoUnixTime]) IfTrueAction=[!RainmeterHideMeter MeterIconEmpty][!RainmeterShowMeter MeterIconFull][!Rain gauge counter] IfFalseAction=[!RainmeterHideMeter MeterIconFull][!RainmeterShowMeter MeterIconEmpty][!Precipitation counter] Dynamic variables=1
Code: Select all
[Variables]
UnixTime=1619766794
[MeasureCurrentTime]
Measure=Time
DynamicVariables=1
UpdateDivider=-1
[MeasureCurrentTimeToUnix]
Measure=Calc
Formula=([MeasureCurrentTime:Timestamp]-11644473600)
IfCondition=#UnixTime# > MeasureCurrentTime
IfTrueAction=[!RainmeterHideMeter MeterIconEmpty][!RainmeterShowMeter MeterIconFull][!RainmeterShowMeter MeterCount]
IfFalseAction=[!RainmeterHideMeter MeterIconFull][!RainmeterShowMeter MeterIconEmpty][!RainmeterHideMeter MeterCount]
DynamicVariables=1
Ok, a few things I would point out.MaestroSky wrote: ↑April 30th, 2021, 11:26 am OK, I get you
I'm pointing this out now:
And thanks to you, I did it.Code: Select all
[Variables] UnixTime=1619766794 [MeasureCurrentTime] Measure=Time DynamicVariables=1 UpdateDivider=-1 [MeasureCurrentTimeToUnix] Measure=Calc Formula=([MeasureCurrentTime:Timestamp]-11644473600) DynamicVariables=1 [MeasureCurrentTimeToUnix] Measure=Calc Formula=([MeasureCurrentTime:Timestamp]-11644473600) IfCondition=#UnixTime# > MeasureInfoUnixTime IfTrueAction=[!RainmeterHideMeter MeterIconEmpty][!RainmeterShowMeter MeterIconFull][!RainmeterShowMeter MeterCount] IfFalseAction=[!RainmeterHideMeter MeterIconFull][!RainmeterShowMeter MeterIconEmpty][!RainmeterHideMeter MeterCount] DynamicVariables=1
"Sensei, what is the truth?
It lies under your feet but you don't notice it or you don't want to see it"
Code: Select all
[Variables]
UnixTime=1619766794
[MeasureCurrentTime]
Measure=Time
DynamicVariables=1
UpdateDivider=-1
[MeasureCurrentTimeToUnix]
Measure=Calc
Formula=([MeasureCurrentTime:Timestamp]-11644473600)
DynamicVariables=1
[MeasureCurrentTimeToUnix]
Measure=Calc
Formula=([MeasureCurrentTime:Timestamp]-11644473600)
IfCondition=#UnixTime# > MeasureInfoUnixTime
IfTrueAction=[!RainmeterHideMeter MeterIconEmpty][!RainmeterShowMeter MeterIconFull][!RainmeterShowMeter MeterCount]
IfFalseAction=[!RainmeterHideMeter MeterIconFull][!RainmeterShowMeter MeterIconEmpty][!RainmeterHideMeter MeterCount]
DynamicVariables=1