Unraid-SlackPack/source/ipmitool-plugin/usr/local/emhttp/plugins/ipmitool-plugin/IPMIButton.page
Derek Macias 6574d7e482 add temps and fan reading to footer
add keys to sensors and event arrays
add function to get temps by name, sensor & event arrays
Fixed notification spam if ipmi communication fails
2016-01-28 01:27:22 -07:00

28 lines
899 B
Plaintext

Menu="Buttons:2"
Link="nav-user"
---
<?PHP
/* Copyright 2015, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Plugin development contribution by gfjardim
*/
?>
<script>
function systemTemp() {
$.get('/plugins/ipmitool-plugin/include/ipmitool_temp.php',{unit:'<?=$display['unit']?>',dot:'<?=$display['number'][0]?>'},function(data) {
if (data) showFooter(data,'temps');
<?if ($display['refresh']>0 || ($display['refresh']<0 && $var['mdResync']==0)):?>
timers.systemTemp = setTimeout(systemTemp,<?=max(abs($display['refresh']),10000)?>);
<?endif;?>
});
}
systemTemp();
</script>