]> mj.ucw.cz Git - arexx.git/blob - rg
0cd6181460349a3d5b3102b3734ec2807ddc9822
[arexx.git] / rg
1 #!/bin/sh
2 # An example graphing script for arexxd
3
4 D=/var/log/arexxd
5
6 rrdtool graph graph-12h-temp.png \
7         --start 'now-12h' \
8         --end 'now' \
9         --title "Temperature" \
10         -w 720 -h 600 \
11         -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
12         -y 5:2 \
13         --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
14         --legend-position east \
15         DEF:a=$D/sensor-10415.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
16         DEF:b=$D/sensor-12133.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \
17         DEF:c=$D/sensor-19246.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium'
18
19 rrdtool graph graph-12h-humidity.png \
20         --start 'now-12h' \
21         --end 'now' \
22         --title "Relative Humidity" \
23         -w 720 -h 600 \
24         -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
25         -y 5:2 \
26         --legend-position east \
27         --units-exponent 0 --lower-limit 0 --upper-limit 100 --rigid \
28         DEF:a=$D/sensor-19247.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium'