diff --git a/html/pages/device/overview/generic/sensor.inc.php b/html/pages/device/overview/generic/sensor.inc.php
index 48b10c45e5..01456d55ba 100644
--- a/html/pages/device/overview/generic/sensor.inc.php
+++ b/html/pages/device/overview/generic/sensor.inc.php
@@ -21,6 +21,7 @@ if (count($sensors))
### FIXME - make this "four graphs in popup" a function/include and "small graph" a function.
### FIXME - So now we need to clean this up and move it into a function. Isn't it just "print-graphrow"?
+ ### FIXME - DUPLICATED IN health/sensors
$graph_colour = str_replace("#", "", $row_colour);
diff --git a/html/pages/health/sensors.inc.php b/html/pages/health/sensors.inc.php
index e682df5424..9f6a476a07 100644
--- a/html/pages/health/sensors.inc.php
+++ b/html/pages/health/sensors.inc.php
@@ -29,6 +29,7 @@ foreach (dbFetchRows($sql, $param) as $sensor)
if ($config['memcached']['enable'])
{
$sensor['sensor_current'] = $memcache->get('sensor-'.$sensor['sensor_id'].'-value');
+ if($debug) { echo("Memcached[".'sensor-'.$sensor['sensor_id'].'-value'."=".$sensor['sensor_current']."]"); }
}
if (empty($sensor['sensor_current']))
@@ -38,28 +39,50 @@ foreach (dbFetchRows($sql, $param) as $sensor)
if ($sensor['sensor_current'] >= $sensor['sensor_limit']) { $alert = '
'; } else { $alert = ""; }
}
- $weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=500&height=150";
- $sensor_popup = "', LEFT);\" onmouseout=\"return nd();\">
- " . $sensor['sensor_descr'] . "";
+ ### FIXME - make this "four graphs in popup" a function/include and "small graph" a function.
+ ### FIXME - So now we need to clean this up and move it into a function. Isn't it just "print-graphrow"?
+ ### FIXME - DUPLICATED IN device/overview/sensors
- $sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=300&height=100";
- $sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['week']."&to=".$config['time']['now']."&width=300&height=100";
- $sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['time']['month']."&to=".$config['time']['now']."&width=300&height=100";
- $sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=".$config['year']."&to=".$config['time']['now']."&width=300&height=100";
+ $graph_colour = str_replace("#", "", $row_colour);
- $sensor_minigraph = "".$sensor['hostname']." - ".mres($sensor['sensor_descr']);
- $sensor_minigraph .= "