Page 1 of 1

Node-RED How to change setting.js for contextStorage?

Posted: 13 Jan 2025, 07:35
by aladanh2000
Hi all,

How to change setting.js for contextStorage in Node-RED?

In detail:
I am working on Node-RED on RevPi Connect 4 and must store the user inputs (context variables) in the context file. The purpose is to retain the value even if the RevPi restarts.

I follow the guide from Node-RED, and then it leads to changing the setting.js file in the Node-RED folder. However, I can not find this folder (~/.node-red) and file path.

I tried in the terminal of RevPi but no such file or directory

Code: Select all

pi@RevPi:~$ cd ~/.node-red
bash: cd: /home/pi/.node-red: No such file or directory

Re: Node-RED How to change setting.js for contextStorage?

Posted: 13 Jan 2025, 10:11
by RevPiModIO
Hi!

If you are using the Bookworm Image on your Revolution Pi, the home of the Node-RED server is now `/var/lib/revpi-nodered`. There you will also find the directory `.node-red`.

Re: Node-RED How to change setting.js for contextStorage?

Posted: 16 Jan 2025, 06:17
by aladanh2000
Thank you so much RevPiModIO, it works well.