X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=raspberry-kiosk%2Fkiosk.js;h=90addfb9ec6544378e344a6c393b18d873b21a82;hb=1263fe34ac655a03a3f5b657ff9a0c6f85e95477;hp=512a3379834041a2f5107ee3aab19e2fa2e6bd80;hpb=8110e4afe4bf6aee1f19740bd9482a502cdb8d3c;p=svn42.git diff --git a/raspberry-kiosk/kiosk.js b/raspberry-kiosk/kiosk.js index 512a337..90addfb 100644 --- a/raspberry-kiosk/kiosk.js +++ b/raspberry-kiosk/kiosk.js @@ -23,7 +23,7 @@ function writeGooglePlusEvents(data, elem) } } ghtml += '
' - ghtml += '

'+item.updated+'

'; + ghtml += '

'+item.updated.substring(0,16).replace("T"," ")+'

'; ghtml += '

'+notetxt+'

'; if (noteimg) { @@ -106,7 +106,7 @@ function writeAnwesenheitStatus(data) { $.each( data.sensors[s], function(stype, std){ $.each( std, function(swhere, svalue){ - sensorstd+=''+stype+'
'+swhere+': '+svalue+''; + sensorstd+=''+stype+'
'+swhere+': '+svalue+''; }); }); } @@ -149,9 +149,9 @@ $(document).ready(function() loadCalendar(); loadGooglePlusEvents(); setInterval("updateAnwesenheitStatus()", 10000); - setInterval("loadCalendar()", 100000); - setInterval("updateSensors()", 50000); - setInterval("loadGooglePlusEvents()", 3600*1000); + setInterval("loadCalendar()", 123*1000); + setInterval("updateSensors()",125*1000); + setInterval("loadGooglePlusEvents()", 1207*1000); }); function updateDateClock(now)