This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect 2 Signalk servers via node-red / MQTT for cloud access
#1
I have been thinking about the best way to get some of my signalk data into the cloud with intermittent internet. The requirement is that while there is no internet connection, the data accumulates on the raspberry pi and automatically gets uploaded when a connection is established.

If anyone has a solution for this please let me know.  My thought was to run a separate Signalk server in the cloud, and use node-red and MQTT to pass signalk messages to the cloud instance.  This would essentially mean the cloud instance would receive raw signalk data from the boat.

I have managed to get the infrastructure up and running, with the following flow.

ON BOAT -> Signalk-node-red -> singalk-on-delta -> MQTT

IN CLOUD -> MQTT -> signalk-send-delta

I have setup debugging on both ends and can confirm that the messages are being received on the cloud server, but for some reason they are not being processed correctly. 

I believe the issue is that for some reason the structure of the signalk delta is modified during sending, and it is not being reconstructed correctly on the cloud end - I have tried changing and editing various things, but cannot get it working.

Has anyone tried anything similar, or have a different solution for getting the data into the cloud on an intermittent internet connection?

Thx
Reply


Messages In This Thread
Connect 2 Signalk servers via node-red / MQTT for cloud access - by bitsailor - 2021-03-05, 01:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)