This is a quick guide for installing Node-RED and using it with your EdgePi device.
edgepi-rpc-server
daemon installed and running on your EdgePi. If it is not already installed, please follow the steps on the EdgePi RPC Server Setup guide. Upgrade it to the latest version:sudo apt update && sudo apt install --upgrade edgepi-rpc-server
Install Node.js, npm, and Node-RED with this single command. For more details, visit Node-RED's Raspberry Pi setup guide.
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --confirm-install --confirm-pi --restart --update-nodes --node20 --nodered-user=pi --no-init
To check if CMake is already installed:
cmake --version
To install CMake:
sudo apt update
sudo apt install cmake
node-red admin install @edgepi-cloud/node-red-edgepi-led
node-red admin install @edgepi-cloud/node-red-edgepi-thermocouple
node-red admin install @edgepi-cloud/node-red-edgepi-adc
node-red admin install @edgepi-cloud/node-red-edgepi-dac
node-red admin install @edgepi-cloud/node-red-edgepi-pwm
node-red admin install @edgepi-cloud/node-red-edgepi-relay
node-red admin install @edgepi-cloud/node-red-edgepi-digital-input
node-red admin install @edgepi-cloud/node-red-edgepi-digital-out
Congrats! You have installed Node-RED on your EdgePi.
There are two ways you can run Node-RED on the EdgePi:
node-red
To stop running Node-RED in the terminal, press Ctrl+C (keyboard terminate).
sudo systemctl start nodered.service
sudo systemctl enable nodered.service
For more details on running as a service, visit Node-RED's Raspberry Pi setup guide.
Once Node-RED is up and running, you can access the Node-RED editor by opening a web browser and navigating to the following URL:
http://<your-edgepi-ip>:1880
node -v
npm -v
npm install -g node-red
a. Navigate to your Node-RED installation directory. This is typically located in your user directory under C:\Users<your_username>.node-red.
cd C:\Users\<your_username>\.node-red.
b. Run the following command to install the Node-RED Dashboard module
npm install node-red-dashboard
Congrats! You have installed Node-RED on your Windows system.
To run Node-RED in the terminal:
node-red
To access the Node-RED editor, open a web browser and navigate to the following URL:
http://localhost:1880
To access the Node-RED dashboard, append /ui to the end of your Node-RED editor URL:
http://localhost:1880/ui
To stop running Node-RED in the terminal, press Ctrl+C (keyboard terminate).
You are now ready to start using our EdgePi nodes. Visit the EdgePi nodes setup guide to get started!