Install Node Red

Based on: https://nodered.org/docs/hardware/raspberrypi

installeren /updaten:

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

Oud
bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)

Starten van node red: node-red-start
starten bij pi start:  sudo systemctl enable nodered.service
Als je niet vanuit het menu extra nodes kan installeren Om nodes te kunnen installeren: sudo apt-get install git

Security

### WARNING ###
DO NOT EXPOSE NODE-RED TO THE OPEN INTERNET WITHOUT SECURING IT FIRST

Even if your Node-RED doesn’t have anything valuable, (automated) attacks will happen and could provide a foothold in your local network

Follow the guide at https://nodered.org/docs/user-guide/runtime/securing-node-red to setup security.

### ADDITIONAL RECOMMENDATIONS ###

  • Remove the /etc/sudoers.d/010_pi-nopasswd file to require entering your pass word when performing any sudo/root commands: sudo rm -f /etc/sudoers.d/010_pi-nopasswd
  • You can customise the initial settings by running: node-red admin init
  • After running Node-RED for the first time, change the ownership of the setti ngs
    file to ‘root’ to prevent unauthorised changes: sudo chown root:root ~/.node-red/settings.js