Hello there
I went through all the topics related to my problem, but unofrtunatelly i could not find the answer. I was looking for a solution, that allows me to save data that will survive restarts. So i have found that i need to change settings.js, and then use the localfilesystem storage for that purpose. So i have changed my settings,
after that i restarted nodered. Next i used global.set("sheetevents", "file"), to store my data. After restart, i tried to read data by
global.get("sheetevents") and by global.get("sheetevents","file") too. Neither of them worked.
Strangely, in sidebar's ContextData i could find the sheetevents variable, stored as it was intended, but still no luck to use it in a function. Anyone any help please?
LITTLE UPDATE, in side context bar it also dissapiered after a refreshed the sidebar..
Now after another restart i am getting a warning
"Unknown context store 'file' specified. Using default store."
Have you modified the correct settings file, the location of the settings file is shown in the console at start up.
If the correct file, show us the edited section, including a few lines before and after.
Does the sidebar context show file as the context store for sheetevent
I hope i modified the correct one. Are there more settings files? I have found that in my user/nodered directory..The side bar doesnt show sheetevent after i refreshed it, so the problem originate probably from saving the value. The warning also inidicates, that nodered could not find the "file" storage,so he uses the default.
It is the correct one. But i think the problem is with the fact, that nodered is running as service. So it is messing up things, and not using my settings file. I tried evey possible restart, no help.
Hello guys
Thanks for all of your helps
We found the reason, and i am gonna share it with thouse running in my shoes
The problem originates from Nodered beeing set up as a service...
So in case it is running as a service, the settings file is not the same as it should be. It is cloning somehow the settings.js, and i was not able to find it. So we destroyed the process, and started using nodered regularly, and now i am able to use different storages.
Thanks for every single effort to help me
good to know, but i have a scheduled task, with which i restart node red every week, and i dont have trouble with file size currently, but there is a scope for improvement sure.