From dec890104bb34b68363659744042e8e3896f6a59 Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 15 Jan 2026 08:03:47 +0000 Subject: [PATCH] Fix acarsdec JSON output flag for newer forks Use -j instead of -o 4 for JSON output, which is the correct flag for acarsdec v4.3.1+ (Thibaut Varene fork). Co-Authored-By: Claude Opus 4.5 --- routes/acars.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routes/acars.py b/routes/acars.py index 49af864..4bbb4b1 100644 --- a/routes/acars.py +++ b/routes/acars.py @@ -176,11 +176,12 @@ def start_acars() -> Response: acars_last_message_time = None # Build acarsdec command - # acarsdec -o 4 -g -p -r ... - # Note: -o 4 is JSON stdout, gain/ppm must come BEFORE -r + # acarsdec -j -g -p -r ... + # Note: -j is JSON stdout (newer forks), -o 4 was the old syntax + # gain/ppm must come BEFORE -r cmd = [ acarsdec_path, - '-o', '4', # JSON output to stdout + '-j', # JSON output to stdout ] # Add gain if not auto (must be before -r)