diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-13 05:46:08 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-13 05:46:08 +0000 |
commit | 75616b00165a07507bc42f11cd9e122f47c1ac3d (patch) | |
tree | f9c2a91ce0c833b00d42479c225e73dea8c13360 /usr/local | |
parent | 013c1fb0bf939cd9666e3d0ab2dd2bbe380cb60a (diff) | |
download | pfsense-75616b00165a07507bc42f11cd9e122f47c1ac3d.zip pfsense-75616b00165a07507bc42f11cd9e122f47c1ac3d.tar.gz |
stub in net4801 temp monitor - this needs work
touch /etc/48xx if you want to play
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/index.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index cb7a425..ba8aafa 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -204,9 +204,26 @@ echo "<input style='border: 0px solid white;' size='30' name='swapusagemeter' id //echo $swapUsage . "%"; ?> - </td> </tr> +<?php + /* XXX - Stub in the HW monito for net4801 - needs to use platform var's once we start using them */ + if (file_exists("/etc/48xx")) { +echo " <tr>"; +echo " <td width='25%' class='vncellt'>Temperature: </td>"; +echo " <td width='75%' class='listr'>"; +// Initialize hw monitor +exec("/usr/local/sbin/env4801 -i"); +$Temp = `/usr/local/sbin/env4801 | grep Temp |cut -c24-25`; +echo "<img src='bar_left.gif' height='15' width='4' border='0' align='absmiddle'>"; +echo "<img src='bar_blue.gif' height='15' width='" . $Temp . "' border='0' align='absmiddle'>"; +echo "<img src='bar_gray.gif' height='15' width='" . (100 - $Temp) . "' border='0' align='absmiddle'>"; +echo "<img src='bar_right.gif' height='15' width='5' border='0' align='absmiddle'> "; +echo "<input style='border: 0px solid white;' size='30' name='Tempmeter' id='Tempmeter' value='{$Temp}C'>"; +echo " </td>"; +echo " </tr>"; + } +?> </table> |