munnik / gosk

Go SignalK implementation
Apache License 2.0
4 stars 1 forks source link

Make SignalK websocket server #4

Open munnik opened 3 years ago

munnik commented 2 years ago

Example websocket message:

{
  "context": "vessels.urn:mrn:imo:mmsi:244710358",
  "updates": [
    {
      "source": {
        "sentence": "VDM",
        "talker": "AI",
        "type": "NMEA0183",
        "label": "wheelhouse"
      },
      "timestamp": "2022-03-14T14:03:05.590Z",
      "values": [
        {
          "path": "",
          "value": {
            "mmsi": "244710358"
          }
        },
        {
          "path": "navigation.speedOverGround",
          "value": 0
        },
        {
          "path": "navigation.position",
          "value": {
            "longitude": 4.9159266666666666,
            "latitude": 51.823571666666666
          }
        },
        {
          "path": "navigation.state",
          "value": "moored"
        },
        {
          "path": "sensors.ais.class",
          "value": "A"
        },
        {
          "path": "navigation.specialManeuver",
          "value": "not engaged"
        }
      ],
      "$source": "wheelhouse.AI"
    }
  ]
}