Gaston - Hi all,I am pretty new to node-red an...
Hi all,
I am pretty new to node-red and need some help to get started. For learning purposes I want to send the CPU temperature to signalK. I selected and connected the following nodes
- Injector (timestamp)
- Exec (vcgencmd)
- Format
- signalk-send-pathvalue
Not sure If I am in the right direction. Can someone give me some help to get this working? Or if there is a good example (of sending data to Signalk), I would like to receive the link
Thanks
15 Replies
That sounds right
Some examples here
GitHub
node-red-embedded/examples at master · SignalK/node-red-embedded
Node red nodes for use with the signalk-node-red plugin - SignalK/node-red-embedded
GitHub
SignalK signalk-node-red · Discussions
Explore the GitHub Discussions forum for SignalK signalk-node-red. Discuss code, ask questions & collaborate with the developer community.
If you have a flow that is not working, paste it here, I can take a look.
Hi Scott, thank you for your help.
Let's first see if I have my setup right. I installed Node Red as a SignalK web app, and SignalK is running in a docker container. Do I need to setup anything else or configure anything in Node Red?
Nope. That’s it.
Ok, I am getting my first values in SignalK. And I am starting to understand this. The example, more specific the node set msg.topic helped a lot.
Looks awesome. I am going to enjoy this.
I am trying to figure out the difference between
signalk-send-pathvalue
-node and signalk-send-delta
-node. I can't find any documentation.
I think thesignalk-send-delta
-node is used when there is only a difference in the value and signalk-send-pathvalue
-node sends a value whenever it is called. But I am not sure about this.
I noticed the signalk-send-pathvalue
-node also has a field Meta
. So my guess is that I have to send the signalk-send-pathvalue
at least once after starting the server to also send the metadata, and after that I only have to use the signalk-send-delta
-node to update the value.
Am I correct?With send-delta you have to form a compete delta, that can included multiple values, meta,etc.
send-path-value is for convenience, you send it just the path a and value and it forms a delta for you.
You would not ever use both for the same thing.
Ah, ok. Let me try that out. Thanks again
I do understand the convenience of
signalk-send-pathvalue
.
I tried to find an example of signalk-send-delta
, but can't find one. Can you help me by editing this example?This is what a delta looks like
https://signalk.org/specification/1.7.0/doc/data_model.html#delta-format
That’s what you would send to send-delta node
In the payload
Thank you. I found that and tried it, but I didn't manage to combine that with meta data. But maybe I should stick to the
signal-send-pathvalue
. That just works fine.Thanks, Scott. It's not that I didn't find the data-models (and json script), I just haven't been able to get it working using the
signalk-send-delta
-node. I am not writing the code/json the right way. So an example of a flow which ends with a signalk-send-delta
-node would probably help me to understand what I am doing wrong. But I would probably use the signal-send-pathvalue
anyway, since it is less work and works perfect.