Skip to content

fbeauche/signalk-parser-nmea0183

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

signalk-parser-nmea0183

Build Status

A Node.js stream.Transform which converts NMEA 0183 sentences into Signal K delta messages.

Supported Sentences

The following is the list of sentences the parser supports. Pull requests welcome!

Installation and Use

$ git clone https://github.com/SignalK/signalk-parser-nmea0183.git
$ cd signalk-parser-nmea0183
$ npm install
$ echo '$IIDBT,035.53,f,010.83,M,005.85,F*23' | ./bin/nmea0183-signalk

Should return something like this:

{
  "self": "D344B1D0",
  "version": "1",
  "vessels": {
    "D344B1D0": {
      "uuid": "D344B1D0",
      "environment": {
        "depth": {
          "belowTransducer": {
            "value": 10.83,
            "source": {
              "type": "NMEA0183",
              "sentence": "DBT",
              "label": "signalk/signalk-parser-nmea0183",
              "talker": "II"
            },
            "timestamp": "2016-04-15T17:56:52.000Z"
          }
        }
      }
    }
  }
}

You can also pipe a file into the parser CLI:

$ cat some-nmea-file.log | ./bin/nmea0183-signalk

Use as a Node Module

See https://github.com/SignalK/signalk-server-node/blob/master/providers/nmea0183-signalk.js for an example in a Node application.

About

NMEA0183 to Signal K parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%