2/9/2021 11:07 AM | |
Joined: 11/6/2017 Last visit: 3/17/2022 Posts: 11 Rating:
|
Hi all, I am using the IoT to monitor our machine performance and for this I added some charts. It's a common linear diagram from the dashboard palette. Additionally I have a state trail diagram from the "node-red-contrib-ui-state-trail" palette. However, I need the local filesystem to store the data in case of reboots. Therefor I edited the settings.js in /usr/lib/node_modules/node-red/ like explained in https://nodered.org/docs/user-guide/context#saving-context-data-to-the-file-system I did the same in the /usr/local/lib/node_modules/node-red/settings.js because I installed the separate node red version v1.2.9 Unfortunately it doesn't work. All my values are lost after reboot or even after redeploying the nodes. Any ideas how to solve this issue? Thanks in advance |
2/9/2021 3:06 PM | |
Joined: 4/28/2015 Last visit: 12/8/2023 Posts: 3298 Rating:
|
Hi, please try to do the same for the settings.js file in /root/.node-red. Best regards! |
2/11/2021 1:16 PM | |
Joined: 11/6/2017 Last visit: 3/17/2022 Posts: 11 Rating:
|
Hi, thanks for your answer. I tried to find a settings.js in the root directory, but there is no such file. |
2/11/2021 2:22 PM | |
Joined: 4/28/2015 Last visit: 12/8/2023 Posts: 3298 Rating:
|
Hi, sorry, my bad. When node-red is autostarted it is /home/root/.node-red. Best regards! |
Follow us on