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
Pypilot and Signal K
#2
When I started pypilot I really needed a way to communicate autopilot data between various processes.   At the time signalk specification was even less worked out and the few disagreements I had were never resolved.   Most of my disagreements are related to how large the actual messages (bytes over tcp) compared to what could actually be sent instead.

for example:
Code:
{
  "self": "urn:mrn:signalk:uuid:c0d79334-4e25-4245-8892-54e8ccc8021d",
  "version": "0.9.0",
  "vessels": {
    "urn:mrn:signalk:uuid:c0d79334-4e25-4245-8892-54e8ccc8021d": {
      "uuid": "urn:mrn:signalk:uuid:c0d79334-4e25-4245-8892-54e8ccc8021d",
      "navigation": {
        "courseOverGroundTrue": {
          "value": 3.61562407843144,
          "$source": "ttyUSB0.GP",
          "timestamp": "2017-04-03T06:14:04.451Z"
        }
      }
    }
  }
}

Would be in pypilot signalk:
Code:
{ "gps.track": {"value": 3.6156, "timestamp": "2017-04-03T06:14:04.451Z"}}

I am confused why it needs to specify the vessel uid (twice!) when there is only ever one vessel!

Anyway, I hope there is some way that pypilot can use a compatible subset of signalk  so the above sentence could be valid.

I also now have the issue of sharing larger binary files between processes but maybe signalk is not right for this?

btw, I really do like the "minperiod" option for subscriptions. This is not yet implemented and clients have to poll data if they want less frequent updates.


So I am really just looking for a way to simplify the protocol in the most common case (single vessel single data source) but I don't know if it's possible, and pypilot can certainly be extended to support more of the signalk standard, changing key names or methods is no problem, but for now they are purposefully different.
Reply


Messages In This Thread
Pypilot and Signal K - by tkurki - 2020-01-25, 11:20 AM
RE: Pypilot and Signal K - by seandepagnier - 2020-01-25, 08:06 PM
RE: Pypilot and Signal K - by tkurki - 2020-01-26, 10:02 PM
RE: Pypilot and Signal K - by seandepagnier - 2020-01-26, 05:17 AM
RE: Pypilot and Signal K - by seandepagnier - 2020-01-27, 02:19 AM
RE: Pypilot and Signal K - by seandepagnier - 2020-02-01, 06:04 PM
RE: Pypilot and Signal K - by tkurki - 2020-02-02, 10:20 AM
RE: Pypilot and Signal K - by seandepagnier - 2020-02-03, 02:35 AM
RE: Pypilot and Signal K - by seandepagnier - 2020-03-13, 12:49 AM
RE: Pypilot and Signal K - by seandepagnier - 2020-05-24, 03:42 PM
RE: Pypilot and Signal K - by johnm - 2020-06-02, 09:13 PM
RE: Pypilot and Signal K - by ddelorme - 2020-06-05, 06:51 PM
RE: Pypilot and Signal K - by seandepagnier - 2020-06-06, 12:45 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)