-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (54 loc) · 1.15 KB
/
index.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
<style>
h1 {
font-size: 50px;
}
input[type="radio"] {
margin: 20;
border: 0px;
width: 30%;
height: 3em;
}
button {
font-size: 50px;
}
</style>
<script>
if (window.history.replaceState) {
window.history.replaceState(null, null, window.location.href);
}
</script>
<form action="http://192.168.1.62:5000" method="POST">
<h1>upper limit</h1>
<input
id="upper"
name="upper"
type="number"
value="{{ upper }}"
step="0.1"
style="font-size: 45px"
/>
<h1>lower limit</h1>
<input
id="lower"
name="lower"
type="number"
value="{{lower}}"
step="0.1"
style="font-size: 45px"
/>
<br />
<input type="radio" id="on" name="active" value="on" {% if active == true %}
{{ "checked" }} {% endif %} />
<label for="on">ON</label><br />
<input type="radio" id="off" name="active" value="off" {% if active == false
%} {{ "checked" }} {% endif %} />
<label for="off">OFF</label><br />
<br />
<button>Save</button>
</form>
<iframe
title="graph"
width="100%"
height="60%"
src="http://192.168.1.62:3000/public-dashboards/0f6828c36f3746dd9d0a66d55eef9704?orgId=1&refresh=5s"
/>