2021-03-05, 01:06 AM
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
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