# Chart only showing recent data, not specified timeline

**URL:** <https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764>\
**Category:** General\
**Created:** [10 November 2023 17:46 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764 "2023-11-10T17:46:07Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Rgrove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Post date:** [5 December 2023 15:43 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764/21 "2023-12-05T15:43:36Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 December 2023 15:56 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764/22 "2023-12-05T15:56:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Rgrove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Post date:** [5 December 2023 16:09 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764/23 "2023-12-05T16:09:06Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 December 2023 17:05 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764/24 "2023-12-05T17:05:08Z")

</div>

> [@Rgrove](#):
>
> I'm petty sure I've used the older one in all my other installations

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.

---

<div class="post-metadata">

**Author:** ![Rgrove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Post date:** [7 December 2023 19:15 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764/25 "2023-12-07T19:15:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 December 2023 19:15 UTC](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764/26 "2023-12-21T19:15:59Z")

</div>

Closed on 21 December 2023 19:15 UTC

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

[Previous page](https://discourse.nodered.org/t/chart-only-showing-recent-data-not-specified-timeline/82764.md?page=1)
