From 05412fbfc36810545466fcfc006d4a9f0bad432e Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 12 Mar 2026 10:27:12 +0000 Subject: [PATCH] fix(wifi_locate): read correct RSSI field from SSE network events Backend sends rssi_current but frontend was reading net.signal || net.rssi, causing RSSI to parse as NaN and silently skipping all meter/audio updates. Co-Authored-By: Claude Opus 4.6 --- static/js/modes/wifi_locate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/modes/wifi_locate.js b/static/js/modes/wifi_locate.js index c04c5be..1b2a3e9 100644 --- a/static/js/modes/wifi_locate.js +++ b/static/js/modes/wifi_locate.js @@ -189,7 +189,7 @@ const WiFiLocate = (function() { const net = data.network; const bssid = (net.bssid || '').toUpperCase(); if (bssid === targetBssid) { - const rssi = parseInt(net.signal || net.rssi, 10); + const rssi = parseInt(net.rssi_current ?? net.signal ?? net.rssi, 10); if (!isNaN(rssi)) { // Pick up SSID if we don't have it yet if (!targetSsid && net.essid) {