From 67599c3f1a684b58e8fcfe209b0f4a2eaaf2aa70 Mon Sep 17 00:00:00 2001 From: Paul Buckley Date: Mon, 15 Jun 2026 16:13:40 -0700 Subject: [PATCH] feat(sat): print web GUI URL at top of sat scan output Add sat.web_ui_url() returning the SDR container's web GUI root and echo it at the start of sat scan / mock-scan output (suppressed for JSON output). --- src/hubblenetwork/cli.py | 3 +++ src/hubblenetwork/sat.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/hubblenetwork/cli.py b/src/hubblenetwork/cli.py index 556d8a2..683317c 100644 --- a/src/hubblenetwork/cli.py +++ b/src/hubblenetwork/cli.py @@ -3281,6 +3281,9 @@ def _run_sat_scan( sys.exit(1) if not printer.suppress_info_messages: + click.secho( + f"[INFO] Web GUI: {sat_mod.web_ui_url()}", fg="green" + ) click.secho( f"[INFO] Starting {mode_label}... (Press Ctrl+C to stop)" ) diff --git a/src/hubblenetwork/sat.py b/src/hubblenetwork/sat.py index 5addcb7..e7d7c99 100644 --- a/src/hubblenetwork/sat.py +++ b/src/hubblenetwork/sat.py @@ -34,6 +34,11 @@ def _packets_url(port: int = API_PORT) -> str: return f"http://localhost:{port}/api/packets" +def web_ui_url(port: int = API_PORT) -> str: + """URL of the SDR container's web GUI for viewing decoded packets.""" + return f"http://localhost:{port}/" + + # --------------------------------------------------------------------------- # Docker helpers # ---------------------------------------------------------------------------