Nodes to format simnple data.
If the msg property invalid
is present in the message, all nodes ignore the message.
$ npm install @mschaeffler/node-red-format
Formats the payload as a number.
The message property to be used as payload can be defined with the Property
property.
This value is then
- if the value is a number: converted to a string according to the parameters and a unit is added
- in other cases: been sent out unmodified
msg. | type | description |
---|---|---|
payload | string | formated value |
config | type | description |
---|---|---|
Property | string | defines the message property to be used as payload. |
Einheit | string | unit of the value. |
Tausender | string | character to group the number in segments of 3 digits. |
Dezimal | string | character to decimal separation. |
Stellen | number | number of digits after the decimal point. |
Status | boolean | shows the actual value as a node status. |
Filter | boolean | block sending of unchanged payload . |
LGPL-2.1