From 9ae8fda6fa08112db332c5c4b1006a8d6621157d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 14 Jan 2012 11:04:34 +0100 Subject: [PATCH] Web scripts: sensor renames --- web/rh-12h.cgi | 2 +- web/rh-48h.cgi | 2 +- web/rh-month.cgi | 4 ++-- web/temp-12h.cgi | 6 +++--- web/temp-48h.cgi | 6 +++--- web/temp-month.cgi | 12 ++++++------ web/temp-quick.cgi | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/web/rh-12h.cgi b/web/rh-12h.cgi index ece763f..c70bb8f 100755 --- a/web/rh-12h.cgi +++ b/web/rh-12h.cgi @@ -12,4 +12,4 @@ exec rrdtool graph - \ --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' + DEF:a=$D/sensor-catarium-rh.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium' diff --git a/web/rh-48h.cgi b/web/rh-48h.cgi index bfc4be3..8c8999b 100755 --- a/web/rh-48h.cgi +++ b/web/rh-48h.cgi @@ -12,4 +12,4 @@ exec rrdtool graph - \ --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' + DEF:a=$D/sensor-catarium-rh.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium' diff --git a/web/rh-month.cgi b/web/rh-month.cgi index ced298c..49afbe1 100755 --- a/web/rh-month.cgi +++ b/web/rh-month.cgi @@ -12,5 +12,5 @@ exec rrdtool graph - \ --right-axis 1:0 --right-axis-format "%3.0lf" \ --legend-position east \ --units-exponent 0 --lower-limit 0 --upper-limit 100 --rigid \ - DEF:alo=$D/sensor-19247.rrd:rh:MIN 'LINE1:alo#cc0000:Catarium' \ - DEF:ahi=$D/sensor-19247.rrd:rh:MAX 'LINE1:ahi#cc0000' + DEF:alo=$D/sensor-catarium-rh.rrd:rh:MIN 'LINE1:alo#cc0000:Catarium' \ + DEF:ahi=$D/sensor-catarium-rh.rrd:rh:MAX 'LINE1:ahi#cc0000' diff --git a/web/temp-12h.cgi b/web/temp-12h.cgi index 013461e..9bfbfcb 100755 --- a/web/temp-12h.cgi +++ b/web/temp-12h.cgi @@ -12,6 +12,6 @@ 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-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' + DEF:a=$D/sensor-ursarium.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \ + DEF:b=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \ + DEF:c=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium' diff --git a/web/temp-48h.cgi b/web/temp-48h.cgi index a67deca..dd0b188 100755 --- a/web/temp-48h.cgi +++ b/web/temp-48h.cgi @@ -12,6 +12,6 @@ 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-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' + DEF:a=$D/sensor-ursarium.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \ + DEF:b=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \ + DEF:c=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium' diff --git a/web/temp-month.cgi b/web/temp-month.cgi index 46ab4e6..07b8289 100755 --- a/web/temp-month.cgi +++ b/web/temp-month.cgi @@ -12,9 +12,9 @@ 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-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' + 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:blo=$D/sensor-balcony.rrd:temp:MIN 'LINE1:blo#00cc00:Balcony\n' \ + DEF:bhi=$D/sensor-balcony.rrd:temp:MAX 'LINE1:bhi#00cc00' \ + DEF:clo=$D/sensor-catarium.rrd:temp:MIN 'LINE1:clo#cc0000:Catarium' \ + DEF:chi=$D/sensor-catarium.rrd:temp:MAX 'LINE1:chi#cc0000' diff --git a/web/temp-quick.cgi b/web/temp-quick.cgi index 1ee67ea..ed2f930 100755 --- a/web/temp-quick.cgi +++ b/web/temp-quick.cgi @@ -12,6 +12,6 @@ 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-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' + DEF:a=$D/sensor-ursarium.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \ + DEF:b=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \ + DEF:c=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium' -- 2.39.5