From 985280cfe98e159229a240f7a9bec4f97e023fd0 Mon Sep 17 00:00:00 2001 From: Etienne Chassaing <60154720+cetiennec@users.noreply.github.com> Date: Wed, 6 Aug 2025 11:56:51 +0200 Subject: [PATCH] Qconso reading updated --- main.py | 3 ++- templates/control.html | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index c4827ce..d23cf92 100644 --- a/main.py +++ b/main.py @@ -110,7 +110,8 @@ def format_DS_data(data): "TankLevel": np.round(data.get("TankLevel", 0.0), 2), "Qinlet": np.round(data.get("Inlet_flow", 0.0), 1), "Qoutlet": np.round(data.get("Outlet_flow", 0.0), 1), - "Q_conso": np.round(data.get("Inlet_flow", 0.0), 1) - np.round(data.get("Outlet_flow", 0.0), 1), + "Qconso": np.round(data.get("Inlet_flow", 0.0), 1) + - np.round(data.get("Outlet_flow", 0.0), 1), } diff --git a/templates/control.html b/templates/control.html index 2b322e7..2193f7c 100644 --- a/templates/control.html +++ b/templates/control.html @@ -540,8 +540,7 @@ const dsData = allData["DS"]; if (dsData) { document.querySelector("#TankLevel .monitor-value").innerHTML = `DS
${dsData.TankLevel.toFixed(1)}`; - const qconso = dsData.Qinlet - dsData.Qoutlet; - document.querySelector("#Qconso .monitor-value").innerHTML = `DS
${qconso.toFixed(1)} L/h`; + document.querySelector("#Qconso .monitor-value").innerHTML = `DS
${dsData.Qconso.toFixed(1)} L/h`; } } catch (error) {