1.0.0 • Published 5 months ago

@sammachin/node-red-dragonpbx v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

node-red-contrib-json-appender

A Node-RED node that appends a JSON object to an array in msg.callScript.

Installation

Run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-json-appender

Usage

  1. Add the "JSON Appender" node to your flow.
  2. Configure the JSON object to append.
  3. Set whether to create the array if it's missing.
  4. Connect the node to your flow.

Features

  • Append a predefined JSON object to an array in msg.callScript
  • Option to create the array if it doesn't exist
  • Validation of the JSON object during configuration

Example

Here's a basic example of how to use this node:

  1. Inject a message with a payload
  2. Pass it through the JSON Appender node configured with your desired JSON object
  3. The JSON object will be appended to msg.callScript

License

MIT

1.0.0

5 months ago