Skip to content

Commit

Permalink
write mlat-client stats json (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen authored Sep 27, 2024
2 parents 37c9468 + 0447a0c commit 523885c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions rootfs/etc/s6-overlay/scripts/mlat-client
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 523885c

Please sign in to comment.