-
I have:
I need to add the name of the played audio file to the Signal K full data model. What is the best way to achieve this? I was considering:
The issue with the metadata and notification methods is that I need to make PUT requests to the server which requires authentication. I want it to "just work". So I thought maybe I can emulate an NMEA data source and add it to the server but I have no idea how to proceed with that. Any suggestions or pointers would be greatly appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Metadata doesn't make sense. It is static. And I guess a notification could work. You should be sending a delta to the server over a websocket. But that does require authentications. Which is really not that difficult. There's no way to get data into the server without authenticating. Unless you turn security off. |
Beta Was this translation helpful? Give feedback.
You really should read up on communication protocols, to understand the relationship of POST, HTTP, TCP and UDP.
You can also find examples of sending Signal K over UDP with a bit of googling, but here goes from the command line:
echo '{"updates":[{"values":[{"path":"navigation.speedOverGround","value":3.14}]}]}' |nc -4u -w1 127.0.0.1 7778