-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthorized_consumption.php
executable file
·50 lines (45 loc) · 1.13 KB
/
authorized_consumption.php
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
<!doctype html><html><head>
<?php include'imports.php'?>
<script>
function init(){
Graphs.gauge('graph', Global.Water.ws_SL_auth_con()||0, translate("ws_SL_auth_con_descr"),Info.ws_SL_auth_con.unit,0,200); //with unit and limits
}
</script>
<style>
#auth_con_guide td {
text-align:center;
}
</style>
</head><body><center>
<!--sidebar--><?php include'sidebar.php'?>
<!--navbar--><?php include'navbar.php'?>
<!--linear--><?php include'linear.php'?>
<!--title--><h1>Authorized consumption</h1>
<!--graph-->
<div id=graph>
Loading...
</div>
<table id=auth_con_guide>
<tr>
<th>Too low
<th>Acceptable
<th>Good
<th>Acceptable
<th>Too high
</tr>
<tr>
<td style=background:red> 0 — ??
<td style=background:orange>?? — ??
<td style=background:#af0> ?? — ??
<td style=background:orange>?? — 200
<td style=background:red> 200 — ∞
</tr>
</table>
<div>
TBD: discuss limits (Andrés?)
</div>
<!--CURRENT JSON--><?php include'currentJSON.php'?>
<script>
google.charts.load('current',{'packages':['corechart','gauge','bar']});
google.charts.setOnLoadCallback(init)
</script>