-
Notifications
You must be signed in to change notification settings - Fork 0
/
creategraphs
executable file
·73 lines (65 loc) · 2.45 KB
/
creategraphs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
IMGDIR=/var/www/img
rrdtool graph $IMGDIR/counter-hour.png -w 540 -h 140 \
--title "Gasmeter" \
-c CANVAS#FCFCFC -c FONT#000000 -c BACK#FCFCFC \
--slope-mode \
-s -1h \
-v "Kuubs" \
--units-exponent 0 \
--alt-y-grid \
--alt-autoscale \
--rigid \
--watermark "`date`" \
DEF:counter='/var/lib/gasmeter/gm-counter-highres.rrd':counter:LAST \
LINE1:counter#FF0000 \
rrdtool graph $IMGDIR/counter-day.png -w 540 -h 140 \
--title "Gasmeter" \
--slope-mode \
-s -1d \
-v "Kuubs" \
--units-exponent 0 \
--alt-autoscale \
--alt-y-grid \
--rigid \
--watermark "`date`" \
DEF:counter='/var/lib/gasmeter/gm-counter-highres.rrd':counter:LAST \
CDEF:counterkuubs=counter,1,/ \
LINE1:counterkuubs#FF0000
rrdtool graph $IMGDIR/counter-week.png -w 540 -h 140 \
--title "Gasmeter" \
--slope-mode \
-s -1w \
-v "Kuubs" \
--units-exponent 0 \
--alt-autoscale \
--alt-y-grid \
--rigid \
--watermark "`date`" \
DEF:counter='/var/lib/gasmeter/gm-counter-highres.rrd':counter:LAST \
CDEF:counterkuubs=counter,1,/ \
LINE1:counterkuubs#FF0000
rrdtool graph $IMGDIR/flow-hour.png -w 540 -h 140 \
--title "Gasflow" \
--slope-mode \
-s -1h \
-v "Kubikemeter per uur" \
--watermark "`date`" \
DEF:flow='/var/lib/gasmeter/gm-flow-highres.rrd':flow:AVERAGE \
AREA:flow#00008B
rrdtool graph $IMGDIR/flow-day.png -w 540 -h 140 \
--title "Gasflow" \
--slope-mode \
-s -1d \
-v "Kuub per uur" \
--watermark "`date`" \
DEF:flow='/var/lib/gasmeter/gm-flow-highres.rrd':flow:AVERAGE \
AREA:flow#00008B
rrdtool graph $IMGDIR/flow-week.png -w 540 -h 140 \
--title "Gasflow" \
--slope-mode \
-s -1w \
-v "Kubikemeter per uur" \
--watermark "`date`" \
DEF:flow='/var/lib/gasmeter/gm-flow-highres.rrd':flow:AVERAGE \
AREA:flow#00008B