Please see below how to add units to a msg.payload on node red 1. Please inform how to do it on dashboard2
New recommended method is to use the core Node-RED "template" node: Text ui-text | Node-RED Dashboard 2.0
It gives flexibility to render links, custom styling, or, in your case here as a °C symbol after your value
Sorry but it is a bit confused for me. Where I can read more documentation about add UNITS to TEXT DASHBOARD?
Hi @AnakinO7 welcome to the forums.
In core Node-RED, there is a "template" node (the orange one, not ui-template
). It allows you to combine incoming messages and message properties, with text, for example you could write:
{{ msg.payload }}°C
You could then wire this template to the ui-text
node. When passed to the text node, it will render with the °C
units.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.