sensor graphs for homepage
[svn42.git] / sensor_graph / sensor-light.cgi
diff --git a/sensor_graph/sensor-light.cgi b/sensor_graph/sensor-light.cgi
new file mode 100755 (executable)
index 0000000..bf3f019
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/rrdcgi
+<HTML>
+<BODY>
+<RRD::GOODFOR 30>
+<RRD::GRAPH ../light0.png
+   --lazy --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
+   --title="Room Illumination"
+   DEF:cel=/home/sensorlight.rrd:light:LAST
+   LINE2:cel#00a000:"0 dark to 1023 bright">
+</BODY>
+</HTML>