Dashboard graph keep data after reboot

Dashboard Graph Is there any way to retain data after Reboot?
I have a graph setup to show history for a week but if power is lost or reboot all history is lost.

You will need to keep your own cache I think. Perhaps using the file-based persistent storage for a global or flow variable.

I believe that the chart passes on it's latest data each time it is given new data, so if you save that in persistent context then you can feed it back into the chart on startup. I am sure there are examples of that somewhere, though I could not find it myself with a quick search.

eg - Simple save and restore for node-red-dashboard chart (flow) - Node-RED

2 Likes

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