You will need to create an "override" measure in your skin for that measure from the template. This is because you DO NOT want to ever change anything in the @Include .inc file.
In the About/Skins window, the returned Number and String for @CurrentTemperature is at 14, but the colour doesn't change.
I'm thinking that the IfCondition can't be used on a Calc Measure? So I tried to create another Measure that directly measured the @CurrentTemperature for the IfCondition, but this failed to change colour also. Any ideas?
It doesn't matter what the value of [MeasureSetColor] is, it's not being used anywhere. It's just a "host" for the IfConditions, which can be any measure. The IfConditions explicitly ask for the value of some defined measure(s), so they are not dependent on any value on the measure they are on.
If you are having trouble with what you have, all I can suggest is that you be very certain about the name of the CurrentTempRound1 measure, the values of the #TempColour1# and such variables, and that you don't perhaps already have a measure called [MeasureTemp], which would cause a conflict.
Ok, I don't think there's any duplicate Measures, but I renamed the new one mTemp just to be sure.
I copied your code to see if that would work, as mine doesn't, and that still isn't working.
After looking at yours, why would my original code not work?
sl23 wrote: ↑September 18th, 2021, 4:23 pm
Ok, I don't think there's any duplicate Measures, but I renamed the new one mTemp just to be sure.
I copied your code to see if that would work, as mine doesn't, and that still isn't working.
After looking at yours, why would my original code not work?
What is the string value being reported in the log for your skin as the @CurrentTemperature?
A few errors '@CurrentTemperature' is not valid, you are checking the value of a measure,
so it should be IfCondition=([@CurrentTemperature] <= 19).
Better yet, you already defined the value of the [mNewTemp] measure in the Formula as the string value of [@CurrentTemperature]. You could use that in your IfConditions: IfCondition=([mNewTemp] <= 19)
With that change you should see the color change when the temp does, if you have DynamicVariables=1 on the Roundline meter.
eclectic-tech wrote: ↑September 18th, 2021, 5:14 pm
Better yet, you already defined the value of the [mNewTemp] measure in the Formula as the string value of [@CurrentTemperature]. You could use that in your IfConditions: IfCondition=([mNewTemp] <= 19)
In fact, since in the Formula option already is used the string value, there is not needed to use the name of the measure as a section variable. IfCondition=(mNewTemp <= 19) (no brackets) is perfectly right and does work.