forked from snaptec/openWB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.js
99 lines (96 loc) · 2.13 KB
/
screen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
var doInterval;
function getfile() {
$.ajax({
url: "/openWB/ramdisk/llaktuell",
complete: function(request){
$("#lldiv").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/llkombiniert",
complete: function(request){
$("#gesamtllwdiv").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/aktgeladen",
complete: function(request){
$("#aktgeladenprog1div").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/aktgeladen",
complete: function(request){
var aktgeladen1 = request.responseText;
document.getElementById("prog1").value= aktgeladen1;
}
});
$.ajax({
url: "/openWB/ramdisk/pvwatt",
complete: function(request){
$("#pvdiv").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/llsoll",
complete: function(request){
$("#llsolldiv").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/wattbezug",
complete: function(request){
$("#bezugdiv").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/ladestatus",
complete: function(request){
$("#controlleranaus").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/soc",
complete: function(request){
$("#soclevel").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/restzeitlp1",
complete: function(request){
$("#restzeitlp1div").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/gelrlp1",
complete: function(request){
$("#gelrlp1div").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/aktgeladen",
complete: function(request){
$("#aktgeladendiv").html(request.responseText);
}
});
$.ajax({
url: "/openWB/ramdisk/lademodus",
complete: function(request){
var lademodus=data;
console.log(data);
}
});
$.ajax({
url: "/openWB/ramdisk/lademodus",
complete: function(request){
var lademodus=data;
console.log(data);
}
});
var source = 'graph-index.html',
timestamp = (new Date()).getTime(),
newUrl = source + '?_=' + timestamp;
document.getElementById("livegraph").src = newUrl;
}
doInterval = setInterval(getfile, 2000);
getfile();