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

Topics about the Software of Revolution Pi
Post Reply
aladanh2000
Posts: 5
Joined: 04 Jan 2025, 20:00

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

Post 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
User avatar
RevPiModIO
KUNBUS
Posts: 337
Joined: 20 Jan 2017, 08:44
Contact:

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

Post 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`.
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!
aladanh2000
Posts: 5
Joined: 04 Jan 2025, 20:00

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

Post by aladanh2000 »

Thank you so much RevPiModIO, it works well.
Post Reply