From 69a872847cdcd663559988ec44e34055e525b66d Mon Sep 17 00:00:00 2001 From: Jan Svabenik Date: Wed, 18 Mar 2026 07:54:04 +0100 Subject: [PATCH] Add live listen mode and duration controls --- web/app.js | 5 +++-- web/index.html | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/web/app.js b/web/app.js index c467651..d731d82 100644 --- a/web/app.js +++ b/web/app.js @@ -1129,8 +1129,9 @@ if (liveListenEventBtn) { if (!ev) return; const freq = ev.center_hz; const bw = ev.bandwidth_hz || 12000; - const mode = ev.class?.mod_type || 'NFM'; - const url = `/api/demod?freq=${freq}&bw=${bw}&mode=${mode}&sec=2`; + const mode = (listenModeSelect?.value || ev.class?.mod_type || 'NFM'); + const sec = parseInt(listenSecondsInput?.value || '2', 10); + const url = `/api/demod?freq=${freq}&bw=${bw}&mode=${mode}&sec=${sec}`; const audio = new Audio(url); audio.play(); }); diff --git a/web/index.html b/web/index.html index 2b771ec..05521dc 100644 --- a/web/index.html +++ b/web/index.html @@ -179,6 +179,21 @@
Detected carriers0 live
No live signals yet.
+
+ + +