]> mj.ucw.cz Git - arexx.git/commitdiff
Home: Experimenting with new graph layout
authorMartin Mares <mj@ucw.cz>
Fri, 20 Jan 2012 16:03:53 +0000 (17:03 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 20 Jan 2012 16:03:53 +0000 (17:03 +0100)
web/temp-12h.cgi
web/temp-48h.cgi
web/temp-month.cgi
web/temp-quick.cgi

index 710c33d5bbc7b9a98c2fd4f0a7ec52fb5e2cd04c..3e82db68ffdd0235556943009533d5d23715140d 100755 (executable)
@@ -12,7 +12,16 @@ exec rrdtool graph - \
        --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-ursarium.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
-       DEF:d=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE1:d#cc0000:Catarium\n' \
-       DEF:c=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE1:c#cc00cc:Balcony\n' \
-       DEF:b=$D/sensor-outside.rrd:temp:AVERAGE 'LINE1:b#00cc00:Outside'
+       DEF:c=$D/sensor-catarium.rrd:temp:AVERAGE \
+       DEF:u=$D/sensor-ursarium.rrd:temp:AVERAGE \
+       DEF:b=$D/sensor-balcony.rrd:temp:AVERAGE \
+       DEF:o=$D/sensor-outside.rrd:temp:AVERAGE \
+       'AREA:c#cc7777' \
+       'AREA:u#7777cc' \
+       'AREA:b#cc77cc' \
+       'AREA:o#77cc77' \
+       'LINE2:c#cc0000:Catarium\n' \
+       'LINE2:u#0000cc:Ursarium\n' \
+       'LINE2:b#cc00cc:Balcony\n' \
+       'LINE2:o#00cc00:Outside' \
+       'HRULE:0#0000ff'
index 9613985029341e4adf5bc5b7ef0a89a6752d9092..e704c60ff95ac88e285096c8aa56898aa0153c55 100755 (executable)
@@ -12,7 +12,16 @@ exec rrdtool graph - \
        --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-ursarium.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
-       DEF:d=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE1:d#cc0000:Catarium\n' \
-       DEF:c=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE1:c#cc00cc:Balcony\n' \
-       DEF:b=$D/sensor-outside.rrd:temp:AVERAGE 'LINE1:b#00cc00:Outside'
+       DEF:c=$D/sensor-catarium.rrd:temp:AVERAGE \
+       DEF:u=$D/sensor-ursarium.rrd:temp:AVERAGE \
+       DEF:b=$D/sensor-balcony.rrd:temp:AVERAGE \
+       DEF:o=$D/sensor-outside.rrd:temp:AVERAGE \
+       'AREA:c#cc7777' \
+       'AREA:u#7777cc' \
+       'AREA:b#cc77cc' \
+       'AREA:o#77cc77' \
+       'LINE2:c#cc0000:Catarium\n' \
+       'LINE2:u#0000cc:Ursarium\n' \
+       'LINE2:b#cc00cc:Balcony\n' \
+       'LINE2:o#00cc00:Outside' \
+       'HRULE:0#0000ff'
index 76058aa111a904f59f16f64b7c8372aac6327e3a..3b409df9fd95c595ed21794658ccd5b323e3c694 100755 (executable)
@@ -12,11 +12,12 @@ exec rrdtool graph - \
        --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-ursarium.rrd:temp:MIN 'LINE1:alo#0000cc:Ursarium\n' \
-       DEF:ahi=$D/sensor-ursarium.rrd:temp:MAX 'LINE1:ahi#0000cc' \
-       DEF:dlo=$D/sensor-catarium.rrd:temp:MIN 'LINE1:dlo#cc0000:Catarium\n' \
-       DEF:dhi=$D/sensor-catarium.rrd:temp:MAX 'LINE1:dhi#cc0000' \
-       DEF:clo=$D/sensor-balcony.rrd:temp:MIN 'LINE1:clo#cc00cc:Balcony\n' \
-       DEF:chi=$D/sensor-balcony.rrd:temp:MAX 'LINE1:chi#cc00cc' \
-       DEF:blo=$D/sensor-outside.rrd:temp:MIN 'LINE1:blo#00cc00:Outside' \
-       DEF:bhi=$D/sensor-outside.rrd:temp:MAX 'LINE1:bhi#00cc00'
+       DEF:alo=$D/sensor-ursarium.rrd:temp:MIN 'LINE2:alo#0000cc:Ursarium\n' \
+       DEF:ahi=$D/sensor-ursarium.rrd:temp:MAX 'LINE2:ahi#0000cc' \
+       DEF:dlo=$D/sensor-catarium.rrd:temp:MIN 'LINE2:dlo#cc0000:Catarium\n' \
+       DEF:dhi=$D/sensor-catarium.rrd:temp:MAX 'LINE2:dhi#cc0000' \
+       DEF:clo=$D/sensor-balcony.rrd:temp:MIN 'LINE2:clo#cc00cc:Balcony\n' \
+       DEF:chi=$D/sensor-balcony.rrd:temp:MAX 'LINE2:chi#cc00cc' \
+       DEF:blo=$D/sensor-outside.rrd:temp:MIN 'LINE2:blo#00cc00:Outside' \
+       DEF:bhi=$D/sensor-outside.rrd:temp:MAX 'LINE2:bhi#00cc00' \
+       'HRULE:0#0000ff'
index 2c55dd43eb158f09920fe70163a94634423cbd6e..970957bf63167ae1afd866fb898b64d250b4f41a 100755 (executable)
@@ -12,7 +12,8 @@ exec rrdtool graph - \
        --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-ursarium.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
-       DEF:d=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE1:d#cc0000:Catarium\n' \
-       DEF:c=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE1:c#cc00cc:Balcony\n' \
-       DEF:b=$D/sensor-outside.rrd:temp:AVERAGE 'LINE1:b#00cc00:Outside'
+       DEF:a=$D/sensor-ursarium.rrd:temp:AVERAGE 'LINE2:a#0000cc:Ursarium\n' \
+       DEF:d=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE2:d#cc0000:Catarium\n' \
+       DEF:c=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE2:c#cc00cc:Balcony\n' \
+       DEF:b=$D/sensor-outside.rrd:temp:AVERAGE 'LINE2:b#00cc00:Outside' \
+       'HRULE:0#0000ff'