Running Node-RED update for user pi at /home/pi on raspbian
This can take 20-30 minutes on the slower Pi versions – please wait.
Stop Node-RED Remove old version of Node-RED Remove old version of Node.js Install Node.js for Armv6 v18.18.2 Npm 9.8.1 Clean npm cache Install Node-RED core 3.1.0 Move global nodes to local – Npm rebuild existing nodes Install extra Pi nodes – Add shortcut commands Update systemd script
Any errors will be logged to /var/log/nodered-install.log All done. You can now start Node-RED with the command node-red-start or using the icon under Menu / Programming / Node-RED Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880
Started : Wed 15 Nov 15:52:28 CET 2023 Finished: Wed 15 Nov 16:03:43 CET 2023
********************************************************************************** ### 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 password 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 settings file to ‚root‘ to prevent unauthorised changes:
Would you like to customise the settings now (y/N) ? y
Node-RED Settings File initialisation ===================================== This tool will help you create a Node-RED settings file.
Settings file · /home/pi/.node-red/settings.js
Do you want to setup user security? · Yes Username · pi Password · ******************* User permissions · full access Add another user? · No
Projects ======== The Projects feature allows you to version control your flow using a local git repository.
Do you want to enable the Projects feature? · No
Flow File settings ================== Enter a name for your flows file · flows.json Provide a passphrase to encrypt your credentials file · ********
Editor settings =============== Select a theme for the editor. To use any theme other than „default“, you will need to install @node-red-contrib-themes/theme-collec tion in your Node-RED user directory. · default
Select the text editor component to use in the Node-RED Editor · monaco (default)
Node settings ============= Allow Function nodes to load external modules? (functionExternalModules) · Yes
Settings file written to /home/pi/.node-red/settings.js
pi@rpi-NodeRed-01:~ $ sudo systemctl status nodered.service ● nodered.service – Node-RED graphical event wiring tool Loaded: loaded (/lib/systemd/system/nodered.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2023-11-15 16:18:07 CET; 8min ago Docs: http://nodered.org/docs/hardware/raspberrypi.html Main PID: 255 (node-red) Tasks: 11 (limit: 414) CPU: 49.789s CGroup: /system.slice/nodered.service └─255 node-red
Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [info] Settings file : /home/pi/.node-red/settings.js Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [info] Context store : ‚default‘ [module=memory] Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [info] User directory : /home/pi/.node-red Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [warn] Projects disabled : editorTheme.projects.enabled=false Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [info] Flows file : /home/pi/.node-red/flows.json Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [info] Creating new flow file Nov 15 16:20:19 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:19 – [warn] Encrypted credentials not found Nov 15 16:20:21 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:21 – [info] Server now running at http://127.0.0.1:1880/ Nov 15 16:20:21 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:21 – [info] Starting flows Nov 15 16:20:21 rpi-NodeRed-01 Node-RED[255]: 15 Nov 16:20:21 – [info] Started flows
pi@rpi-NodeRed-01:~ $
pi@rpi-NodeRed-01:~ $ node-red-log
Started Node-RED graphical event wiring tool. 15 Nov 16:19:03 – [info] Welcome to Node-RED =================== 15 Nov 16:19:03 – [info] Node-RED version: v3.1.0 15 Nov 16:19:03 – [info] Node.js version: v18.18.2 15 Nov 16:19:03 – [info] Linux 6.1.21+ arm LE 15 Nov 16:19:42 – [info] Loading palette nodes 15 Nov 16:20:19 – [info] Settings file : /home/pi/.node-red/settings.js 15 Nov 16:20:19 – [info] Context store : ‚default‘ [module=memory] 15 Nov 16:20:19 – [info] User directory : /home/pi/.node-red 15 Nov 16:20:19 – [warn] Projects disabled : editorTheme.projects.enabled=false 15 Nov 16:20:19 – [info] Flows file : /home/pi/.node-red/flows.json 15 Nov 16:20:19 – [info] Creating new flow file 15 Nov 16:20:19 – [warn] Encrypted credentials not found 15 Nov 16:20:21 – [info] Server now running at http://127.0.0.1:1880/ 15 Nov 16:20:21 – [info] Starting flows 15 Nov 16:20:21 – [info] Started flows