From 1b8961ad23d68906be021880211ff3949fe97a9b Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 29 May 2024 17:58:42 +0200 Subject: [PATCH] add env var READSB_NET_BR_OPTIMIZE_FOR_MLAT BeastReduce: Keep messages relevant to mlat-client enables: --net-beast-reduce-optimize-for-mlat --- README.md | 1 + rootfs/etc/s6-overlay/scripts/readsb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 5840db2..ee83a54 100644 --- a/README.md +++ b/README.md @@ -368,6 +368,7 @@ There are many optional parameters relating to the ingestion of data and the gen | `READSB_NET_BEAST_REDUCE_INTERVAL` | BeastReduce position update interval, longer means less data (valid range: `0.000` - `14.999`) | `--net-beast-reduce-interval=` | `1.0` | | `READSB_NET_BEAST_REDUCE_FILTER_DIST` | Restrict beast-reduce output to aircraft in a radius of X nmi | `--net-beast-reduce-filter-dist=` | Unset | | `READSB_NET_BEAST_REDUCE_FILTER_ALT` | Restrict beast-reduce output to aircraft below X ft | `--net-beast-reduce-filter-alt=` | Unset | +| `READSB_NET_BR_OPTIMIZE_FOR_MLAT` | BeastReduce: Keep messages relevant to mlat-client | `--net-beast-reduce-optimize-for-mlat` | Unset | | `READSB_NET_BEAST_REDUCE_OUT_PORT` | TCP BeastReduce output listen ports (comma separated) | `--net-beast-reduce-out-port=` | Unset | | `READSB_NET_BEAST_INPUT_PORT` | TCP Beast input listen ports | `--net-bi-port=` | `30004,30104` | | `READSB_NET_BEAST_OUTPUT_PORT` | TCP Beast output listen ports | `--net-bo-port=` | `30005` | diff --git a/rootfs/etc/s6-overlay/scripts/readsb b/rootfs/etc/s6-overlay/scripts/readsb index e440b2a..5c1841c 100755 --- a/rootfs/etc/s6-overlay/scripts/readsb +++ b/rootfs/etc/s6-overlay/scripts/readsb @@ -170,6 +170,10 @@ fi # Default it to 0.5 second if no value is provided, which is reasonable for feeding aggregators READSB_CMD+=("--net-beast-reduce-interval=${READSB_NET_BEAST_REDUCE_INTERVAL:-0.5}") +if chk_enabled "$READSB_NET_BR_OPTIMIZE_FOR_MLAT"; then + READSB_CMD+=("--net-beast-reduce-optimize-for-mlat") +fi + if chk_enabled "$READSB_NET_SBS_REDUCE"; then READSB_CMD+=("--net-sbs-reduce") fi