I am using around 30 persistent global variables saved in my local Store.
Today I had to restart the Raspi after a kernel update and after restart I found that 5% of the variables were set as "undefined", not stored in the context.
This is not the first time it happens. How can I rely on the persistent global storage?
That way it is a simple matter of var config = global.get("config") (or the change node equivelant)
and you can access config.ip and config.enabled etc.
Additionally, as well as all values being neatly "packaged" in one object, you can click the copy value button on the global viewer in the side-bar & get all values in one go (manual backup if you like)
↑ Feel free to ignore this if this is of no value (its just a suggestion)
I think I will move all variables from a store into the other, and then remove the first store, so I will have just one:
a = global.keys("lilioStoreLuci");
for (var x in a) {
temp = global.get(a[x],"lilioStoreLuci");
global.set (a[x],temp,"lilioStore");
global.set (a[x],undefined,"lilioStoreLuci")
}