@mschaeffler/node-red-format

1.1.4 • Public • Published

@mschaeffler/node-red-format

Nodes to format simnple data.

image of nodes

If the msg property invalid is present in the message, all nodes ignore the message.

Install

$ npm install @mschaeffler/node-red-format

formNumber

Formats the payload as a number.

Input

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

Output

msg. type description
payload string formated value

Parameters

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.

Example Flow

example flow

Author

Mathias Schäffler

License

LGPL-2.1

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @mschaeffler/node-red-format

      Weekly Downloads

      70

      Version

      1.1.4

      License

      LGPL-2.1

      Unpacked Size

      64.8 kB

      Total Files

      9

      Last publish

      Collaborators

      • mschaeffler