This tutorial shows how to install Node-Red on a Raspberry Pi Compute Module to be used in a supporting Temco product. Node-Red is, as it’s web-site says “a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.”
The initial installation of the Raspberry Pi Compute Module can be seen here. In this tutorial I will show how to install Node-Red and setup additional nodes - the nodes provide additional functionality.
After installing the Raspbian OS, doing an update and upgrade - and enabling SSH, the Compute Module can be accessed remotely using Putty (or another SSH client). To find the IP address of the device I use Angry IP Scanner to scan my network and find the IP address, this could also be done by connecting a display to the device and using ‘ifconfig’ to display the network settings.
To install Node Red on Raspberry Pu the recommended method is to run the script - enter the following command to do this;
This will download the script and run it. It will ask for confirmation that you want to install first, and then ask if you want to install additional nodes - enter “y” for both and press enter.
Above image shows the installation - if any segments of the installation fail it is recommended to retry the installation.
After the installation of node-red has completed in order to run it each time on startup enter the following command;
sudo systemctl enable nodered.service
to reboot the system.
Once it reboots you should be able to access Red-Node by entering the IP address of the Raspberry Pi in a browser (Firefox or Chrome are recommended) - followed by :1880 - ie 192.168.1.19:1880 - The following image shows the Node-Red user interface you will see in the browser.
In order to install additional ‘nodes’ click on the menu button in the upper right corner (3 lines) then select ‘Manage Palette’;
This will bring up the interface for removing or disabling existing nodes, or installing new nodes;
Click on the ‘Install’ tab and enter the name of. or part of the name of the node you wish to install in the search box;
Recommended nodes to install are;
These are the nodes that I am currently using to create the tutorials and user interface that I will be designing for use with Raspberry Pi enabled Temco products.