OpenMarine

Full Version: Testing: Is it Possible to use "Data Fiddler" to move my boat in OpenCPN?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Still learning.. but was wondering.

(All this is on a "test bed" on my desk at home, so no "real" data is available yet.)

I have OpenCPN connected to a Signal K server.

Is it possible to put "some" JSON in the "Data Fiddler" of Signal K and move the location of my boat in OpenCPN?

I have setup my boats MMSI and Call Sign.

If it's possible, does anyone have any sample JSON?

I have tried the following JSON but with no success... I have replaced the MMSI at the top for my MMSI....

{
  "context": "atons.urn:mrn:imo:mmsi:232018231",
  "updates": [
    {
      "values": [
        {
          "path": "navigation.position.longitude",
          "value": -3.17
        },
        {
          "path": "navigation.position.latitude",
          "value": 51.48
        },
        {
          "path": "name",
          "value": "BeaconPy"
        },
        {
          "path": "virtual",
          "value": "true"
        },
        {
          "path": "atonType.name",
          "value": "BLE Beacon Py"
        }
      ]
    }
  ]
}
good news! my theory is correct. i have managed to put an AIS report onto the map with the following JSON in "Data Fiddler"

{
"context" : "vessels.urn:mrn:imo:mmsi:503067900",
"updates" : [
{
"source" : {
"talker" : "AI",
"label" : "183TCP",
"sentence" : "VDM",
"type" : "NMEA0183"
},
"$source" : "183TCP.AI",
"timestamp" : "2022-08-19T12:30:10.452Z",
"values" : [
{
"path" : "",
"value" : {
"mmsi" : "503067900"
}
},
{
"path" : "navigation.speedOverGround",
"value" : 0
},
{
"path" : "navigation.courseOverGroundTrue",
"value" : 0
},
{
"path" : "navigation.position",
"value" : {
"latitude" : 51.449987,
"longitude" : -3.169099
}
},
{
"path" : "sensors.ais.class",
"value" : "B"
}
]
}
]
}
Have you tried the sksim app? It create moving position & lots more to play with

[Image: fZnVzZw.png]
Wow! I was not aware of that app. Many thanks!