OpenMarine

Full Version: Node-Red-SignalK-App
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
I would like to know this as well! I've tried editing the "Node Red Settings" under the plugin config within SignalK but when I add something there, it fails to start NodeRed. I tried putting the Setting Name as contextStorage and the Setting Value as:
contextStorage: {
default: "memoryOnly",
memoryOnly: { module: 'memory' },
file: { module: 'localfilesystem' }
}
I've also tried stripping the contextStorage: from the beginning of that, leaving it with just the JSON and that also fails.
That's not really an openplotter question, might be better to ask the signalk guys - http://slack-invite.signalk.org/
(2021-02-23, 09:48 PM)tonylmiller Wrote: [ -> ]I would like to know this as well! I've tried editing the "Node Red Settings" under the plugin config within SignalK but when I add something there, it fails to start NodeRed. I tried putting the Setting Name as contextStorage and the Setting Value as:
contextStorage: {
  default: "memoryOnly",
  memoryOnly: { module: 'memory' },
  file: { module: 'localfilesystem' }
}
I've also tried stripping the contextStorage: from the beginning of that, leaving it with just the JSON and that also fails.

Hello, did you resolve this issue? I can't find a way to do it. Your help would be good for me. Thank you