From 7a3784d3de1dbee1a09b8c0b91ded21a50040f2f Mon Sep 17 00:00:00 2001 From: Rahix Date: Sat, 5 Oct 2024 19:43:54 +0200 Subject: [PATCH 1/2] 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..."); } From 995addbabcaf7179991551de5ea538d2fe73fc3f Mon Sep 17 00:00:00 2001 From: Rahix Date: Sat, 5 Oct 2024 19:44:55 +0200 Subject: [PATCH 2/2] succd: Update rough vacuum hysteresis once more We see fluctuation slightly above 4e-2 mbar so let's increase the hysteresis value a bit more. --- succbone/succd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/succbone/succd/main.go b/succbone/succd/main.go index 4a39d11..64663a8 100644 --- a/succbone/succd/main.go +++ b/succbone/succd/main.go @@ -14,7 +14,7 @@ var ( flagFake bool flagListenHTTP string flagPressureThresholdRough = ScientificNotationValue(1e-1) - flagPressureThresholdRoughHysteresis = ScientificNotationValue(2e-2) + flagPressureThresholdRoughHysteresis = ScientificNotationValue(3e-2) flagPressureThresholdHigh = ScientificNotationValue(1e-4) flagPressureThresholdHighHysteresis = ScientificNotationValue(2e-5) )