Difference between revisions of "AIS"
From wiki.opennauticalchart.org
(→pyais) |
|||
| Line 19: | Line 19: | ||
==== Ais Decoder ==== | ==== Ais Decoder ==== | ||
* https://arundaleais.github.io/docs/ais/ais_decoder.html (WIN) | * https://arundaleais.github.io/docs/ais/ais_decoder.html (WIN) | ||
| + | |||
==== gpsdecode ==== | ==== gpsdecode ==== | ||
* https://gpsd.gitlab.io/gpsd/gpsdecode.html | * https://gpsd.gitlab.io/gpsd/gpsdecode.html | ||
* <code>nc 153.44.253.27 5631 | gpsdecode | grep '"type":8'</code> | * <code>nc 153.44.253.27 5631 | gpsdecode | grep '"type":8'</code> | ||
| + | <pre> | ||
| + | {"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":257057800,"scaled":true,"dac":200,"fid":10,"vin":"00000000","length":215,"beam":60,"shiptype":8440,"shiptype_text":"Illegal ship type value.","hazard":5,"hazard_text":"Unknown","draught":0,"loaded":0,"loaded_text":"N/A (default)","speed_q":false,"course_q":false,"heading_q":false} | ||
| + | </pre> | ||
| + | |||
==== pyais ==== | ==== pyais ==== | ||
* https://github.com/M0r13n/pyais | * https://github.com/M0r13n/pyais | ||
| Line 27: | Line 32: | ||
* <code>pipx ensurepath</code> | * <code>pipx ensurepath</code> | ||
* <code>nc 153.44.253.27 5631 | ais-decode --json | grep '"msg_type": 8'</code> | * <code>nc 153.44.253.27 5631 | ais-decode --json | grep '"msg_type": 8'</code> | ||
| + | <pre> | ||
| + | {"msg_type": 8, "repeat": 0, "mmsi": 257057800, "dac": 200, "fid": 10, "vin": "00000000", "length": 21.5, "beam": 6.0, "shiptype": 8440, "hazard": 5, "draught": 0.0, "loaded": 0, "speed_q": false, "course_q": false, "heading_q": false} | ||
| + | </pre> | ||
==== aisdecode ==== | ==== aisdecode ==== | ||
Revision as of 06:06, 4 September 2025
Contents
AIS sources
NMEA
- https://www.aishub.net
- https://www.kystverket.no/en/sea-transport-and-ports/ais/access-to-ais-data/ (Norway)
- tcp://153.44.253.27:5631
- http://ssia-ais.erau.edu/ (Florida)
- tcp://ssia-ais.erau.edu:4000
API
- https://www.aishub.net
- https://aisstream.io
-
wscat -c wss://stream.aisstream.io/v0/stream -w 300 -x '{"APIKey": "***", "BoundingBoxes": [[[-180, -90],[180, 90]]], "FilterMessageTypes":["SafetyBroadcastMessage","LongRangeAisBroadcastMessage","BinaryBroadcastMessage","GroupAssignmentCommand"]}'
-
- ...
Historic
- ...
AIS decoders
Ais Decoder
gpsdecode
- https://gpsd.gitlab.io/gpsd/gpsdecode.html
-
nc 153.44.253.27 5631 | gpsdecode | grep '"type":8'
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":257057800,"scaled":true,"dac":200,"fid":10,"vin":"00000000","length":215,"beam":60,"shiptype":8440,"shiptype_text":"Illegal ship type value.","hazard":5,"hazard_text":"Unknown","draught":0,"loaded":0,"loaded_text":"N/A (default)","speed_q":false,"course_q":false,"heading_q":false}
pyais
- https://github.com/M0r13n/pyais
-
pipx install pyais -
pipx ensurepath -
nc 153.44.253.27 5631 | ais-decode --json | grep '"msg_type": 8'
{"msg_type": 8, "repeat": 0, "mmsi": 257057800, "dac": 200, "fid": 10, "vin": "00000000", "length": 21.5, "beam": 6.0, "shiptype": 8440, "hazard": 5, "draught": 0.0, "loaded": 0, "speed_q": false, "course_q": false, "heading_q": false}
aisdecode
- https://github.com/madpsy/aisdecode/
-
./aisdecode-linux-amd64 -log-all-decodes decoded
AIS-catcher
- input: https://docs.aiscatcher.org/configuration/input/tcp/
- output: https://docs.aiscatcher.org/configuration/output/console/
- web view: https://docs.aiscatcher.org/configuration/output/web-viewer/
-
AIS-catcher -t txt://153.44.253.27:5631 -o 5 -N 8101 GEOJSON false MESSAGE true REALTIME false