mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-10 14:41:37 +02:00
fix /live
This commit is contained in:
parent
491155f161
commit
90955b91f6
3 changed files with 5 additions and 3 deletions
|
@ -103,7 +103,9 @@ function parseVersion(obj) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseESP(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) {
|
function parseRssi(obj) {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<ul>
|
<ul>
|
||||||
<li>{#VERSION_GIT}</li>
|
<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>
|
<li><a href="https://creativecommons.org/licenses/by-nc-sa/3.0/de" target="_blank" >CC BY-NC-SA 3.0</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
for(var i = obj.id + 1; i < ivEn.length; i++) {
|
for(var i = obj.id + 1; i < ivEn.length; i++) {
|
||||||
if((i != ivEn.length) && ivEn[i]) {
|
if((i != ivEn.length) && ivEn[i]) {
|
||||||
last = false;
|
last = false;
|
||||||
getAjax("http://10.20.3.44/api/inverter/id/" + i, parseIv);
|
getAjax("/api/inverter/id/" + i, parseIv);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue