no message

This commit is contained in:
belevo\mh
2025-12-17 09:29:16 +01:00
parent 7f5a6bcade
commit ca74e3d946
2 changed files with 42 additions and 13 deletions
+19
View File
@@ -25,6 +25,7 @@
<div style="margin-top:10px;display:flex;flex-direction:column;gap:8px;max-width:520px;">
<div style="font-weight:600;">Werte</div>
<div id="values" style="display:flex;flex-direction:column;gap:6px;"></div>
<div id="debug" style="margin-top:8px;font-size:12px;opacity:0.65;"></div>
</div>
</div>
@@ -36,6 +37,7 @@
const elNext = document.getElementById('next');
const elValues = document.getElementById('values');
const elPeriod = document.getElementById('period');
const elDebug = document.getElementById('debug');
// Range ändern -> sofort rechnen
elRange.addEventListener('change', () => requestAction('SetRange', elRange.value));
@@ -77,6 +79,23 @@
// Nur die 4 gewünschten Werte anzeigen (fixe Reihenfolge)
renderValues(data.values || {});
if (data.debug) {
const p = data.debug.prod || {};
const f = data.debug.feed || {};
const g = data.debug.grid || {};
elDebug.textContent =
`Prod(var=${p.varId}, arch=${p.archiveId}, count=${p.count}) | ` +
`Feed(var=${f.varId}, arch=${f.archiveId}, count=${f.count}) | ` +
`Grid(var=${g.varId}, arch=${g.archiveId}, count=${g.count})`;
} else {
elDebug.textContent = '';
}
};
function renderValues(values) {