Book Image

Practical Node-RED Programming

By : Taiji Hagino
5 (1)
Book Image

Practical Node-RED Programming

5 (1)
By: Taiji Hagino

Overview of this book

Node-RED is a free and open source flow-based programming tool used to handle IoT data that allows programmers of any level to interconnect physical I/O, cloud-based systems, databases, and APIs to build web applications without code. Practical Node-RED Programming is a comprehensive introduction for anyone looking to get up to speed with the Node-RED ecosystem in no time. Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will help you to become well versed in the foundations of Node-RED. You’ll learn how to use Node-RED to handle IoT data and build web applications without having to write complex code. Once you’ve covered the basics, you’ll explore various visual programming techniques and find out how to make sample flows as you cover web development, IoT development, and cloud service connections, and finally build useful real-world applications. By the end of this book, you’ll have learned how to use Node-RED to develop a real-world application from scratch, which can then be implemented in your business.
Table of Contents (19 chapters)
1
Section 1: Node-RED Basics
6
Section 2: Mastering Node-RED
11
Section 3: Practical Matters

Subscribing and visualizing data on the cloud-side Node-RED

In this section, we will see how to visualize the received data with Node-RED on the cloud side. This uses one of the dashboard nodes as we learned in Chapter 6, Implementing Node-RED in the Cloud, but this time, we'll choose Gauge's UI to make it look a little better.

The cloud-side Node-RED used this time runs on the IBM Cloud (PaaS), but CloudMQTT, which created the service as an MQTT broker earlier, is a cloud service that differs from the IBM Cloud.

In this chapter, we will learn that an MQTT broker exists so that it can be accessed from various places, and that both publishers (data distributors) and subscribers (data receivers) can use it without being aware of where it is.

Preparing Node-RED on the IBM Cloud

Now, let's create a Node-RED flow connected to CloudMQTT by performing the following steps. Here, we will use Node-RED on the IBM Cloud. Please note that it is not Node-RED on the Raspberry...