Chart only showing recent data, not specified timeline

It doesn't appear to be the DS18B sensor node is having an issue:

Dec 05 00:28:23 ******* Node-RED[267426]: 5 Dec 00:28:23 - [red] Uncaught Exception:
Dec 05 00:28:26 ******* Node-RED[267426]: 5 Dec 00:28:23 - [error] TypeError: Cannot read properties of undefined (reading 'charAt')
Dec 05 00:28:26 ******* Node-RED[267426]:     at /home/user1/.node-red/node_modules/node-red-contrib-ds18b20/node_modules/ds18b20/lib/ds18b20.js:46:16
Dec 05 00:28:26 ******* Node-RED[267426]:     at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
Dec 05 00:28:24 ******* systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
Dec 05 00:28:24 ******* systemd[1]: nodered.service: Failed with result 'exit-code'.
Dec 05 00:28:24 ******* systemd[1]: nodered.service: Consumed 22min 44.977s CPU time.
Dec 05 00:28:44 ******* systemd[1]: nodered.service: Scheduled restart job, restart counter is at 5.
Dec 05 00:28:44 ******* systemd[1]: Stopped Node-RED graphical event wiring tool.
Dec 05 00:28:45 ******* systemd[1]: nodered.service: Consumed 22min 44.977s CPU time.
Dec 05 00:28:45 ******* systemd[1]: Started Node-RED graphical event wiring tool.

I have the flow set to shut off the sensor for a few seconds at a time as a reset. I probably use this exact setup in a dozen different Pi's at various work sites monitoring HVAC systems. I'm wondering if this crash is at a convergence of sensor power off during a read attempt. I just changed that to every 10 hours instead of minutes, will see if it runs through tomorrow with that.

You might want to try the other ds18b20 nodes, there are several. Check for any issues on the node's github page. node-red-contrib-ds18b20 has not been updated for 9 years! I use OWFS with my 1-Wire devices and use node-red-contrib-owfs which works well for me.
I advise only having one type of ds node installed at a time in case they conflict.

I went with a newer DS18B20 node and removed the 9 year old one. I'm petty sure I've used the older one in all my other installations, but haven't looked closely yet.
I'll see how this one does...

They may also be restarting occasionally. Or it could be a bad sensor misbehaving sometimes. There are many cheap clones available and it is difficult to distinguish good ones from bad ones.

It looks like that node was the culprit, passed 2 days without a NR crash now.
Thanks for the help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.