Compare commits

..

No commits in common. "f6180386d134f9a7630673665ae277ff66dc8f56" and "743aeee1304368c2ab8560d336f547319e7dd60d" have entirely different histories.

2 changed files with 17 additions and 6 deletions

View File

@ -110,7 +110,9 @@ 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),
"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),
}

View File

@ -339,20 +339,20 @@
<div class="monitor-block">
<h2><i class="fas fa-thermometer-half"></i> Pro</h2>
<div class="monitor-values" id="Pro">
<div class="monitor-value">#1<br>0.0 bar</div>
<div class="monitor-value">#2<br>0.0 bar</div>
<div class="monitor-value">#3<br>0.0 bar</div>
<div class="monitor-value">#1<br>0.0 units</div>
<div class="monitor-value">#2<br>0.0 units</div>
<div class="monitor-value">#3<br>0.0 units</div>
</div>
</div>
<div class="monitor-block">
<div style="display: flex; justify-content: space-between;">
<div style="flex: 1; margin-right: 10px;">
<h2><i class="fas fa-tachometer-alt"></i> Tank Level</h2>
<div class="monitor-value"><br>0.0 %</div>
<div class="monitor-value">DS<br>0.0</div>
</div>
<div style="flex: 1; margin-left: 10px;">
<h2><i class="fas fa-exchange-alt"></i> Qconso</h2>
<div class="monitor-value"><br>0.0 L/h</div>
<div class="monitor-value">DS<br>0.0 L/h</div>
</div>
</div>
</div>
@ -508,6 +508,15 @@
}
}
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}<br>${values[index]} ${unit}`;
}
});
}
setInterval(updateMonitorData, 1000);