mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-23 22:30:09 +00:00
write mlat-client stats json
This commit is contained in:
parent
37c9468e56
commit
0447a0cf9c
2 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,7 @@ FROM ghcr.io/sdr-enthusiasts/docker-tar1090:latest
|
|||
|
||||
LABEL org.opencontainers.image.source="https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder"
|
||||
|
||||
ENV URL_MLAT_CLIENT_REPO="https://github.com/wiedehopf/mlat-client.git" \
|
||||
ENV \
|
||||
PRIVATE_MLAT="false" \
|
||||
MLAT_INPUT_TYPE="auto"
|
||||
|
||||
|
|
|
@ -51,6 +51,8 @@ then
|
|||
stop_service
|
||||
fi
|
||||
|
||||
mkdir -p /run/mlat-client
|
||||
|
||||
function check_gpsd() {
|
||||
if (( GPSD == 0 )) || ! [[ -f /run/readsb/gpsd.json ]]; then
|
||||
return 1
|
||||
|
@ -276,6 +278,8 @@ do
|
|||
"${s6wrap[@]}" --args echo "WARNING: UUID is not defined, proceeding without UUID"
|
||||
fi
|
||||
|
||||
MLAT_PARAM+=(--stats-json "/run/mlat-client/${params[0]}:${params[1]}.json")
|
||||
|
||||
# Now add the extra_args, if any:
|
||||
[[ -n "${extra_args}" ]] && MLAT_PARAM+=("${extra_args}") || true
|
||||
|
||||
|
|
Loading…
Reference in a new issue