]> mj.ucw.cz Git - arexx.git/commitdiff
Renamed the example graphing script to a sensible name
authorMartin Mares <mj@ucw.cz>
Sun, 12 Feb 2012 17:55:50 +0000 (18:55 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Feb 2012 17:55:50 +0000 (18:55 +0100)
example-graphs [new file with mode: 0755]
rg [deleted file]

diff --git a/example-graphs b/example-graphs
new file mode 100755 (executable)
index 0000000..558d793
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+# An example graphing script for arexxd
+
+D=/var/log/arexxd
+
+rrdtool graph graph-12h-temp.png \
+       --start 'now-12h' \
+       --end 'now' \
+       --title "Temperature" \
+       -w 720 -h 600 \
+       -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
+       -y 5:1 \
+       --right-axis 1:0 --right-axis-format "%3.0lf" \
+       --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
+       --legend-position east \
+       DEF:a=$D/sensor-10415.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
+       DEF:b=$D/sensor-12133.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \
+       DEF:c=$D/sensor-19246.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium'
+
+rrdtool graph graph-12h-humidity.png \
+       --start 'now-12h' \
+       --end 'now' \
+       --title "Relative Humidity" \
+       -w 720 -h 600 \
+       -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
+       -y 5:2 \
+       --right-axis 1:0 --right-axis-format "%3.0lf" \
+       --legend-position east \
+       --units-exponent 0 --lower-limit 0 --upper-limit 100 --rigid \
+       DEF:a=$D/sensor-19247.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium'
+
+rrdtool graph graph-monthly-temp.png \
+       --start 'now-30d' \
+       --end 'now' \
+       --title "Temperature: MIN and MAX" \
+       -w 720 -h 600 \
+       -x DAY:1:DAY:5:DAY:5:0:%d:%m \
+       -y 5:1 \
+       --right-axis 1:0 --right-axis-format "%3.0lf" \
+       --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
+       --legend-position east \
+       DEF:alo=$D/sensor-10415.rrd:temp:MIN 'LINE1:alo#0000cc:Ursarium\n' \
+       DEF:ahi=$D/sensor-10415.rrd:temp:MAX 'LINE1:ahi#0000cc' \
+       DEF:blo=$D/sensor-12133.rrd:temp:MIN 'LINE1:blo#00cc00:Balcony\n' \
+       DEF:bhi=$D/sensor-12133.rrd:temp:MAX 'LINE1:bhi#00cc00' \
+       DEF:clo=$D/sensor-19246.rrd:temp:MIN 'LINE1:clo#cc0000:Catarium' \
+       DEF:chi=$D/sensor-19246.rrd:temp:MAX 'LINE1:chi#cc0000'
+
+gq
diff --git a/rg b/rg
deleted file mode 100755 (executable)
index 558d793..0000000
--- a/rg
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# An example graphing script for arexxd
-
-D=/var/log/arexxd
-
-rrdtool graph graph-12h-temp.png \
-       --start 'now-12h' \
-       --end 'now' \
-       --title "Temperature" \
-       -w 720 -h 600 \
-       -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
-       -y 5:1 \
-       --right-axis 1:0 --right-axis-format "%3.0lf" \
-       --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
-       --legend-position east \
-       DEF:a=$D/sensor-10415.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
-       DEF:b=$D/sensor-12133.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \
-       DEF:c=$D/sensor-19246.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium'
-
-rrdtool graph graph-12h-humidity.png \
-       --start 'now-12h' \
-       --end 'now' \
-       --title "Relative Humidity" \
-       -w 720 -h 600 \
-       -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
-       -y 5:2 \
-       --right-axis 1:0 --right-axis-format "%3.0lf" \
-       --legend-position east \
-       --units-exponent 0 --lower-limit 0 --upper-limit 100 --rigid \
-       DEF:a=$D/sensor-19247.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium'
-
-rrdtool graph graph-monthly-temp.png \
-       --start 'now-30d' \
-       --end 'now' \
-       --title "Temperature: MIN and MAX" \
-       -w 720 -h 600 \
-       -x DAY:1:DAY:5:DAY:5:0:%d:%m \
-       -y 5:1 \
-       --right-axis 1:0 --right-axis-format "%3.0lf" \
-       --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
-       --legend-position east \
-       DEF:alo=$D/sensor-10415.rrd:temp:MIN 'LINE1:alo#0000cc:Ursarium\n' \
-       DEF:ahi=$D/sensor-10415.rrd:temp:MAX 'LINE1:ahi#0000cc' \
-       DEF:blo=$D/sensor-12133.rrd:temp:MIN 'LINE1:blo#00cc00:Balcony\n' \
-       DEF:bhi=$D/sensor-12133.rrd:temp:MAX 'LINE1:bhi#00cc00' \
-       DEF:clo=$D/sensor-19246.rrd:temp:MIN 'LINE1:clo#cc0000:Catarium' \
-       DEF:chi=$D/sensor-19246.rrd:temp:MAX 'LINE1:chi#cc0000'
-
-gq