Directory with Node-Red write access in a GX device for storing parameters

I can’t seem te find any form of non-volatile memory location accessible from within Node-Red integrated in venus-os.

I manage to do it easily on machines dedicated to run Node-Red using the edit write file node

Any tips?

This is what I do to save something I want to use somewhere else. These are just for a dashboard, but I use the output in functions.

I did put some functions together to save some data, but I never found that I needed them. I put them in the post they did work. Maybe someone has some better ideas.

This could be used for things like daily automation flags or manual override states.

Send values through a rate-limit/delay node first, then into a Function node:

Wire that into a File node set to write/overwrite the file.

Load State On Boot

Use an Inject node set to run once after startup, read the file, then parse it:

Important don’t write every second. Use a delay/rate-limit node and only save every 30-60 seconds, or only when important values change, to reduce storage wear.

soc mppt power.txt (10.2 KB)

save data json.txt (268 Bytes)

save data run on startup.txt (205 Bytes)

save data read.txt (68 Bytes)

Depending on the amount of values to store, you could use a virtual switch, for example slider.

That is a persisted value und you even would have a virtual switch to alter it from within the gx and vrms control panels, whenever desired :slight_smile: