Difference between revisions of "AIS"
From wiki.opennauticalchart.org
(→pyais) |
(→gpsdecode) |
||
| Line 28: | Line 28: | ||
"hazard":5,"hazard_text":"Unknown","draught":0,"loaded":0,"loaded_text":"N/A (default)", | "hazard":5,"hazard_text":"Unknown","draught":0,"loaded":0,"loaded_text":"N/A (default)", | ||
"speed_q":false,"course_q":false,"heading_q":false} | "speed_q":false,"course_q":false,"heading_q":false} | ||
| + | </pre> | ||
| + | <pre> | ||
| + | {"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":215349000,"scaled":true,"dac":1,"fid":27,"linkage":90,"sender":0,"rtype":5,"rtype_text":"Ship route plan","start":"00-00T24:60Z","duration":262143,"waypoints":[{"lon":7.107972,"lat":62.844255},{"lon":7.112132,"lat":62.848032}]} | ||
| + | </pre> | ||
| + | <pre> | ||
| + | {"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":215349000,"scaled":true,"dac":1,"fid":29,"linkage":90,"text":"LESSREMMAN - ELNES (VIA RORVIK; OUTSIDE) CAPT YURI"} | ||
</pre> | </pre> | ||
Revision as of 06:14, 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}
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":215349000,"scaled":true,"dac":1,"fid":27,"linkage":90,"sender":0,"rtype":5,"rtype_text":"Ship route plan","start":"00-00T24:60Z","duration":262143,"waypoints":[{"lon":7.107972,"lat":62.844255},{"lon":7.112132,"lat":62.848032}]}
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":215349000,"scaled":true,"dac":1,"fid":29,"linkage":90,"text":"LESSREMMAN - ELNES (VIA RORVIK; OUTSIDE) CAPT YURI"}
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}
{"msg_type": 8, "repeat": 0, "mmsi": 215349000, "dac": 1, "fid": 27,
"data": "FwFAGPP//3ggjnij9kTwQREIR+t9QIGPWI/RpYEAV0kfnN4B/oNCP0lbA/56ZH7oMAfMqQkAPXgPnOUSBujgIEAnJCF1QEOc0Uhdt0CLKQCQxYXBGjYZIXqkAkLbgkK4VwS3FHSHEE4JngLpEMz8"}
{"msg_type": 8, "repeat": 0, "mmsi": 215349000, "dac": 1, "fid": 29, "data": "FwUw4VOC2BYVIQEyChYkGAdIlCnI"}
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