User Tools

Site Tools


nr

๐Ÿš€ Installing Node-RED on Raspberry Pi

Node-RED is a powerful flow-based development tool for visual programming, ideal for IoT and automation projects. This guide walks you through installing Node-RED on a Raspberry Pi running Raspberry Pi OS.

๐Ÿงฐ Requirements

  • ๐Ÿ–ฅ๏ธ Raspberry Pi (Pi 3 or later recommended)
  • ๐Ÿง Raspberry Pi OS (Bullseye or newer)
  • ๐ŸŒ Internet connection
  • ๐Ÿ”ง Terminal access (SSH or direct login)

๐Ÿ“ฆ Installation Steps

๐Ÿ”„ 1. Update Your System

Keep your system up to date before installing:

sudo apt update && sudo apt upgrade -y

๐Ÿ“ฅ 2. Run the Official Install Script

Use the Node-RED team's optimized installer:

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

This script will:

  • Install the latest Node.js LTS
  • Install Node-RED globally
  • Configure Node-RED as a systemd service

๐Ÿ‘ค 3. Add Your User to Node-RED Group

To manage the Node-RED service:

sudo usermod -aG node-red pi

Replace `pi` with your actual username if different.

โ–ถ๏ธ 4. Enable and Start Node-RED

sudo systemctl enable nodered.service
sudo systemctl start nodered.service

๐ŸŒ 5. Access the Node-RED Editor

Open your browser and go to:

http://<your-pi-ip>:1880

You should see the Node-RED flow editor.

๐Ÿ› ๏ธ Troubleshooting

  • Check service status: `sudo systemctl status nodered.service`
  • View logs: `journalctl -u nodered -f`
  • Reinstall Node-RED: rerun the install script

๐Ÿ“š Resources

Code / Projects / Flows

Coming soon

nr.txt ยท Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki