github jvde-github/AIS-catcher v0.40b
v0.40

latest releases: v0.59, v0.58, v0.57...
20 months ago
  • Smaller bug fixes (mainly on HTTP posting) and compilation issues with older GCC versions
  • Addition of country field to JSON output (mapped from MMSI code), switch on with -M M.
  • AIS-catcher can decode NMEA lines. Not very useful but it provides a way to move the JSON analysis to the server side (send over NMEA and minimal meta data) or unit test the JSON decoder which is the prime reason for the feature. Use the model -m 5, e.g.:
echo '!AIVDM,1,1,,B,3776k`5000a3SLPEKnDQQWpH0000,0*78'  | AIS-catcher -m 5 -r . -o 5

which produces

{"class":"AIS","device":"AIS-catcher","scaled":true,"channel":"B","nmea":["!AIVDM,1,1,,B,3776k`5000a3SLPEKnDQQWpH0000,0*78"],"type":3,"repeat":0,"mmsi":477213600,"status":5,"status_text":"Moored","turn":0,"speed":0.000000,"accuracy":true,"lon":126.605469,"lat":37.460617,"course":39.000000,"heading":252,"second":12,"maneuver":0,"raim":false,"radio":0}

Which can be compared for example against the output of gpsdecode:

echo '!AIVDM,1,1,,B,3776k`5000a3SLPEKnDQQWpH0000,0*78' | gpsdecode

which produces:

{"class":"AIS","device":"stdin","type":3,"repeat":0,"mmsi":477213600,"scaled":true,"status":5,"status_text":"Moored","turn":0,"speed":0.0,"accuracy":true,"lon":126.605467,"lat":37.460617,"course":39.0,"heading":252,"second":12,"maneuver":0,"raim":false,"radio":0}

Don't miss a new AIS-catcher release

NewReleases is sending notifications on new releases.