-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpodrobnosti.html
149 lines (121 loc) · 5.47 KB
/
podrobnosti.html
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Cooler | Eltek Data Viewer</title>
<script src="jquery.js"></script>
<link rel="stylesheet" href="style.css" />
<style>
/** here go styles specific for this screen **/
#panel {
background-image: url('cerpadlo.jpg');
width: 800px;
height: 600px;
}
#index_link {
left: 10px;
}
#settings {top: 450px; left: 570px; width: 200px}
#k1_stats {top: 200px; left: 0px; width: 200px}
#k2_stats {top: 150px; left: 570px; width: 200px}
#global_stats {top: 70px; right: 10px;}
#vodaTemp {top: 500px; left: 300px; width: 240px;}
#venkuTemp {top: 70px; left: 0px; width: 250px;}
</style>
</head>
<body>
<div id="panel" class="screen_panel">
<div class="title panel_overlay">
Cooler
</div>
<!-- links to other screens -->
<a href="index.html">
<div id="prehled_link" class="screen_link panel_overlay">
Hide details<br />
</div>
</a>
<div id="k1_stats" class="stats panel_overlay">
<div class="stat-label">Cooler 1</div>
<div class="stat-warning"><span id="ErrorCom1"></span></div>
<div class="stat-warning"><span id="Carr1_alarm"></span></div>
<div class="stat-warning"><span id="Carr1_chod"></span></div>
<div class="stat-info">Run <span id="Carr1_Mh"></span> Mh</div>
<div class="stat-info">Water IN <span id="Tepl1_IN"></span> °C</div>
<div class="stat-info">Water OUT <span id="Tepl1_OUT"></span> °C</div>
<div class="stat-info">Refrigerant <span id="Tepl1_chladiv"></span> °C</div>
<div class="stat-info">Frequency <span id="Frekvence1"></span> Hz</div>
<div class="stat-info">Water pump <span id="Cerp1_Mh"></span> Mh</div>
<div class="stat-warning">Error code <span id="KodPoruchy1"></span></div>
</div>
<div id="k2_stats" class="stats panel_overlay">
<div class="stat-label">Cooler 2</div>
<div class="stat-warning"><span id="ErrorCom2"></span></div>
<div class="stat-warning"><span id="Carr2_alarm"></span></div>
<div class="stat-warning"><span id="Carr2_chod"></span></div>
<div class="stat-info">Run <span id="Carr2_Mh"></span> Mh</div>
<div class="stat-info">Water IN <span id="Tepl2_IN"></span> °C</div>
<div class="stat-info">Water OUT <span id="Tepl2_OUT"></span> °C</div>
<div class="stat-info">Refrigerant <span id="Tepl2_chladiv"></span> °C</div>
<div class="stat-info">Frequency <span id="Frekvence2"></span> Hz</div>
<div class="stat-info">Water pump <span id="Cerp2_Mh"></span> Mh</div>
<div class="stat-warning">Error code <span id="KodPoruchy2"></span></div>
</div>
<div id="vodaTemp" class="stats panel_overlay">
<div class="stat-info">Water temperature <span id="TeplotaVody"></span> °C</div>
</div>
<div id="venkuTemp" class="stats panel_overlay">
<div class="stat-info">Outdoor temperature <span id="TeplotaVenkovni"></span> °C</div>
</div>
<div id="settings" class="stats panel_overlay">
<!-- AWP_In_Variable Name='"Set_teploty".SET_teplota_MIN' -->
<form method="post">
<div class="stat-label">Temperature offset (MIN = -5, MAX = 5)</div>
<div class="stat-info">Current offset <span id="TempOffset"></span> °C</div>
<div class="stat-settings">
<input name='"Set_teploty".SET_teplota_MIN' type="text" id="NastavHlMin"/>
</div>
<div><input type="submit" value="OK" /></div>
</form>
</div>
</div>
<script>
// json file with data to show
var data_file = 'data_chladiceR.json';
// actual data shown
var data = {};
// elements with no data transform
var value_elements = [
{id: 'Carr1_Mh', decimals: 1},
{id: 'Tepl1_IN', decimals: 1},
{id: 'Tepl1_OUT', decimals: 1},
{id: 'Tepl1_chladiv', decimals: 1},
'Frekvence1',
'Cerp1_Mh',
'KodPoruchy1',
{id: 'Carr2_Mh', decimals: 1},
{id: 'Tepl2_IN', decimals: 1},
{id: 'Tepl2_OUT', decimals: 1},
{id: 'Tepl2_chladiv', decimals: 1},
'Frekvence2',
'Cerp2_Mh',
'KodPoruchy2',
'TempOffset',
{id: 'TeplotaVody', decimals: 1},{id: 'TeplotaVenkovni', decimals: 1}
];
// elements showing run/load state
var state_elements = [
];
var load_color = "#0ff";
var off_color = "#f00";
var alarm_elements = [
{"id": "Carr1_alarm", "text": "OK", "off_text": "ALARM", "color": "#0f0", "off_color": off_color},
{"id": "Carr2_alarm", "text": "OK", "off_text": "ALARM", "color": "#0f0", "off_color": off_color},
{"id": "Carr1_chod", "text": "Run", "off_text": "Load", "color": "#0f0", "off_color": load_color},
{"id": "Carr2_chod", "text": "Run", "off_text": "Load", "color": "#0f0", "off_color": load_color},
{"id": "ErrorCom1", "text": "", "off_text": "Communication Error", "color": "#0f0", "off_color": off_color},
{"id": "ErrorCom2", "text": "", "off_text": "Communication Error", "color": "#0f0", "off_color": off_color}
];
</script>
<script src="functions.js"></script>
</body>
</html>