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

Installing Node-RED for Raspberry Pi

In this section, we will explain how to set up Node-RED in a Raspberry environment. This procedure is for Raspberry Pi OS Buster (Debian 10.x), but it will work for Raspberry Pi OS Jessie (Debian 8.x) and above.

You can check your version of Raspberry Pi OS easily. Just run the following command on your Terminal:

$ lsb_release -a

If you want to also check the version of Debian you have, please run the following command:

$ cat /etc/debian_version

You have now prepared to install Node-RED. The following script installs Node-RED, including Node.js and npm. This script can also be used for upgrading your application, which you have already installed.

Note

This instruction is subject to change, so it is recommended that you refer to the official documentation as needed.

This script works on Debian-based operating systems, including Ubuntu and Diet-Pi:

$ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers...