1
0
mirror of https://github.com/skaringa/water-counter.git synced 2024-11-22 01:14:24 +01:00
water-counter/graph.sh
2016-03-28 16:37:53 +02:00

14 lines
383 B
Bash
Executable File

#!/bin/sh
rrdtool graph counter.gif \
-s 'now -20 hour' -e 'now' \
-X 0 -A \
DEF:counter=water.rrd:counter:LAST \
LINE2:counter#000000:"Zählerstand [m³]"
display counter.gif&
rrdtool graph consum.gif \
-s 'now -20 hour' -e 'now' \
DEF:consum=water.rrd:consum:AVERAGE \
CDEF:consumltr=consum,60000,* \
LINE2:consumltr#00FF00:"Verbrauch [l/min]"
display consum.gif&