2020-01-29, 03:03 PM
Hello everybody,
The last days I’ve worked a lot with the Node-Red-Version, that ist started as a App in SignalK-Server on Openplotter 2
I do know that most parts of Openplotter2 are still in beta, maybe solving my problem can help others
.
If you‘ll start Node-Red as SignalK-App there will be some special Nodes belonging so SignalK. These Nodes are very usefull to implement SignalK-Messages directly in Node-Red, especially the SignalK input handler.
Now I will describe my problem: To store variables (flow, global etc) even after shutdown one can use „contextstorage“, described here: https://nodered.org/docs/user-guide/context
In a normal Node-Red installation you will find the folder „context“, where the variables a stored in. The folder is part oft he Node-Red-Installation, found here: ~/.node-red/context
To make use of the possibility of storage in /context I had to edit „settings.js“ as described in the link above.
So far so good.
When I try to use the same structure within the SignalK-App of Node-Red, no variables are stored. I can’t find the folder „context“ too. Even when I generate a new folder „context“ in the (nearly) same folder-structure no data will be stored.
Is this a bug in the Node-Red-Signal-K-App or do I miss something?
It would be nice to get an answer, that will help me.
Thanks
Michael, just back from „boot“-Düsseldorf, working with the open-boat-project guys
The last days I’ve worked a lot with the Node-Red-Version, that ist started as a App in SignalK-Server on Openplotter 2
I do know that most parts of Openplotter2 are still in beta, maybe solving my problem can help others
.
If you‘ll start Node-Red as SignalK-App there will be some special Nodes belonging so SignalK. These Nodes are very usefull to implement SignalK-Messages directly in Node-Red, especially the SignalK input handler.
Now I will describe my problem: To store variables (flow, global etc) even after shutdown one can use „contextstorage“, described here: https://nodered.org/docs/user-guide/context
In a normal Node-Red installation you will find the folder „context“, where the variables a stored in. The folder is part oft he Node-Red-Installation, found here: ~/.node-red/context
To make use of the possibility of storage in /context I had to edit „settings.js“ as described in the link above.
So far so good.
When I try to use the same structure within the SignalK-App of Node-Red, no variables are stored. I can’t find the folder „context“ too. Even when I generate a new folder „context“ in the (nearly) same folder-structure no data will be stored.
Is this a bug in the Node-Red-Signal-K-App or do I miss something?
It would be nice to get an answer, that will help me.
Thanks
Michael, just back from „boot“-Düsseldorf, working with the open-boat-project guys