Set up Node-RED#

Requirements

  1. Something to run node-RED on (we are using a Raspberry Pi)

Guide#

How to install Node-RED#

The documentation for nodeRed is extensive, so follow their guides to get set up

We followed the guide for a Raspberry Pi

In brief, open the Pi terminal

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

It is best to set it to run as a service so that it restarts automatically

sudo systemctl enable nodered.service

Keep in mind that Node-RED will run as a server and potentially be exposed to the open internet. Take care of security

Access Node-RED from another computer#

Find your computers IP address:

hostname -I

Open a web browser and navigate to:

http://<raspberry_pi_ip_address>:1880

Start the Node-RED service:

node-red-start