Dynamically change Gauge Units

Hi All,

I have searched the boards for a solution to my problem but I have not seen any examples that I understand how to use.

I am receiving temperature data along with a unit of measure (F or C). I would like to change the Gauge units to match. Is this possible and how?

I am really new to this so any examples would be useful.

Thanks

Here is one way

example

[{"id":"a005a8da.bc11d8","type":"ui_gauge","z":"c74669a0.6a34f8","name":"","group":"8b5cde76.edd58","order":4,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"","format":"{{payload}}  {{unit}}","min":0,"max":"40","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":300,"y":4760,"wires":[]},{"id":"6e1dad61.9521f4","type":"inject","z":"c74669a0.6a34f8","name":"","props":[{"p":"payload"},{"p":"unit","v":"°C","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"24","payloadType":"num","x":120,"y":4800,"wires":[["a005a8da.bc11d8"]]},{"id":"8b5cde76.edd58","type":"ui_group","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"12","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
1 Like

This was a great example. Thanks!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.