Änderung Controller

This commit is contained in:
Erik Thiele
2026-05-27 23:08:12 +02:00
parent 08b57d447f
commit 186b778051
3 changed files with 115 additions and 24 deletions

View File

@@ -172,9 +172,15 @@
} catch (_) {}
}
function heartbeat() {
fetch('/api/display/ping', { method: 'POST' }).catch(() => {});
}
window.addEventListener('load', () => {
poll();
heartbeat();
setInterval(poll, 1500);
setInterval(heartbeat, 5000);
});
</script>
</body>