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
Data connetion from a OFNI
#1
Hi all, and thank you so much for this project.

I'm trying to build a sensor that in case of MOB sends to the vessel its position. I'm receiving its position througt a NMEA0183 TCP Client Data Connection in my SignalK. 

The question is: how can I tell to SignalK that the position corresponds to other Vessel or flotant object? (in this case is a MOB).

Thanks a lot!
Reply
#2
you have to send this delta message to the signal k server:

Code:
{
  "context": "vessels.urn:mrn:signalk:uuid:c0d79334-4e25-4245-8892-54e8ccc8021d",
  "updates": [
    {
      "source": {...},
      "timestamp": "2017-08-15T16:00:05.200Z",
      "values": [
        {
          "path": "notifications.mob",
          "value": {
            "message": "MOB",
            "state": "emergency",
            "method": ["visual", "sound"]
          }
        }
      ]
    }
  ]
}

"context" is the unique identification of the floating object. You can also use the mmsi:

Code:
"context": "vessels.urn:mrn:imo:mmsi:234567890"

more info:

https://signalk.org/specification/1.7.0/...model.html

https://signalk.org/specification/1.7.0/...tions.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)