Adds debug options in html
This commit is contained in:
parent
985280cfe9
commit
72deb7646e
|
|
@ -539,8 +539,21 @@
|
|||
// Update Tank Level and Qconso
|
||||
const dsData = allData["DS"];
|
||||
if (dsData) {
|
||||
document.querySelector("#TankLevel .monitor-value").innerHTML = `DS<br>${dsData.TankLevel.toFixed(1)}`;
|
||||
document.querySelector("#Qconso .monitor-value").innerHTML = `DS<br>${dsData.Qconso.toFixed(1)} L/h`;
|
||||
const tankLevelElement = document.querySelector("#TankLevel .monitor-value");
|
||||
const qconsoElement = document.querySelector("#Qconso .monitor-value");
|
||||
|
||||
if (tankLevelElement) {
|
||||
tankLevelElement.innerHTML = `DS<br>${dsData.TankLevel.toFixed(1)}`;
|
||||
} else {
|
||||
console.error('Element with selector "#TankLevel .monitor-value" not found.');
|
||||
}
|
||||
|
||||
if (qconsoElement) {
|
||||
const qconso = dsData.Qinlet - dsData.Qoutlet;
|
||||
qconsoElement.innerHTML = `DS<br>${qconso.toFixed(1)} L/h`;
|
||||
} else {
|
||||
console.error('Element with selector "#Qconso .monitor-value" not found.');
|
||||
}
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user