Is SignalK json available directly from device over http/https?

Home Forums Apps and Services Is SignalK json available directly from device over http/https?

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  kevrm 2 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #284

    kevrm
    Participant

    Is there a direct api to call for the JSON, ie/ REST GET

    #287

    Paul Sumpner
    Keymaster

    Hi Kevrm,

    Absolutely, there are two methods to get Signal K JSON from iKommunicate, either via an HTTP RestAPI call (currently no support for HTTPS but watch this space!) which is good for polling data or by opening a websocket to constantly stream Delta Message updates as new NMEA data is received and converted.

    A typical RestAPI call like http://192.168.0.80/signalk/v1/api/vessels/self/propulsion

    Will return the following Signal K JSON about the status of the Engines, in this case a single Yamaha outboard connected to iKommunicate via the Yamaha NMEA2000 interface.

    // 20161204231446
    // http://192.168.0.80/signalk/v1/api/vessels/self/propulsion
    
    {
      "0": {
        "oilPressure": {
          "value": 296000.000000
        },
        "engineTemperature": {
          "value": 322.000000
        },
        "alternatorVoltage": {
          "value": 13.849999
        },
        "fuelRate": {
          "value": 2.400000
        },
        "runTime": {
          "value": 1231740.000000
        },
        "coolantPressure": {
          "value": 62000.000000
        },
        "revolutions": {
          "value": 11.066667
        },
        "boostPressure": {
          "value": 38900.000000
        },
        "engineTrim": {
          "value": 29
        }
      }
    }

    Note that all Signal K values are in SI units i.e. Pascals, Kelvins, Hertz, etc.

    Best regards
    PAUL

    • This reply was modified 2 years, 8 months ago by  Paul Sumpner.
    #299

    kevrm
    Participant

    Perfect, thanks so much!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed