Difference between revisions of "AIS"
From wiki.opennauticalchart.org
(→API) |
(→API) |
||
| Line 18: | Line 18: | ||
* https://kx1t.com/ais | * https://kx1t.com/ais | ||
** <code>curl -s https://kx1t.com/ais/api/sse |grep 'data:' | awk '{print $2}' | ** <code>curl -s https://kx1t.com/ais/api/sse |grep 'data:' | awk '{print $2}' | ||
| + | * https://mgoorman.nl | ||
| + | * http://anz-ais.ddns.net:8100 | ||
| + | * https://www.aiscatcher.org/wageningen/ | ||
| + | * https://big-g.co.uk/ais/ | ||
* ... | * ... | ||
Revision as of 06:48, 19 September 2025
Contents
AIS sources
NMEA
-
https://www.aishub.netstopped NMEA stream mid 2024
Norway
Stream is filtered. Missing message types: 4/...
- https://www.kystverket.no/en/sea-transport-and-ports/ais/access-to-ais-data/
- tcp://153.44.253.27:5631
Florida
Reception area is limited.
- http://ssia-ais.erau.edu/
- 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"]}'
-
- https://kx1t.com/ais
-
curl -s https://kx1t.com/ais/api/sse |grep 'data:' | awk '{print $2}'
-
- https://mgoorman.nl
- http://anz-ais.ddns.net:8100
- https://www.aiscatcher.org/wageningen/
- https://big-g.co.uk/ais/
- ...
Historic
- ...
AIS decoders
Ais Decoder
gpsdecode
- https://gpsd.gitlab.io/gpsd/gpsdecode.html
- <code>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"}
-
nc ssia-ais.erau.edu 4000 | gpsdecode | -e grep '"type":8' -e grep '"type":27'
{"class":"AIS","device":"stdin","type":27,"repeat":0,"mmsi":368429323,"scaled":true,"status":"Not defined","accuracy":true,"lon":-81.0,"lat":29.2,"speed":0,"course":511,"raim":true,"gnss":false}
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":369493715,"scaled":true,"dac":366,"fid":56,"data":"256:a83746ce99bb9edbd3eebb88bb7dcecba01df41d94f9397136c0c97eb4af8d69"}
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