use sensors shmcache
authorBernhard Tittelbach <xro@realraum.at>
Wed, 24 Apr 2013 12:35:52 +0000 (12:35 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Wed, 24 Apr 2013 12:35:52 +0000 (12:35 +0000)
raspberry-kiosk/kiosk.html
raspberry-kiosk/kiosk.js

index 3c535c1..ed526b6 100644 (file)
     </table>
     </div>
     <div class="sensorelem">
-     <img id="tempsensor" class="sensorimg" src="http://realraum.at/get_sensor.php?sensor=temp"/>
+     <img id="tempsensor" class="sensorimg" src="http://realraum.at/shmcache/temp0.png"/>
     </div>
     <div class="sensorelem">
-      <img id="lightsensor" class="sensorimg" src="http://realraum.at/get_sensor.php?sensor=light"/>
+      <img id="lightsensor" class="sensorimg" src="http://realraum.at/shmcache/light0.png"/>
     </div>
     <div class="sensorelem">
-      <img id="movementsensor" class="sensorimg" src="http://realraum.at/get_sensor.php?sensor=movement"/>
+      <img id="movementsensor" class="sensorimg" src="http://realraum.at/shmcache/movement.png"/>
     </div>
   </div>
   
index 29f7ba8..7315033 100644 (file)
@@ -225,7 +225,7 @@ function reloadImg(element)
       {
         img_orig_src[element.id] = element.src;
       }
-      new_image.src = img_orig_src[element.id] + "&dt="+Math.floor(new Date().getTime() / 1000).toString();
+      new_image.src = img_orig_src[element.id] + "?dt="+Math.floor(new Date().getTime() / 1000).toString();
       if (IsImageOk(new_image))
       {
         element.parentNode.insertBefore(new_image,element);