From d5c42a4899cb4fd74881e952f469c7b27064dbf6 Mon Sep 17 00:00:00 2001 From: Rahix Date: Sat, 5 Oct 2024 19:43:54 +0200 Subject: [PATCH] succd: Hint at invalid process values When the succbone connection breaks, add hints to the UI that values may no longer be correct. --- succbone/succd/index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/succbone/succd/index.html b/succbone/succd/index.html index 8175625..abd5695 100644 --- a/succbone/succd/index.html +++ b/succbone/succd/index.html @@ -410,6 +410,15 @@ window.addEventListener("load", (_) => { socket.addEventListener("close", (event) => { status.innerHTML = "Offline"; status.style = colors.highlightFault; + + // Indicate all process values as unknown + + [failsafe, highpressure, rp, dp, trough, thigh, volts, mbar].forEach((el) => { + if (!el.innerHTML.includes("??")) { + el.innerHTML += "??"; + } + }); + if (connected) { console.log("Socket dead, reconnecting..."); }