For the record, it would help and make things much easier if you'd use the full datetime in a single Time measure, e.g:and especially if you'd retrieve the full datetime in a single WebParser and from a single file, if your scenario permits, e.g.:Then, after passing the last datetime as a timestamp string to a measure like the below once the file data is retrieved, compare the two timestamp values as desired, and act accordingly in an IfCondition, e.g.:The above are not tested, assume you have Update=1000 in the [Rainmeter] section of your skin, and are only meant to provide you with a direction on how to approach this. For a more accurate or detailed advice, you'd have to provide more details on your desired and existent parts too, like balala mentioned.
P.S. Having separated date and time measures is possible too, it's just that you'd need to eventually concatenate them when setting the Timestamp of [MeasureLastDateTime] to a full and valid datetime, which would involve waiting for both your current [MeasureLastDate] and [MeasureLastTime] to retrieve the data from their respective files, hence why having both the date and time in one place / location would be easier / ideal.
Code:
[MeasureCurrentDateTime]Measure=TimeFormat=%Y-%m-%d %H:%M:%SDynamicVariables=1
Code:
[MeasureFileData]Measure=WebParserURL=#PATH_3#RegExp=(?siU)^\s*(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s*$StringIndex=1UpdateRate=5FinishAction=[!SetOption MeasureLastDateTime Timestamp "[MeasureFileData]"][!EnableMeasure MeasureLastDateTime][!UpdateMeasure MeasureLastDateTime]DynamicVariables=1
Code:
[MeasureLastDateTime]Disabled=1Measure=TimeTimestamp=1601-01-01 00:00:00TimeStampFormat=%Y-%m-%d %H:%M:%SFormat=%Y-%m-%d %H:%M:%SUpdateDivider=-1IfCondition=([MeasureCurrentDateTime:Timestamp]-[MeasureLastDateTime:Timestamp]>0) && ([MeasureCurrentDateTime:Timestamp]-[MeasureLastDateTime:Timestamp]<=15*60)IfTrueAction=[!SetOption MeterYourText FontColor "0,255,0,255"][!UpdateMeter MeterYourText][!Redraw]IfFalseAction=[!SetOption MeterYourText FontColor "255,0,0,255"][!UpdateMeter MeterYourText][!Redraw]IfConditionMode=1DynamicVariables=1
P.S. Having separated date and time measures is possible too, it's just that you'd need to eventually concatenate them when setting the Timestamp of [MeasureLastDateTime] to a full and valid datetime, which would involve waiting for both your current [MeasureLastDate] and [MeasureLastTime] to retrieve the data from their respective files, hence why having both the date and time in one place / location would be easier / ideal.
Statistics: Posted by Yincognito — Yesterday, 9:08 pm