From 74d7c41b93c9fa1be73a5816df812d5b2b26a967 Mon Sep 17 00:00:00 2001 From: Roby Date: Fri, 16 Oct 2026 20:31:23 +0200 Subject: [PATCH 1/3] enhanceded RSSI --- templates/index.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index df5b41b..bfe164f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -979,7 +979,25 @@ const slotDisplay = protocol === "DMR" ? `TS${rawSlot}` : "--"; let protoColor = "#3b82f6"; if (protocol === "NXDN") protoColor = "#10b981"; else if (protocol === "YSF") protoColor = "#8b5cf6"; else if (protocol === "D-STAR") protoColor = "#06b6d4"; else if (protocol === "P25") protoColor = "#f59e0b"; - // Formatta l'RSSI (nascondilo se รจ 0) + // Formatta l'RSSI con S-Meter grafico (nascondilo se รจ 0) + let rssiDisplay = '---'; + if (rawRssi && rawRssi !== 0) { + // Calcola la percentuale su un range utile di 80 dB (da -130 a -50 dBm) + const pct = Math.max(0, Math.min(100, ((rawRssi + 130) / 80) * 100)); + + // Assegna il colore in stile S-Meter amatoriale + let barColor = "var(--success)"; // Verde (fino a S9 / -93 dBm) + if (rawRssi > -93) barColor = "#f59e0b"; // Giallo (S9+) + if (rawRssi > -73) barColor = "var(--danger)"; // Rosso (S9+20 o superiore) + + rssiDisplay = ` +
+
+
+
+ ${esc(rawRssi)} +
`; +} const rssiDisplay = rawRssi && rawRssi !== 0 ? `${esc(rawRssi)} dBm` : '---'; if (source.includes("๐ŸŒ")) { -- 2.47.3 From 95b5dd4cbc64f60796060651f191fd9e2c0dbe0a Mon Sep 17 00:00:00 2001 From: Roby Date: Fri, 16 Oct 2026 20:41:36 +0200 Subject: [PATCH 2/3] update index.html --- templates/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index bfe164f..7594c05 100644 --- a/templates/index.html +++ b/templates/index.html @@ -997,9 +997,7 @@ ${esc(rawRssi)} `; -} - const rssiDisplay = rawRssi && rawRssi !== 0 ? `${esc(rawRssi)} dBm` : '---'; - + } if (source.includes("๐ŸŒ")) { if (!networkLogs[clientId]) networkLogs[clientId] = ""; networkLogs[clientId] += `
[${esc(time)}] [${esc(protocol)}] ${esc(source.replace("๐ŸŒ", "").trim())}
`; -- 2.47.3 From cd2960d00bccd7fcc79ee990f6819471f1bc97ee Mon Sep 17 00:00:00 2001 From: Roby Date: Fri, 16 Oct 2026 20:45:13 +0200 Subject: [PATCH 3/3] update index.html --- templates/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 7594c05..bebc53a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -997,7 +997,8 @@ ${esc(rawRssi)} `; - } + } + if (source.includes("๐ŸŒ")) { if (!networkLogs[clientId]) networkLogs[clientId] = ""; networkLogs[clientId] += `
[${esc(time)}] [${esc(protocol)}] ${esc(source.replace("๐ŸŒ", "").trim())}
`; -- 2.47.3