Roadrunner technical documentation
Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.
It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click.
The Node-RED comunity provides a script to install Node.js, npm and Node-RED onto Debian or Raspberry Pi OS.
This script can be used also for the RoadRunner. The script can also be used to upgrade an existing install when a new release is available.
Running the following command will download and run the script:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
The install script for the Pi also sets it up to run as a service. This means it can run in the background and be enabled to automatically start on boot.
The following commands are provided to work with the service:
If you want Node-RED to run when the Pi is turned on, or re-booted, you can enable the service to autostart by running the command:
sudo systemctl enable nodered.service
To disable the service, run the command:
sudo systemctl disable nodered.service
Once Node-RED is running you can access the editor in a browser: http://roadrunner_ip_address:1880
Refer to the rich set of tutorial available on Node-RED website to learn how to use it
To install this node type this commands:
sudo apt update
sudo apt install python3-libgpiod
cd ~/.node-red/
npm install node-red-contrib-roadrunner
If you are running Node-RED as a normal user, be sure to give the necessary permissions to /dev/gpio0. One simple way is to save this text:
KERNEL=="gpiochip0", MODE="0666"
inside a file called:
/etc/udev/rules.d/60-gpiochip.rules
Then restart Node-RED:
sudo systemctl restart nodered.service
or
node-red-restart