Node-RED Information

Links to Documentation

Introduction

Intallation and running

How to install Node-RED

Before installing Node-RED in a Linux or Windows Machine, you must have a working installation of Node.js. It is recommend the use of Node.js LTS 8.x.

Installation command:

  • Linux: $ sudo npm install -g --unsafe-perm node-red
  • Windows: npm install -g --unsafe-perm node-red

More Information about the installation:

Linux: https://nodered.org/docs/getting-started/installation

Windows: https://nodered.org/docs/platforms/windows

Other Alternatives:

Deploy Node-red using a Docker Container: https://nodered.org/docs/platforms/docker

We strongly suggest to use Linux for testing and Docker

Running Node-RED

If you have installed Node-RED as a global npm package, you can use the node-red command:

$ node-red

You can then access the Node-RED editor by pointing your browser at http://localhost:1880.

More Information: https://nodered.org/docs/getting-started/running

Usage of Flows

Examples of creation of flows:

https://nodered.org/docs/getting-started/first-flow https://nodered.org/docs/getting-started/second-flow

Adding more nodes

Node-RED comes with a core set of useful nodes, but there are a growing number of additional nodes available for install from both the Node-RED project as well as the wider community.

https://nodered.org/docs/getting-started/adding-nodes

INTER-IOT Example

Using the INTER-IOT example node

Install the node available in the folder "node-red-contrib-position-simu". For that, download this repository and enter the following command from the root of this repository:

  • npm install -g node-red-contrib-position-simu

You can find a flow to use as example of the use of this node in the file "flowexample.txt"

Official information about create new nodes

You can use the code of the "node-red-contrib-position-simu" node as example to develop a new set of nodes. But there are different ways to create nodes. The official documentation provided by Node-RED is the following link: https://nodered.org/docs/creating-nodes/

Interesting topics

I want to test NODE-RED but I don't want to test it locally, where can I test Node-red in the cloud without install?

Examples of cloud instances based in node-red. They do not allow all the functionality of a local node-RED installation, although they have some own nodes. * Pagenodes: https://pagenodes.com/# (without login)

Initial example

Example of an available node, developed by the partners of Inter-IOT: https://www.npmjs.com/package/@interiot/node-red-contrib-fiware-sth

Is a good example of how to develop a node.

More information:

Examples of use of Node-red in IoT Platforms: