diff --git a/plugins/dynamix.apcupsd/UPSsummary.page b/plugins/dynamix.apcupsd/UPSsummary.page deleted file mode 100644 index bc14653f0..000000000 --- a/plugins/dynamix.apcupsd/UPSsummary.page +++ /dev/null @@ -1,33 +0,0 @@ -Menu="Dashboard:1" -Cond="file_exists('/var/run/apcupsd.pid')" ---- - - - -
| UPS Status | Battery Charge | Runtime Left | Nominal Power | UPS Load | UPS Load % |
|---|---|---|---|---|---|
| =$var['NAME']?> | ||||
Airflow Fan count: $fans | ||||
Power +UPS Load: | ||||
Airflow
+Fan count: =$fans?> | FAN ".($f)." - FAN ".($f+1)." | "." | "; + else echo ""; }?> + + | |
Array (not started)
+| Array (stopped)
=my_scale($array_used*1024,$unit)." $unit"?> used of =my_scale($array_size*1024,$unit,-1,-1)." $unit"?> (=$array_percent?> %)
| | ||||||||||||
Cache (not started)
+
+| Cache (stopped)
=my_scale($cache_used*1024,$unit)." $unit"?> used of =my_scale($cache_size*1024,$unit,-1,-1)." $unit"?> (=$cache_percent?> %)
| "+table+" has "+info.join('. ')+". " : "";
}
function update5() {
-0):?>
+
$.post('=$url?>',{cmd:'fan'},function(data) {
$.each(data.split('\0'),function(k,v) {$('#fan'+k).html(v);});
});
@@ -566,6 +582,16 @@ function update15() {
$.post('=$url?>',{cmd:'shares',com:tag,names:'=addslashes(htmlspecialchars($names))?>'},function(data) {
$.each(data.split('\0'),function(k,v) {$('#share'+(k+1)).html(v);});
});
+
+
+ $.get('/plugins/dynamix.apcupsd/include/UPSstatus.php',{all:'false'},function(d) {
+ var data = d.replace(/<\/?tr>/,'').replace(//g,'span>;').split(';');
+ $('#ups_status').html(data[0]);
+ $('#ups_bcharge').html(data[1]);
+ $('#ups_timeleft').html(data[2]);
+ $('#ups_nompower').html(data[3]);
+ $('#ups_loadpct').html(data[5]+(data[5].search('-')==-1 ? '%':'')+(data[4].search('-')==-1 ? ' ('+data[4].replace(' Watts','W')+')':''));
+ });
$.post('=$url?>',{cmd:'status',number:'=$display['number']?>'},function(data) {$('span.info.title').html(data);});
$.post('=$url?>',{cmd:'parity',time:'=$display['date'].($display['date']!='%c'?", {$display['time']}":"")?>'},function(d) {
@@ -749,9 +775,12 @@ $(function() {
toggleView('cpu_view',true);
toggleView('mem_view',true);
toggleView('port_view',true);
-0):?>
+
toggleView('fan_view',true);
+
+ toggleView('ups_view',true);
+
toggleView('docker_view',true);
@@ -760,7 +789,9 @@ $(function() {
toggleView('parity_view',true);
toggleView('array_view',true);
+
toggleView('cache_view',true);
+
toggleView('extra_view',true);
diff --git a/plugins/dynamix/include/DefaultPageLayout.php b/plugins/dynamix/include/DefaultPageLayout.php
index a5d103297..77e5bc8cd 100644
--- a/plugins/dynamix/include/DefaultPageLayout.php
+++ b/plugins/dynamix/include/DefaultPageLayout.php
@@ -55,7 +55,7 @@ html{font-size:=$font?>}
.inline_help{display:none}
.upgrade_notice{position:fixed;top:1px;left:0;width:100%;height:40px;line-height:40px;color:#e68a00;background:#feefb3;border-bottom:#e68a00 1px solid;text-align:center;font-size:1.4rem;z-index:999}
.upgrade_notice i{margin:14px;float:right;cursor:pointer}
-.back_to_top{display:none;position:fixed;bottom:30px;right:12px;color:#e22828;font-size:2.5rem}
+.back_to_top{display:none;position:fixed;bottom:30px;right:12px;color:#e22828;font-size:2.5rem;z-index:999}
$safemode = strpos(file_get_contents('/proc/cmdline'),'unraidsafemode')!==false;
$tasks = find_pages('Tasks');
| | |||||||||||