correct range
authorBernhard Tittelbach <xro@realraum.at>
Sun, 7 Mar 2010 02:48:13 +0000 (02:48 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Sun, 7 Mar 2010 02:48:13 +0000 (02:48 +0000)
sensor_graph/sensors.cgi

index be5ef8d..b9305cd 100755 (executable)
@@ -6,21 +6,21 @@
 <RRD::GOODFOR 30>
 <P>
 <RRD::GRAPH ../light0.png
-   --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
-   --lazy --title="Room Illumination"
+   --lazy --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
+   --title="Room Illumination"
    DEF:cel=/home/sensordata.rrd:light:LAST
-   LINE2:cel#00a000:"0 dark to 1024 bright">
+   LINE2:cel#00a000:"0 dark to 1023 bright">
 </P>
 <P>
 <RRD::GRAPH ../temp0.png
-   --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
-   --lazy --title="Temperatures"
+   --lazy --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
+   --title="Temperatures"
    DEF:cel=/home/sensordata.rrd:temp:LAST
    LINE2:cel#00a000:"D. Celsius">
 </P>
 <RRD::GRAPH ../movement.png
-  --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
-  --lazy --title="Graph of Movement Sensor"
+  --lazy --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
+  --title="Graph of Movement Sensor"
   DEF:cel=/home/sensordata.rrd:movement:LAST
   LINE2:cel#00a000:"1 Movement, 0 No Movement">
 </P>