Browse Source

fix /live

pull/736/head
lumapu 2 years ago
parent
commit
90955b91f6
  1. 4
      src/web/html/api.js
  2. 2
      src/web/html/includes/footer.html
  3. 2
      src/web/html/visualization.html

4
src/web/html/api.js

@ -103,7 +103,9 @@ function parseVersion(obj) {
}
function parseESP(obj) {
document.getElementById("esp_type").innerHTML="Board: " + obj["esp_type"];
document.getElementById("esp_type").append(
document.createTextNode("Board: " + obj["esp_type"])
);
}
function parseRssi(obj) {

2
src/web/html/includes/footer.html

@ -9,7 +9,7 @@
<div class="right">
<ul>
<li>{#VERSION_GIT}</li>
<li><span id="esp_type"></span></li>
<li id="esp_type"></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>

2
src/web/html/visualization.html

@ -191,7 +191,7 @@
for(var i = obj.id + 1; i < ivEn.length; i++) {
if((i != ivEn.length) && ivEn[i]) {
last = false;
getAjax("http://10.20.3.44/api/inverter/id/" + i, parseIv);
getAjax("/api/inverter/id/" + i, parseIv);
break;
}
}

Loading…
Cancel
Save