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
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?
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?
@Donixon Yep, synchronized posting, the day after synchronized swimming in the Olympics!
ðŸ§
Only my solution uses MQTT, I have the same info sent to Homeassistant. 😄
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.
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):
Where should the faq be so that people would find it? In the server’s embedded docs?
Because this exact thing is there https://github.com/SignalK/signalk-server/wiki/FAQ:-Frequently-Asked-Questions#how-to-add-missing-units-and-static-data-eg-displayname
GitHub
FAQ: Frequently Asked Questions
An implementation of a Signal K central server for boats. - SignalK/signalk-server
No need for node-red for deriving magnetic from true or vice versa, use derived data plugin
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.
no worries! you can do this with NodeRED also, but unless you are already familiar with it can be a bit daunting
Agreed the FAQ should maybe be more visible...all this time I didn't know it existed! Thanks.
FAQs are in the server documentation under Help & Support. Maybe we should make them visible on the menu.
YEP .. give them their own menu label .. no excuses for missing them 🙂