|
@ -73,8 +73,11 @@ |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
<div class="right"> |
|
|
<span id="version"></span><br/><br/> |
|
|
<ul> |
|
|
<a href="https://creativecommons.org/licenses/by-nc-sa/3.0/de" target="_blank" >CC BY-NC-SA 3.0</a> |
|
|
<li><span id="version"></span></li> |
|
|
|
|
|
<li><span id="esp_type"></span></li> |
|
|
|
|
|
<li><a href="https://creativecommons.org/licenses/by-nc-sa/3.0/de" target="_blank" >CC BY-NC-SA 3.0</a></li> |
|
|
|
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<script type="text/javascript"> |
|
|
<script type="text/javascript"> |
|
@ -101,8 +104,10 @@ |
|
|
function parseSys(obj) { |
|
|
function parseSys(obj) { |
|
|
// Disclaimer |
|
|
// Disclaimer |
|
|
//if(obj["disclaimer"] == false) sessionStorage.setItem("gDisclaimer", promptFunction()); |
|
|
//if(obj["disclaimer"] == false) sessionStorage.setItem("gDisclaimer", promptFunction()); |
|
|
if(true == exeOnce) |
|
|
if(exeOnce){ |
|
|
parseVersion(obj); |
|
|
parseVersion(obj); |
|
|
|
|
|
parseESP(obj); |
|
|
|
|
|
} |
|
|
document.getElementById("wifi_rssi").innerHTML = obj["wifi_rssi"]; |
|
|
document.getElementById("wifi_rssi").innerHTML = obj["wifi_rssi"]; |
|
|
|
|
|
|
|
|
var date = new Date(obj["ts_now"] * 1000); |
|
|
var date = new Date(obj["ts_now"] * 1000); |
|
@ -128,7 +133,7 @@ |
|
|
dSpan.appendChild(span("", ["span"], "apiResult")); |
|
|
dSpan.appendChild(span("", ["span"], "apiResult")); |
|
|
e.addEventListener("click", setTime); |
|
|
e.addEventListener("click", setTime); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(!obj["ts_sun_upd"]) { |
|
|
if(!obj["ts_sun_upd"]) { |
|
|
var e = document.getElementById("sun"); |
|
|
var e = document.getElementById("sun"); |
|
|
if(null != e) |
|
|
if(null != e) |
|
@ -185,14 +190,14 @@ |
|
|
|
|
|
|
|
|
function parse(obj) { |
|
|
function parse(obj) { |
|
|
if(null != obj) { |
|
|
if(null != obj) { |
|
|
if(true == exeOnce) |
|
|
if(exeOnce) |
|
|
parseMenu(obj["menu"]); |
|
|
parseMenu(obj["menu"]); |
|
|
parseSys(obj["system"]); |
|
|
parseSys(obj["system"]); |
|
|
parseStat(obj["statistics"]); |
|
|
parseStat(obj["statistics"]); |
|
|
parseIv(obj["inverter"]); |
|
|
parseIv(obj["inverter"]); |
|
|
parseWarnInfo(obj["warnings"], obj["infos"]); |
|
|
parseWarnInfo(obj["warnings"], obj["infos"]); |
|
|
document.getElementById("refresh").innerHTML = obj["refresh_interval"]; |
|
|
document.getElementById("refresh").innerHTML = obj["refresh_interval"]; |
|
|
if(true == exeOnce) { |
|
|
if(exeOnce) { |
|
|
window.setInterval("getAjax('/api/index', parse)", obj["refresh_interval"] * 1000); |
|
|
window.setInterval("getAjax('/api/index', parse)", obj["refresh_interval"] * 1000); |
|
|
exeOnce = false; |
|
|
exeOnce = false; |
|
|
} |
|
|
} |
|
|