I have been working on a skin that displays temperature values from a solar heat project (discussed in earlier threads)
which works quite well. I would however like to make a change so that the Text color will change based on the value of multiple measures. To that end I have modified one of my measure scripts to this:
In particular, do I the greater than sign in the correct place for this measure (> MeasureTank_R2) ?
I am confident it is correct for the first measure, just not sure about the second. I will also make changes to other parts of the measure, but my concern at the moment is what I have described above.
The tests on either side of a logical && (AND) or || (OR) must be complete comparisons, and enclosed in (parentheses).
P.S. [!Redraw] in and of itself does nothing useful... What you want is [!UpdateMeter MeterTank_R1][!Redraw].
What !Redraw does is "redraw the skin with the current state of all meters". While you have used !SetOption to change the FontColor option of MeterTank_R1, the meter has not been "updated" to apply the change made to the option. So first update the meter, then redraw the skin...
Assuming I have that Measure correct, I have a dilemma with my third Measurer. In the third, I need to have 3 parameters and not two. The first two parameters relate to the third Measure itself but the third parameter relates to the second Measure. If you could give me a nudge in the right direction, I would appreciate it.
BTW, the best way to "test" these conditions is to comment out the WebParser bit and temporarily make one or more Calc measure(s) that you can just force to a value.
Thanks again for your reply and especially for the additional "test & tune" tips. Much appreciated!
They will prove to be a big help I am sure, as I cannot run any tests directly as I did initially. The Arduino micro controller/server, is now installed in the field running on a local network, therefore I cannot access it from my location.
Any changes to the skin script have to be forwarded (emailed) and updated by someone else (my Father... which in of itself is proving to be a challenge ..)