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

write mlat-client stats json (#146)

This commit is contained in:
Fred Clausen 2024-09-27 13:02:15 -06:00 committed by GitHub
commit 523885c496
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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