sensors, yay

git-svn-id: http://www.observium.org/svn/observer/trunk@2081 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans 2011-04-13 19:23:53 +00:00
parent f5ca2614e3
commit 166b2a0373
2 changed files with 12 additions and 1 deletions

View File

@ -84,7 +84,7 @@ switch ($_GET['opta'])
include('pages/health/'.$_GET['opta'].'.inc.php');
break;
default:
include('pages/health/temperature.inc.php');
include('pages/health/temperature.inc.php'); # FIXME perhaps an error message instead?
break;
}

View File

@ -0,0 +1,11 @@
<?php
poll_sensor($device,'current','A');
poll_sensor($device,'frequency', 'Hz');
poll_sensor($device,'fanspeed', 'rpm');
poll_sensor($device,'humidity', '%');
# FIXME also convert temperature, but there's some special code in there?
include('includes/polling/temperatures.inc.php');
?>