Home > News > Node-RED, the visual programming tool for Internet of Things
11 May 2020

 

From the beginning of programming, one of the industry’s main challenges has been to facilitate the applications development to simplify the integration between the hardware devices, the software and us, the humans. Thanks to Node-RED we are much closer of this goal. Programming, without programming.

What is Node-RED and what is it for?

Node-RED is an open-source development tool based on visual programming that was created by IBM to connect hardware devices, APIs and online services.

Node-RED is a solid tool, easy to learn, and it does not require any programming knowledge. It has been consolidated as one of the main applications for real-time data management and transformation for IoT and Industry 4.0 solutions.

Node-RED allows to graphically connect predefined blocks, called nodes, to develop a concrete task. The nodes connection, usually a combination of input nodes, processing nodes and output nodes, when wired together, make up a flow.

Among all the available nodes we can find standard protocols as MQTT, REST, Modbus, OPC-UA, Bacnet, Websocket; and third party API integrations as Microsoft Azure, Amazon Web Services, Twitter, Facebook and many more.

 

Node-RED MQTT Modbus Flow Example

 

Where can I install Node-RED?

Node-RED is built on Node.js, taking full advantage of its power and assuring scalability, liability and low hardware requirements. These features allow to run Node-RED in personal computers, cloud servers and low-cost embedded hardware.

If you want to take your first steps in Node-RED you just need to click here to access to all the documentation. Follow step by step how to install the tool on your computer, your cloud services regular provider or your embedded device eManager.

 

Nodes library

The nature of the tool, being open source, and the facility to develop new nodes, come together into a nodes library which grows each day with new community contributions.

Nowadays we can find more than 2500 available nodes in the Node-RED official library, including Smart Home integrations, converters between IoT protocols, geolocation functions, OAuth2 authentication and many more.

 

Hello world in Node-RED

To conclude this article there is no better way than taking your first steps on Node-RED generating the classic Hello world. Below, we show step by step the process to achieve it:

Message creation with Inject node

  1. If you are running Node-RED on your computer, you can access http://127.0.0.1:1880 or whatever address or hostname you’re using
  2. If it is our first time in Node-RED, we will see a flow named Flow 1
  3. On the node palette on the left side of the Node-RED, we will select the Inject node and will drag it onto our flow
  4. In order to edit the node we will double click on it. After that, we will select string on the Payload field and we will write Hello world!
  5. Once we finish the previous steps, we click Done
Node-RED Hello world

Printing our message

  1. In order to add a destination for our message we will select the Debug node. We will click and drag it onto our flow. It’s very important to place it on the right-hand side of the Inject node
  2. To connect both nodes we just need to click the Inject node's output and drag it to the Debug node's input. A wire that links both nodes will be created
  3. Debug node will automatically print the message to the console window as we will see in the next step
Node-RED Hello world

Deployment

  1. In order to start our application you must click on Deploy button
  2. Now click the Debug tab in the right-hand side of the editor window
  3. Finally, to launch our message you will click on the blue button coming out from the left-hand side of the Inject node
  4. “Hello world” will appear on the Debug screen. Welcome to Node-RED!
Node-RED Hello world

 

As PickData, we firmly believe in solutions like Node-RED, because those allow you to focus on what really matters, bring our added value to the solutions and skip losing time between ins and outs of the usual programming.

If you are interested in learning more about topics related to Internet of Things, Big Data, Industry 4.0 and Analytics, do not hesitate to continue reading our publications in the News section.

 

Documentation and other information

    How to start

    Node-RED nodes library

    Hello world

    eManager, the industrial IoT controller with Node-RED integrated

 


Also, don’t forget to follow us on Twitter , Linkedin  and other social networks to be permanently updated.

 

Latest News

eManager, the modular industrial controller with Node-RED integrated

27 May 2020

eManager is an OEM industrial controller which is equipped with a high-performance control unit with a Linux Yocto embedded. The device includes RS-232/485 serial communications and an Ethernet 10/100 port. Two versions are available, eManager and eManager Pro, with different options of CPU clock, flash storage or RAM memory. Node-RED software tool is integrated on eManager Pro version.

Node-RED, the visual programming tool for Internet of Things

11 May 2020

From the beginning of programming, one of the industry’s main challenges has been to facilitate the applications development to simplify the integration between the hardware devices, the software and us, the humans. Thanks to Node-RED we are much closer of this goal. Programming, without programming.

eMOD, a new concept of customized industrial device without R&D costs

16 Apr 2020

We are manufacturers, and we know the effort, time and costs involved in creating a customized and certified industrial hardware from ground zero. eMOD is a new hardware system that brings a solution to all these needs. We have evolved the modularity concept to enable the creation of fully customized industrial devices without R&D costs.

Advanced comparative analysis to optimize the management of multiple facilities

25 Mar 2020

It is well know that the more facilities you have to handle, the less time you have to manage each one. In addition, when you exceed a number of establishments, hotels or restaurants, you are no longer able to separately analyze each facility. Nowadays it is as much important to capture your installations’ data as knowing how to manage it in an efficient way. This process is based on filtering this data to perform a fast and effective analysis.

The success of measuring consumption and times of your factory's production processes

20 Jan 2020

2020 has begun. A year where the business world will be more competitive than ever and where increasing the productivity without major expenses will be a need. We must be aware that if we don’t measure, we won’t get data, and if we don’t get data, we won’t take the right decisions.

Merry Christmas and happy New Year 2020

19 Dec 2019

We would like to wish all our employees, customers and partners a wonderful Christmas and a brilliant start into a successful New Year 2020!

The importance of the automation of your HVAC system

13 Dec 2019

In an HVAC system installation, including domestic, industrial or office buildings, the energy efficiency consists in generating the best comfort for the user with the lowest electric consumption. This efficiency must be present on the management of the temperature setpoints, the distribution of cold/heat and the scheduled regulation of the system.

MQTT vs CoAP, the battle to become the best IoT protocol

21 Oct 2019

MQTT and CoAP both are the most popular Internet of Things protocols. During this post, we will talk about pros and cons of each one.

PickData will be at IoT Solutions World Congress 2019

09 Oct 2019

PickData will attend to IoT Solutions World Congress 2019, the leading event in Industrial Internet of Things sector in Europe, taking place from October 29th to 31th. This year you will find us at Stand 351 of Hall 2, organized by Ajuntament de Barcelona and ACCIÓ.

The best technologies for IoT applications

30 Jul 2019

The new paradigm of IoT devices, that require low bandwidth and power consumption, has facilitated the emergence of new wireless technologies that completely fit the needs of these devices. We choose the best ones and we compare it.

Contact

  • info@pickdata.net
  •   +34 935 117 505
  •   C/ Innovació, 3 – Polígono Industrial Can Mitjans -

08232 Viladecavalls (Barcelona)

Copyright © 2019 PickData

                   Privacy policy

                  Cookies policy