CodeCode wrote: ↑September 24th, 2023, 6:54 pm
Well, I am close as setting the MeasureCalcA instead to a set variable #Seconds# to a static number the IfTrueAction is executed.
Not sure but I hope that is closer.
I would suggest using TimeStamp (values in seconds) whenever you want to deal with time or dates.
it is eliminates needing to measure the hours, minutes, and seconds and then create formulas to convert them to seconds values.
Your code to compare the current time of day with a defined time can be done with just 3 measures.
eclectic-tech wrote: ↑September 24th, 2023, 10:36 pm
I would suggest using TimeStamp (values in seconds) whenever you want to deal with time or dates.
it is eliminates needing to measure the hours, minutes, and seconds and then create formulas to convert them to seconds values.
Your code to compare the current time of day with a defined time can be done with just 3 measures.timestamplog.png
[Rainmeter]
Update=1000
[Variables]
THrs1=14
TMin1=25
TSec1=00
; The NUMBER value is the current TiemStamp
[MeasureTimeNow]
Measure=Time
; This returns the current day's time in seconds
[MeasureDaySeconds]
Measure=Calc
Formula=MeasureTimeNow%86400
; This converts the set time variables to seconds
; Then compares the current time (in seconds) to the converted set time (in seconds)
[MeasureTimeSet]
Measure=Calc
Formula=(#THrs1#*3600) + (#TMin1#*60) + #TSec1#
IfCondition=(MeasureDaySeconds=MeasureTimeSet)
IfTrueAction=[#MatchA#]
IfFalseAction=[]
[Bummy]
Meter=String
Alright! I was definitely overcomplicating the timenow value. That was tripping me up quite a bit.
Thank You eclectictech, for taking the time to sort out a solution.