@sinch/node-red-sinch-utility
v1.0.1
Published
Package of Sinch helper nodes for Node-RED
Downloads
4
Keywords
Readme
@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
- Environment variable passed from subflow: /{{env.some-variable}}
- Variable from global context: /{{global.some-variable}}
- 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
Copyright and license
Copyright Sinch AB, https://sinch.com under the Apache 2.0 license.