[Fix] doorstatus not updating every minute #46

Merged
max merged 1 commit from fix-doorstatus into main 2024-02-02 15:56:04 +01:00
Showing only changes of commit 8a66b0a361 - Show all commits

fix doorstatus not updating every minute
All checks were successful
/ build (pull_request) Successful in 40s
/ cleanup-staging (pull_request) Successful in 2s
/ build (push) Successful in 13s

roomstate.js incorrectly used setTimeout() instead of setInterval() to
call the door status. This caused the status to only be updated once
after the initial page load, instead of once every minute
dario 2024-02-02 15:44:59 +01:00
Signed by: dario
SSH key fingerprint: SHA256:zP7OE8nhYwOWaDhOawrP6NmUVcZWi0wyPKQa6052GpM

View file

@ -76,5 +76,5 @@ function update() {
window.onload = function () {
update()
window.setTimeout(update, interval_ms)
window.setInterval(update, interval_ms)
}