diff --git a/main.py b/main.py index abe2edc..f9dcbba 100644 --- a/main.py +++ b/main.py @@ -110,9 +110,7 @@ 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_filt": np.round(data.get("Qdrain_sp", 0.0), 1), - "Q_conso_filt": np.round(data.get("Qdrain_sp", 0.0), 1), - "Q_conso_filt": np.round(data.get("Qdrain_sp", 0.0), 1), + "Q_conso": 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 b1df70a..a0440a4 100644 --- a/templates/control.html +++ b/templates/control.html @@ -339,20 +339,20 @@

Pro

-
#1
0.0 units
-
#2
0.0 units
-
#3
0.0 units
+
#1
0.0 bar
+
#2
0.0 bar
+
#3
0.0 bar

Tank Level

-
DS
0.0
+

0.0 %

Qconso

-
DS
0.0 L/h
+

0.0 L/h
@@ -508,15 +508,6 @@ } } - function updateMonitorValues(id, values, unit) { - const container = document.getElementById(id); - const valueElements = container.querySelectorAll('.monitor-value'); - valueElements.forEach((element, index) => { - if (index < values.length) { - element.innerHTML = `#${index + 1}
${values[index]} ${unit}`; - } - }); - } setInterval(updateMonitorData, 1000);