++timeout for firmware answer, --bug
[svn42.git] / sensor_graph / sensor-light.cgi
1 #!/usr/bin/rrdcgi
2 <HTML>
3 <BODY>
4 <RRD::GOODFOR 30>
5 <RRD::GRAPH ../light0.png
6    --imginfo '<IMG SRC="/%s" WIDTH="%lu" HEIGHT="%lu" >'
7    --color="BACK#d0d0af" --color="CANVAS#ffffff" 
8    --color="SHADEA#dfdfdf" --color="SHADEB#525252" 
9    --color="AXIS#761407" --color="FONT#272727" --color="MGRID#b65447"
10    --color="ARROW#761407" --color="GRID#d0d0af"
11    --title="Room Illumination" --lazy
12    --start=now-36h --end=now --width=490
13    --slope-mode --alt-autoscale-max
14    DEF:cel=/home/sensorlight.rrd:light:LAST VDEF:lv=cel,LAST
15    LINE2:cel#04d532:"0 complete darkness via 450 dark to 1023 quite bright," GPRINT:lv:"Current Value\: %1.0lf">
16 </BODY>
17 </HTML>