1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-21 21:30:11 +00:00

add support for MLATHUB_ENABLE_ADSB_INGEST

This commit is contained in:
kx1t 2023-03-25 13:36:16 -04:00
parent 412568ffe0
commit ce5302d79b
2 changed files with 6 additions and 0 deletions

View file

@ -480,6 +480,7 @@ Generally, there is little to configure, but there are a few parameters that you
| `MLATHUB_BEAST_IN_PORT` | TCP port you where you can send additional MLAT results to, in Beast format | `31004` |
| `MLATHUB_BEAST_OUT_PORT` | TCP port where consolidated MLAT results will be available in Beast format | `31005` |
| `MLATHUB_NET_CONNECTOR` | List of semi-colon separated IP or host, port, and protocols where MLATHUB will connect to ingest or send MLAT data. It follows the same syntax as described in the [`READSB_NET_CONNECTOR` syntax section](#alternate-configuration-method-with-readsb_net_connector) above. | Unset |
| `MLATHUB_ENABLE_ADSB_INGEST` | If set to any non-empty value, the MLATHUB will ingest the ADSB data from the readsb component and make it available on its output port. This is useful if you want to connect to external applications that want both ADSB and MLAT result data (for example, Planefence). Note -- do not use this option to feed external aggregators as they generally do not want to receive processed MLAT data. | Unset |
## Message decoding introspection

View file

@ -55,6 +55,11 @@ then
sleep infinity
fi
# handle MLATHUB_ENABLE_ADSB_INGEST (if set, connect to readsb as input)
if [[ -n "$MLATHUB_ENABLE_ADSB_INGEST" ]; then
MLATHUB_CMD+=("--net-connector=localhost,30006,beast_in")
fi
# Add any additional net_connectors:
if [[ -n "$MLATHUB_NET_CONNECTOR" ]]; then
IFS=';' read -r -a MLATHUB_NET_CONNECTOR_ARRAY <<< "$MLATHUB_NET_CONNECTOR"