node-red-contrib-display-property 1.0.0

A simple node that displays as its status the value of a message property that passes the node and optional the date/time when the message passed.

npm install node-red-contrib-display-property

npm downloads

node-red-contirb-display-property

A simple node that displays as its status the value of a message property that passes the node. Optional it can be configured to also show the daten and/or the time when the message passed. The intention of this node is to give you a better overview of the messages that pass your flows and support you debugging your flows by easily displaying the content of massage properties.

Quick Start

Install from your Node-RED Manage Palette or using npm:

npm install node-red-contrib-display-property

Example

grafik

[{"id":"d2a1b91.5e11c48","type":"display property","z":"f30078ab.f99208","name":"","property":"","x":500,"y":380,"wires":[[]]},{"id":"72e1bfe.11b244","type":"inject","z":"f30078ab.f99208","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"This is my payload","payloadType":"str","x":290,"y":380,"wires":[["d2a1b91.5e11c48"]]}]

Help

This documentation is also available in the help section of the node. This node accepts any massage at the input and passes exactly the same massage to the output. It can be configured to display the content of a certain property (default is msg.payload) of the message that passes the node. This content will be displayed as the status of the node along the the daten and/or time when it passed. My intention for creating this little node was to get a better overview of what values running throug my nodes without the need to put debug nodes everywhere. So this can also be handy for debugging your flows by displaying the content of massages property.

Two options to display the value of a property:

You can either provide the name of the property you want to display in the configuration of the node or you can pass the name of the property you want to display as msg.property to the node.

To display for example the content of msg.topic you have two options:

  1. add msg.topic as the property in the configuration of the node, or
  2. pass a message with msg.property and content msg.topic to the node.

No need to mention that you can also display any other properties :-)

What else should you know about this node?

If you pass a msg.property, this will override the settings in the node-configuration. If the message does not have a property, either configured in the node or passed via msg.property, the content of msg.payload (the default) will be displayed instead.

Bugs and feature requests

Please report any issues or enhancement requests at GitHub.

Node Info

Version: 1.0.0
Updated 2 years, 9 months ago
License: MIT
Rating: 5.0 1

Actions

Rate:

Downloads

24 in the last week

Nodes

  • display property

Keywords

  • node-red
  • property
  • debug
  • display
  • status

Maintainers