added interface class for app

refactored web and webApi -> now RestApi.h
fix calcSunrise
fixed calcSunrise trigger calculation
display zero values on /live
added changes from #483
This commit is contained in:
lumapu 2022-12-14 22:32:08 +01:00
parent a8d7e430f7
commit 49b530a743
19 changed files with 1366 additions and 1511 deletions

View file

@ -191,15 +191,12 @@
}
function tick() {
if(0 != ts)
document.getElementById("date").innerHTML = (new Date((ts+tickCnt) * 1000)).toLocaleString('de-DE');
if(++tickCnt >= 10) {
tickCnt = 0;
getAjax('/api/index', parse);
}
else {
var dSpan = document.getElementById("date");
if(0 != ts)
dSpan.innerHTML = (new Date((ts+tickCnt) * 1000)).toLocaleString('de-DE');
}
}
function parse(obj) {