Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Color change on Measure Bar
#1
Dear Admin.

How do I change the color (Green, Amber and Red) on the measuring bar as a picture? 
For example, if the temperature is between 30C to 35C it's green and when the temperature is between 36C to 40C is Amber and 41C onwards is Red.

I can't find what the code is and where to place it. 
Could you please show some examples?

Thank you
Subas


Attached Files Image(s)
   
Thank You

Regards
Subas
Reply
#2
is this part in Node-Red?
Reply
#3
All four colors for stripes can be customized. In addition, there is three options to modify the colors of the level bar. Multiple segments - Colors tied to stripes according to sector values. Single color bar - Single value-based color for all active stripes. Interpolated colors - Colors interpolated from normal to high color. If you choose Multiple segments for your stripe colors, you can optionally use the Peak mode.
       
Reply
#4
Dear Admin.

I understand the level part in Node-Red. 
But where do you key in the criteria if I want to change the color based on specific criteria?

28 deg to 35 deg color shown on the level is Green
36 deg to 40 deg color shown on the level is Yellow
41 deg and above color shown on the level is Red

Please advise as the screenshot you have provided does not show where to insert the above criteria?

Regards
Subas
Thank You

Regards
Subas
Reply
#5
Examples of msg.control usage
msg.control = {min:10, max:80} to change min and max values. msg.control = {min:10, max:80, seg1:30, seg2:60} to change min, max and segments all together. msg.control = {seg2:60} to change high segment value only.

details about level node:
https://flows.nodered.org/node/node-red-...b-ui-level
Reply
#6
Dear Admin.

Thank you for all the explanation. 
I will try it out and feedback if any issues.
Thank You

Regards
Subas
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)