inject data?

What's the simplest way to inject navigation.magneticVariation into the SK data stream (so Derived Data can calculate true heading from magnetic heading)? It is OK if it's a constant; I can change it once a year.
15 Replies
Mastiff
Mastiff•2mo ago
I use MQTT mesages from Node-RED and the signalk-mqtt-gw plug-in, running a separate MQTT server on port 1884 but not sending data out, to get voltages of my front and rear battery into SignalK. Maybe you could use that?
Donixon
Donixon•2mo ago
I think youre looking for NodeRed in SignalK : https://github.com/SignalK/node-red-embedded wow @Mastiff great minds haha One of the examples, 'send an adjusted depth value', is what I think you want?
Mastiff
Mastiff•2mo ago
@Donixon Yep, synchronized posting, the day after synchronized swimming in the Olympics!
Donixon
Donixon•2mo ago
🧠
Mastiff
Mastiff•2mo ago
Only my solution uses MQTT, I have the same info sent to Homeassistant. 😄
Donixon
Donixon•2mo ago
Ah yes, I use it as followed: I get data from TheThingsNetwork from LORA, use the GPS data to inject it into SignalK to show it on Freeboard-SK.
No description
Mastiff
Mastiff•2mo ago
This is the flow that first checks that the payload isn't empty, then sends to SignalK, while it deletes the payload and the message from the broker (for some reason the damned thing refuses to accept retain off):
No description
Teppo Kurki
Teppo Kurki•2mo ago
Where should the faq be so that people would find it? In the server’s embedded docs?
Teppo Kurki
Teppo Kurki•2mo ago
GitHub
FAQ: Frequently Asked Questions
An implementation of a Signal K central server for boats. - SignalK/signalk-server
Teppo Kurki
Teppo Kurki•2mo ago
No need for node-red for deriving magnetic from true or vice versa, use derived data plugin
Donixon
Donixon•2mo ago
Did not know this feature was allready in Signal-K like this. Only reason I reacted with the nodeRED soluction was that I was just working with it. I use nodeRED for everything, so I thought it would be a fitting solution for this answer. I guess this would be even more suitable.
Teppo Kurki
Teppo Kurki•2mo ago
no worries! you can do this with NodeRED also, but unless you are already familiar with it can be a bit daunting
barnaclebill
barnaclebill•2mo ago
Agreed the FAQ should maybe be more visible...all this time I didn't know it existed! Thanks.
AdrianP
AdrianP•2mo ago
FAQs are in the server documentation under Help & Support. Maybe we should make them visible on the menu.
gregy
gregy•2mo ago
YEP .. give them their own menu label .. no excuses for missing them 🙂
Want results from more Discord servers?
Add your server