pin32@Node-Red:~ $ node-red-reload
Stop Node-RED
Use node-red-start to start Node-RED again
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.96:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as a systemd service.
16 Feb 09:20:41 - [info] Settings file : /home/pin32/.node-red/settings.js
16 Feb 09:20:41 - [info] Context store : 'default' [module=memory]
16 Feb 09:20:41 - [info] User directory : /home/pin32/.node-red
16 Feb 09:20:41 - [warn] Projects disabled : editorTheme.projects.enabled=false
16 Feb 09:20:41 - [info] Flows file : /home/pin32/.node-red/flows.json
16 Feb 09:20:41 - [info] Server now running at http://127.0.0.1:1880/
16 Feb 09:20:41 - [warn] Using unencrypted credentials
16 Feb 09:20:41 - [info] Starting flows
MCP23017 chip initialization OK. BusNumber=1 Address=0X27 id:ac05a4c7c52289c4 startAllHigh = false
MCP23017 chip initialization OK. BusNumber=1 Address=0X20 id:891324a310fe6192 startAllHigh = false
16 Feb 09:20:46 - [info] Started flows
16 Feb 09:20:46 - [info] [serialconfig:831becf24befe30b] serial port /dev/ttyACM0 opened at 2400 baud 8N1
16 Feb 09:20:46 - [error] [serialconfig:5a5b2278df870dd4] serial port /dev/ttyUSB0 error: Error: Error: No such file or directory, cannot open /dev/ttyUSB0
16 Feb 09:20:46 - [info] [mqtt-broker:e276a877253691df] Connected to broker: mqtt://192.168.1.99:1883
16 Feb 09:29:26 - [info] Stopping modified nodes
16 Feb 09:29:26 - [info] Stopped modified nodes
16 Feb 09:29:26 - [info] Updated flows
16 Feb 09:29:26 - [info] Starting modified nodes
16 Feb 09:29:26 - [info] Started modified nodes
16 Feb 09:31:08 - [info] Stopping modified nodes
16 Feb 09:31:08 - [info] Stopped modified nodes
16 Feb 09:31:08 - [info] Updated flows
16 Feb 09:31:08 - [info] Starting modified nodes
16 Feb 09:31:08 - [info] Started modified nodes
16 Feb 09:35:01 - [info] Stopping modified nodes
16 Feb 09:35:01 - [info] Stopped modified nodes
16 Feb 09:35:01 - [info] Updated flows
16 Feb 09:35:02 - [info] Starting modified nodes
16 Feb 09:35:02 - [info] Started modified nodes
16 Feb 09:36:48 - [info] Stopping modified nodes
16 Feb 09:36:48 - [info] Stopped modified nodes
16 Feb 09:36:48 - [info] Updated flows
16 Feb 09:36:48 - [info] Starting modified nodes
16 Feb 09:36:48 - [info] Started modified nodes
16 Feb 09:41:05 - [info] Stopping modified nodes
16 Feb 09:41:05 - [info] Stopped modified nodes
16 Feb 09:41:05 - [info] Updated flows
16 Feb 09:41:05 - [info] Starting modified nodes
16 Feb 09:41:05 - [info] Started modified nodes
16 Feb 09:43:11 - [info] Stopping modified nodes
16 Feb 09:43:11 - [info] Stopped modified nodes
16 Feb 09:43:11 - [info] Updated flows
16 Feb 09:43:11 - [red] Uncaught Exception:
16 Feb 09:43:11 - [error] TypeError: Cannot read properties of undefined (reading 'charAt')
at /home/pin32/.node-red/node_modules/ds18b20/lib/ds18b20.js:46:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 21min 37.543s CPU time.
nodered.service: Scheduled restart job, restart counter is at 1.
Stopped nodered.service - Node-RED graphical event wiring tool.
nodered.service: Consumed 21min 37.543s CPU time.
Started nodered.service - Node-RED graphical event wiring tool.
16 Feb 09:43:35 - [info]
Welcome to Node-RED
===================
16 Feb 09:43:35 - [info] Node-RED version: v4.0.8
16 Feb 09:43:35 - [info] Node.js version: v20.18.1
16 Feb 09:43:35 - [info] Linux 6.6.51+rpt-rpi-v8 arm64 LE
16 Feb 09:43:36 - [info] Loading palette nodes
16 Feb 09:43:40 - [info] Settings file : /home/pin32/.node-red/settings.js
16 Feb 09:43:40 - [info] Context store : 'default' [module=memory]
16 Feb 09:43:40 - [info] User directory : /home/pin32/.node-red
16 Feb 09:43:40 - [warn] Projects disabled : editorTheme.projects.enabled=false
16 Feb 09:43:40 - [info] Flows file : /home/pin32/.node-red/flows.json
16 Feb 09:43:40 - [info] Server now running at http://127.0.0.1:1880/
16 Feb 09:43:40 - [warn] Using unencrypted credentials
16 Feb 09:43:41 - [info] Starting flows
MCP23017 chip initialization OK. BusNumber=1 Address=0X27 id:ac05a4c7c52289c4 startAllHigh = false
MCP23017 chip initialization OK. BusNumber=1 Address=0X20 id:891324a310fe6192 startAllHigh = false
16 Feb 09:43:46 - [info] Started flows
16 Feb 09:43:46 - [info] [serialconfig:831becf24befe30b] serial port /dev/ttyACM0 opened at 2400 baud 8N1
16 Feb 09:43:46 - [error] [serialconfig:5a5b2278df870dd4] serial port /dev/ttyUSB0 error: Error: Error: No such file or directory, cannot open /dev/ttyUSB0
16 Feb 09:43:46 - [info] [mqtt-broker:e276a877253691df] Connected to broker: mqtt://192.168.1.99:1883
16 Feb 09:43:47 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:43:47 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:44:45 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:45:44 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:46:11 - [info] Stopping modified nodes
16 Feb 09:46:11 - [info] Stopped modified nodes
16 Feb 09:46:11 - [info] Updated flows
16 Feb 09:46:11 - [info] Starting modified nodes
16 Feb 09:46:11 - [info] Started modified nodes
16 Feb 09:46:42 - [info] Stopping modified nodes
16 Feb 09:46:42 - [info] Stopped modified nodes
16 Feb 09:46:42 - [info] Updated flows
16 Feb 09:46:42 - [info] Starting modified nodes
16 Feb 09:46:43 - [info] Started modified nodes
16 Feb 09:46:43 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:46:56 - [info] Stopping modified nodes
16 Feb 09:46:56 - [info] Stopped modified nodes
16 Feb 09:46:56 - [info] Updated flows
16 Feb 09:46:56 - [info] Starting modified nodes
16 Feb 09:46:56 - [info] Started modified nodes
16 Feb 09:47:42 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:48:41 - [error] [rpi-gpio out:gpio25-pin22 pwm1] nrgpio python command not running
16 Feb 09:49:25 - [info] Stopping modified nodes
16 Feb 09:49:25 - [info] Stopped modified nodes
16 Feb 09:49:25 - [info] Updated flows
16 Feb 09:49:26 - [info] Starting modified nodes
16 Feb 09:49:26 - [info] Started modified nodes
That is the problem. The 1-wire node is crashing and node red is restarting. During that time the browser will time out.
What version of node-red are you using? It is at the bottom of the hamburger drop down menu.
What version of nodejs are you using? The command node -v
will tell you that.
What package are you using for the DS18b20, and what version?
Are all of your nodes running with the latest versions? Check in Manage Palette.
node-red-contrib-ds18b20 0.0.3
use both this and the inside of the raspberry gpio
node-red-node-pi-gpio 2.0.6
disabling both I have no more reboot
node -v
v20.18.1
I have to refer you to my question
This node hasn't been updated in 11 years so it is quite possible that it doesn't work on the latest OS. It would be helpful to know what Pi and what OS you are running on it.
You could open a issue on the nodes GitHub page and hope the author would take a look
These are more recent have you tried them ?
I removed that obsolete knot and everything returned to normal.
gazie thousand