1
0
mirror of https://github.com/skaringa/water-counter.git synced 2024-11-22 01:14:24 +01:00

produce larger graph

This commit is contained in:
Martin Kompf 2016-04-02 18:20:11 +02:00
parent d7d7e1b058
commit 5a58e22bb8

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
rrdtool graph counter.gif \ rrdtool graph counter.gif \
-s 'now -1 day' -e 'now' \ -s 'now -1 day' -e 'now' \
-w 800 -h 600 \
-X 0 -A \ -X 0 -A \
DEF:counter=water.rrd:counter:LAST \ DEF:counter=water.rrd:counter:LAST \
VDEF:lastcount=counter,LAST \ VDEF:lastcount=counter,LAST \
@ -9,6 +10,7 @@ rrdtool graph counter.gif \
display counter.gif& display counter.gif&
rrdtool graph consum.gif \ rrdtool graph consum.gif \
-s 'now -1 day' -e 'now' \ -s 'now -1 day' -e 'now' \
-w 800 -h 600 \
DEF:consum=water.rrd:consum:AVERAGE \ DEF:consum=water.rrd:consum:AVERAGE \
CDEF:consumltr=consum,60000,* \ CDEF:consumltr=consum,60000,* \
CDEF:conpd=consumltr,60,*,24,* \ CDEF:conpd=consumltr,60,*,24,* \