2016-03-28 16:37:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
rrdtool graph counter.gif \
|
2016-03-29 19:22:28 +02:00
|
|
|
-s 'now -1 day' -e 'now' \
|
2016-04-02 18:20:11 +02:00
|
|
|
-w 800 -h 600 \
|
2016-04-09 18:06:19 +02:00
|
|
|
-A -Y \
|
2016-03-28 16:37:53 +02:00
|
|
|
DEF:counter=water.rrd:counter:LAST \
|
2016-03-29 19:22:28 +02:00
|
|
|
VDEF:lastcount=counter,LAST \
|
|
|
|
"GPRINT:lastcount:%6.3lf m³" \
|
2016-03-28 16:37:53 +02:00
|
|
|
LINE2:counter#000000:"Zählerstand [m³]"
|
|
|
|
display counter.gif&
|
|
|
|
rrdtool graph consum.gif \
|
2016-03-29 19:22:28 +02:00
|
|
|
-s 'now -1 day' -e 'now' \
|
2016-04-02 18:20:11 +02:00
|
|
|
-w 800 -h 600 \
|
2016-03-28 16:37:53 +02:00
|
|
|
DEF:consum=water.rrd:consum:AVERAGE \
|
|
|
|
CDEF:consumltr=consum,60000,* \
|
2016-03-29 19:22:28 +02:00
|
|
|
CDEF:conpd=consumltr,60,*,24,* \
|
|
|
|
VDEF:conpdtotal=conpd,AVERAGE \
|
|
|
|
"GPRINT:conpdtotal:Total %4.0lf l/d" \
|
2016-03-28 16:37:53 +02:00
|
|
|
LINE2:consumltr#00FF00:"Verbrauch [l/min]"
|
|
|
|
display consum.gif&
|