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
Testing: Is it Possible to use "Data Fiddler" to move my boat in OpenCPN?
#1
Question 
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"
        }
      ]
    }
  ]
}
Reply
#2
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"
}
]
}
]
}
Reply
#3
Have you tried the sksim app? It create moving position & lots more to play with

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


Forum Jump:


Users browsing this thread: 1 Guest(s)