Output Configuration¶
AIS-catcher has multiple output options. As for the input, they share a few common settings to manage the flow of messages to output connections and for filtring.
Message Filtering¶
AIS-catcher has functionality to filter UDP, HTTP and screen output on message type, e.g. send only messages of type 1, 2, 3, 5, 18, 19, 24 and 27 over UDP:
AIS-catcher -u 127.0.0.1 10110 FILTER on ALLOW_TYPE 1,2,3,5,18,19,24,27
AIS-catcher -u 127.0.0.1 10110 FILTER on BLOCK_TYPE 6,8
ON
(default OFF
) and the filter needs to be defined per -u
switch (or -H
and -o
).
In my home station, I am using this to control the size of the log file but still capture messages for inspection later. I am running with the command line parameter:
AIS-catcher -o 5 FILTER on BLOCK_TYPE 1,2,3,4,5,9,18,19,21,24
Note: filtering for messages to screen can only be set on the command line and not in the JSON configuration file at this stage. UDP filtering is available in the JSON configuration file.
Filter settings¶
Key | Type | Default | Description |
---|---|---|---|
FILTER | boolean | false | Enable/disable filtering |
ALLOW_TYPE | list | all | Comma-separated list of message types to allow (1-27) |
BLOCK_TYPE | list | none | Comma-separated list of message types to block |
ALLOW_REPEAT | list | all | Allow messages with specific repeat counter values (0-3) |
BLOCK_REPEAT | list | none | Block messages with specific repeat counter values |
ALLOW_MMSI | list | all | Only allow messages from specific MMSI numbers |
BLOCK_MMSI | list | none | Block messages from specific MMSI numbers |
ALLOW_CHANNEL | string | all | Only allow messages from specific AIS channels |
ID | integer | all | Only allow messages from specific station IDs |
GPS | boolean | true | Include GPS messages in output |
AIS | boolean | true | Include AIS messages in output |
Routing Messages¶
In principle, messages from all models sourced via all input connections is sourced to all Output Connections. Sometimes it is desirable to manage this flow.
This can be done via the Setting GROUPS_IN
with as value the list of models that feed this input.
Output Options¶
AIS-catcher offers multiple output options to suit different use cases. Below is an overview of the available output methods:
Screen Output¶
- Console Output: Display AIS messages directly in your terminal with customizable formats
Network Output Options¶
- TCP Server: Run an AIS server that clients can connect to
- TCP Client: Connect to remote AIS servers
- UDP: Send AIS messages via UDP to specified destinations
- HTTP: Provide AIS data through HTTP endpoints
Integration Options¶
- Community Feed: Share your AIS data with the community
- PostgreSQL: Write AIS messages to Postgres database
- Web Viewer: Built-in web interface for visualizing vessel traffic
- MQTT: Publish AIS data to MQTT brokers
- NMEA2000: Interface with NMEA2000 networks