Basically:
MeasureToday is todays high temp, MeasureTom is tomorrows high temp. i want to check how much warmer or cooler today is going to be compared to tomorrow.. if it's over a couple degrees warmer, but less than 5-6 degrees it's just "warmer", if there is more than 10 degree difference, it's "much warmer".
would like to do the same to check if it's going be cooler instead, or much cooler and maybe get the temp difference, but i can't even get the warmer part working
[MeasureTemp]
Measure=Calc
IfCondition=(MeasureToday - MeasureTom > 0) && (MeasureToday - MeasureTom < 6)
IfTrueAction=[!SetOption MeterXYZ Text "It's warmer"]
IfCondition2=(MeasureToday - MeasureTom > 0) && (MeasureToday - MeasureTom >= 6)
IfTrueAction2=[!SetOption MeterXYZ Text "It's much warmer"]
IfCondition3=(MeasureToday - MeasureTom < 0) && (Abs(MeasureToday - MeasureTom) < 6)
IfTrueAction3=[!SetOption MeterXYZ Text "It's cooler"]
IfCondition4=(MeasureToday - MeasureTom < 0) && (Abs(MeasureToday - MeasureTom) >= 6)
IfTrueAction4=[!SetOption MeterXYZ Text "It's much cooler"]
IfCondition5=MeasureToday - MeasureTom = 0
IfTrueAction5=[!SetOption MeterXYZ Text "It's the same"]
I use the Abs() function https://docs.rainmeter.net/manual/formulas/#Functions just to simplify testing the "difference" even when the difference is negative without having to do a lot of thinking about negative or positive.
This could be at least visually simplified and made a little more clear with:
thanks! maybe you can help me on another similar query with ifmatch..
is this correct usage? MeasureAlertsFeed in forumla is Stringindex from webparser which may look like:
<title>Flash Flood Watch issued May 22 at 4:09PM CDT until May 23 at 1:00AM CDT by NWS</title>
i want to check if the entries are Watches/Warnings, and if so, change the font color.. but it's always returns false. how do you search a string for something. in this example, i want to search a StringIndex for "Watch" or "Warning" and change the meter text to yellow.