1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-24 06:40:09 +00:00

write mlat-client stats json

This commit is contained in:
Matthias Wirth 2024-09-27 15:50:13 +02:00
parent 37c9468e56
commit 0447a0cf9c
2 changed files with 5 additions and 1 deletions

View file

@ -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" 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" \ PRIVATE_MLAT="false" \
MLAT_INPUT_TYPE="auto" MLAT_INPUT_TYPE="auto"

View file

@ -51,6 +51,8 @@ then
stop_service stop_service
fi fi
mkdir -p /run/mlat-client
function check_gpsd() { function check_gpsd() {
if (( GPSD == 0 )) || ! [[ -f /run/readsb/gpsd.json ]]; then if (( GPSD == 0 )) || ! [[ -f /run/readsb/gpsd.json ]]; then
return 1 return 1
@ -276,6 +278,8 @@ do
"${s6wrap[@]}" --args echo "WARNING: UUID is not defined, proceeding without UUID" "${s6wrap[@]}" --args echo "WARNING: UUID is not defined, proceeding without UUID"
fi fi
MLAT_PARAM+=(--stats-json "/run/mlat-client/${params[0]}:${params[1]}.json")
# Now add the extra_args, if any: # Now add the extra_args, if any:
[[ -n "${extra_args}" ]] && MLAT_PARAM+=("${extra_args}") || true [[ -n "${extra_args}" ]] && MLAT_PARAM+=("${extra_args}") || true