This article explains how to install Node-RED on the Roadrunner board running Raspbian Bulleye Linux distribution
To install Node-RED on the Roadrunner board type this command at Linux prompt:
wget https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered
chmod +x update-nodejs-and-nodered
./update-nodejs-and-nodered --confirm-install --skip-pi
Enable the systemd service by typing:
sudo systemctl daemon-reload
sudo systemctl enable nodered.service
Then start it:
sudo systemctl start nodered.service
Now open with a browser this URL:
node-red-contrib-roadrunner is a Node-RED node created to manage the RoadRunner GPIO
Install node-red-admin by typing:
sudo npm install -g node-red-admin
Create a password hash:
node-red-admin hash-pw
edit ~/.node-red/settings.js
nano ~/.node-red/settings.js
changes the module.exports session:
module.exports = {
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "put the password hash here",
permissions: "*"
}]
},
Restart NodeRED:
sudo systemctl restart node-red.service
To check any errors generated by NodeRED type:
sudo journalctl -f -u node-red -o cat