Develop your SCADA Applicati
on based on NodeRED
Course 10 Chapters of General Content [IS.AC002.GC]
HW TO INSTALL NODE-RED
See more information
The first step of this course
HOW TO INSTALL
Just go the official website of NodeJS and download the NodeJS source code or a
If you want to install it from the Linux command line:
Add the repository:
sudo apt install curl
For the latest release, type:
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
For the LTS release, type:
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
Finally to install
sudo apt install nodejs
HOW TO INSTALL NODE-RED:
After installing the NodeJS our computer is ready to install Node-RED. The best way to install Node-RED is to use the node
Type to the command prompt:
npm install -g --unsafe-perm node-red
sudo npm install -g --unsafe perm node-red
Take a look
Once you have installed the Node-RED you are able to proceed with the next chapter of the
and now we will see how to install Node Red on your Raspberry Pi.
Install Node Red on your Raspberry Pi
The content of this chapter is how to install our NodeRED application to one of our Touchberry Pi or other Panels PC based in Linux. This type of applications are very used for our customers because it's a easy and robust way to have a SCADA touch panel next to the installation. Another point that we will focus during the chapter is how to add the autostart capability, so once we torn on the panel the system will show us directly the NodeRED application.
Installation and Upgrade
Depending which version of Panel PC we will have installed different version of Debian or Ubuntu. Upgrade or install the last version of NodeRED into your system typing in the terminal:
Update npm before installing any package using the following comands:
To start NodeRED open a new terminal window and type:
*Closing the terminal or ctrl-c does not stop the NodeRED running. It will continue running in the background.
To stop, type:
Autostart on boot
Probably in your application you will want that the NodeRED start when you turn on your Touchberry Pi. In order to do that we will open the terminal again and type:
sudo systemctl enable nodered.service
and to disable type:
sudo systemctl disable nodered.service
These are the basics to install NodeRED to our Touchberry Pi or other Linux based Industrial Shields panel PC.
If you need additional information about that follow the next link.
Please, answer this Survey and receive the next lesson!
MQTT client for Arduino based PLC as a I/Os module.