diff --git a/www/index.html b/www/index.html index 4e4f9992..610f033a 100644 --- a/www/index.html +++ b/www/index.html @@ -143,6 +143,9 @@ }); } + // Auto-reload every 5 seconds + setInterval(reload, 5000); + const url = new URL('api', location.href); fetch(url, {cache: 'no-cache'}).then(r => r.json()).then(data => { const info = document.querySelector('.info');