mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 21:30:11 +00:00
Add some env vars (#93)
READSB_NET_BR_OPTIMIZE_FOR_MLAT is useful for receivers using mobile internet so people can use beast_reduce to send data to a server which then feeds various aggregators. READSB_AUTOMATION_ARGS is useful for adsb.im so it doesn't conflict with people potentially using READSB_EXTRA_ARGS Built and tested it, ran fine with those two env var unset. Thus pretty much guaranteed to cause no issues :)
This commit is contained in:
commit
4582b42304
2 changed files with 8 additions and 3 deletions
|
@ -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=<seconds>` | `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=<nmi>` | Unset |
|
||||
| `READSB_NET_BEAST_REDUCE_FILTER_ALT` | Restrict beast-reduce output to aircraft below X ft | `--net-beast-reduce-filter-alt=<ft>` | 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=<ports>` | Unset |
|
||||
| `READSB_NET_BEAST_INPUT_PORT` | TCP Beast input listen ports | `--net-bi-port=<ports>` | `30004,30104` |
|
||||
| `READSB_NET_BEAST_OUTPUT_PORT` | TCP Beast output listen ports | `--net-bo-port=<ports>` | `30005` |
|
||||
|
|
|
@ -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
|
||||
|
@ -350,9 +354,9 @@ fi
|
|||
|
||||
# shellcheck disable=SC2086
|
||||
if [[ "${LOGLEVEL,,}" == "verbose" ]]; then
|
||||
exec "${s6wrap[@]}" --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_EXTRA_ARGS
|
||||
exec "${s6wrap[@]}" --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_AUTOMATION_ARGS $READSB_EXTRA_ARGS
|
||||
elif [[ "${LOGLEVEL,,}" == "error" ]]; then
|
||||
exec "${s6wrap[@]}" --ignore=stdout --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_EXTRA_ARGS
|
||||
exec "${s6wrap[@]}" --ignore=stdout --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_AUTOMATION_ARGS $READSB_EXTRA_ARGS
|
||||
elif [[ "${LOGLEVEL,,}" == "none" ]]; then
|
||||
exec "${s6wrap[@]}" --ignore=stdout --ignore=stderr --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_EXTRA_ARGS
|
||||
exec "${s6wrap[@]}" --ignore=stdout --ignore=stderr --args "${READSB_BIN}" "${READSB_CMD[@]}" $READSB_AUTOMATION_ARGS $READSB_EXTRA_ARGS
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue