1.0.1 • Published 9 months ago

@sinch/node-red-sinch-utility v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@sinch/node-red-sinch-utility

A package containing an enhanced HTTP In node for Node-RED, compatible with the other Node-RED's http nodes. This node enables to configure the inbound url to be dynamicly set based on a subflow environment variable or a global/flow context variable.

Example urls

  1. Environment variable passed from subflow: /{{env.some-variable}}
  2. Variable from global context: /{{global.some-variable}}
  3. Variable from flow context: /{{flow.some-variable}}

Installation

The first step is to install Node-RED.

$ sudo npm install -g node-red

Compatible with Node-Red version 3.x.x and later

The second step is to install the package. You can either install it directly using the Palette Manager. Instructions can be found here: Node-RED.

Or install manually using npm:

Navigate to the Node-RED installation and install the package:

$ cd ~/.node-red
$ npm install @sinch/node-red-sinch-utility

Run Node-RED locally:

$ node-red

This will start a server for Node-RED on http://127.0.0.1:1880/.

If the installation of the node package was successful, the Sinch Utility nodes should be available in the node palette to the left, under the category "Sinch Utility".

Example flow

Flow link

Copyright and license

Copyright Sinch AB, https://sinch.com under the Apache 2.0 license.