Selaa lähdekoodia

mode from json

Avetisyan Karen 4 vuotta sitten
vanhempi
commit
75ab6d62fa

BIN
web_interface/dist/wui-11/main.js


BIN
web_interface/dist/wui-11/settings.html


+ 2 - 1
web_interface/src/wui-11/getJson.cgi

@@ -40,6 +40,7 @@ JSON = {
   "u_alarm": "5",
   "m_alarm": "0",
   "utc": "3.0",
-  "netsettings_changed": "false"
+  "netsettings_changed": "false",
+  "pmode": "Boost"
 }
 print(json.dumps(JSON))

+ 1 - 1
web_interface/src/wui-11/main.js

@@ -538,7 +538,7 @@ function paramsRefresh() {
     $('pwr').innerHTML        = parseFloat(data.pwr) + ' %';
     $('pwr').style.color      = Alarm(ma, 0) ? ALARM_RED : ALARM_GREEN;
 
-    $('pmode').innerHTML      = ups_bypass ? 'Bypass' : 'Boost or Buck';
+    $('pmode').innerHTML      = data.pmode;
 
     // State
     ups_alarm ? pstate.push('exclamination') : pstate.push('normal');