-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·318 lines (279 loc) · 16.2 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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0-12/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css" integrity="sha384-VCmXjywReHh4PwowAiWNagnWcLhlEJLA5buUprzK8rxFgeH0kww/aWY76TfkUoSX" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="custom.css">
<!-- weather icons -->
<link rel="stylesheet" type="text/css" href="weather-icons.css">
<link rel="stylesheet" type="text/css" href="weather-icons-wind.css">
<!-- responsive font size -->
<link rel="stylesheet" type="text/css" href="rfs.css">
<title>Deblin Domotix</title>
</head>
<body class="mdb-color purple-gradient">
<header>
<nav class="navbar navbar-light navbar-expand-md mdb-color blue-gradient m-0 pb-0">
<a class="navbar-brand text-white p-0 m-0 mr-2" href="#"><i class="logo-l logo-white"></i></a>
<a class="text-white navbar-brand" href="#">Deblin Domotix</a>
<button data-toggle="collapse" data-target="#navbar-1" class="navbar-toggler"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end align-self-end" id="navbar-1">
<ul class="nav nav-pills" id="tabbar" role="tablist">
<li class="nav-item">
<a class="nav-link active text-white" id="weather-tab" data-toggle="tab" role="tab" aria-controls="weather-pane" aria-selected="true" href="#weather-pane">Weer</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" id="lighting-tab" data-toggle="tab" role="tab" aria-controls="lighting-pane" aria-selected="false" href="#lighting-pane">Verlichting</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" id="irrigation-tab" data-toggle="tab" role="tab" aria-controls="irrigation-pane" aria-selected="false" href="#irrigation-pane">Irrigatie</a>
</li>
</ul>
</div>
</nav>
</header>
<main role="main">
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="weather-pane" role="tabpanel" aria-labelledby="nave-weather-pane">
<div class="container-fluid">
<div class="row mt-2">
<div class="col-sm-4 mdb-color rare-wind-gradient ml-3 rounded z-depth-2">
<div class="row h-100">
<div class="col-12 text-center">
<p class="display-4" id="time-display" style="font-family: digital"></p>
</div>
<div class="col-12 text-center">
<h1 class="display-5" id="date-display" style="font-family: digital"></h1>
</div>
<div class="col-12 align-self-end">
<div class="row">
<div class="col sunrise text-center rounded-left p-2">
<p class="h3" style="font-family: digital" id=time-sunrise></p>
</div>
<div class="col sunset text-white text-center rounded-right p-2">
<p class="h3" style="font-family: digital" id=time-sunset></p>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3 mdb-color dusty-grass-gradient py-3 rounded z-depth-2 text-center mx-auto">
<img border="0" src="https://weerdata.weerslag.nl/image/1.0/?size=ani-forecast-550x550&type=Freecontent&v=35307171" width="90%" class="rounded" />
</div>
<div class="col-sm-4 mr-3 p-3 rounded z-depth-2" id='weather-background'>
<div class="row">
<div class="col-6">
<p class="m-0 h6">Temperatuur</p>
<p class="h2" id="weather-display-temperature" style="font-family: digital"></p>
</div>
<div class="col-6">
<p class="m-0 h6">Vochtigheid</p>
<p class="h2" id="weather-display-humidity" style="font-family: digital"></p>
</div>
</div>
<div class="row">
<div class="col-6">
<p class="m-0 h6">Gevoel</p>
<p class="h2" id="weather-display-gtemp" style="font-family: digital"></p>
</div>
<div class="col-6">
<p class="m-0 h6">Luchtdruk</p>
<p class="h2" id="weather-display-pressure" style="font-family: digital"></p>
</div>
</div>
</div>
</div>
<div class="row mt-2">
<div class="col-sm-4 mdb-color morpheus-den-gradient ml-3 rounded z-depth-2 text-center text-white pt-2">
<div class="row">
<div class="col-12">
<p class="h5">Wind</p>
</div>
<div class="col-12">
<div class="row">
<div class="col-6">
<i id="weather-display-wind-direction" class="wi wi-wind text-white" style="font-size: 80px;"></i><p class="h6">Windrichting</p>
</div>
<div class="col-6">
<i id="weather-display-wind-force" class="wi text-white" style="font-size: 80px"></i>
<p class="h6">Windkracht</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3 mx-auto rounded z-depth-2 mdb-color black text-center pt-2 text-white">
<p class="h5">Maanstand</p>
<img class="pb-3" id="weather-display-moon" src="" height="100px">
<p class="h4" id="weather-display-moonphase" style="font-family: digital"></p>
</div>
<div class="col-sm-4 mdb-color young-passion-gradient mr-3 rounded z-depth-2 text-white" style="font-family: digital">
<div class="row">
<div class="col-3"></div>
<div class="col-3"><p class="h5" id="weather-forecast-day1"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day2"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day3"></p></div>
</div>
<div class="row">
<div class="col-3"></div>
<div class="col-3"><i id="weather-forecast-day1-icon"></i></div>
<div class="col-3"><i id="weather-forecast-day2-icon"></i></div>
<div class="col-3"><i id="weather-forecast-day3-icon"></i></div>
</div>
<div class="row">
<div class="col-3"><i class="fa fa-thermometer-half"></i></div>
<div class="col-3"><p class="h5" id="weather-forecast-day1-temperature"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day2-temperature"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day3-temperature"></p></div>
</div>
<div class="row">
<div class="col-3"><i class="fa fa-umbrella"></i></div>
<div class="col-3"><p class="h5" id="weather-forecast-day1-rain"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day2-rain"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day3-rain"></p></div>
</div>
<div class="row">
<div class="col-3"><i class="fa fa-sun"></i></div>
<div class="col-3"><p class="h5" id="weather-forecast-day1-sun"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day2-sun"></p></div>
<div class="col-3"><p class="h5" id="weather-forecast-day3-sun"></p></div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="lighting-pane" role="tabpanel" aria-labelledby="nav-lighting-pane">
<div class="container-fluid">
<div class="row text-white">
<div class="col-sm-5 mdb-color indigo darken-4 mx-auto mt-2 rounded z-depth-2">
<p class="h5">Voor</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="lampBtn1">
<label class="custom-control-label" for="lampBtn1"><i class="fa fa-power-off"></i></label>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="daytimeSyncBtn1">
<label class="custom-control-label" for="daytimeSyncBtn1"><i class="fa fa-sun"></i><i class="fa fa-sync"></i><i class="fa fa-moon"></i></label>
</div>
</div>
<div class="col-sm-5 mdb-color indigo darken-4 mt-2 mx-auto rounded z-depth-2">
<p class="h5">Huis & Schuur</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="lampBtn2">
<label class="custom-control-label" for="lampBtn2"><i class="fa fa-power-off"></i></label>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="daytimeSyncBtn2">
<label class="custom-control-label" for="daytimeSyncBtn2"><i class="fa fa-sun"></i><i class="fa fa-sync"></i><i class="fa fa-moon"></i></label>
</div>
</div>
<div class="col-sm-5 mdb-color indigo darken-4 mt-2 mx-auto rounded z-depth-2">
<p class="h5">Achter</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="lampBtn3">
<label class="custom-control-label" for="lampBtn3"><i class="fa fa-power-off"></i></label>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="daytimeSyncBtn3">
<label class="custom-control-label" for="daytimeSyncBtn3"><i class="fa fa-sun"></i><i class="fa fa-sync"></i><i class="fa fa-moon"></i></label>
</div>
</div>
<div class="col-sm-5 mdb-color indigo darken-4 mt-2 mx-auto rounded z-depth-2">
<p class="h5">Terras</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="lampBtn4">
<label class="custom-control-label" for="lampBtn4"><i class="fa fa-power-off"></i></label>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="daytimeSyncBtn4">
<label class="custom-control-label" for="daytimeSyncBtn4"><i class="fa fa-sun"></i><i class="fa fa-sync"></i><i class="fa fa-moon"></i></label>
</div>
</div>
<div class="col-sm-11 mdb-color rare-wind-gradient text-dark mt-2 mx-auto rounded z-depth-2 h-100">
<p class="h5 text-center">Sync Rapport</p>
<p class="p" id="display-report-light" style="font-family: digital"></p>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="irrigation-pane" role="tabpanel" aria-labelledby="nav-irrigation-pane">
<div class="container-fluid">
<div class="row text-white mx-2 mt-2">
<div class="col-sm-4 mdb-color indigo darken-4 rounded z-depth-2 p-2">
<p class="h5 text-center"><i class="fa fa-shower"></i> Sprinkler 1</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="relayBtn1">
<label class="custom-control-label" for="relayBtn1"><i class="fa fa-power-off"></i></label>
</div>
</div>
<div class="col-sm-4 mdb-color indigo darken-4 rounded z-depth-2 p-2">
<p class="h5 text-center"><i class="fa fa-shower"></i> Sprinkler 2</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="relayBtn2">
<label class="custom-control-label" for="relayBtn2"><i class="fa fa-power-off"></i></label>
</div>
</div>
<div class="col-sm-4 mdb-color indigo darken-4 rounded z-depth-2 p-2">
<p class="h5 text-center"><i class="fa fa-shower"></i> Sprinkler 3</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="relayBtn3">
<label class="custom-control-label" for="relayBtn3"><i class="fa fa-power-off"></i></label>
</div>
</div>
</div>
<div class="row text-white mx-2 mt-2">
<div class="col-sm-4 mdb-color indigo darken-4 rounded z-depth-2 p-2">
<p class="h5 text-center"><i class="fa fa-shower"></i> Sprinkler 4</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="relayBtn4">
<label class="custom-control-label" for="relayBtn4"><i class="fa fa-power-off"></i></label>
</div>
</div>
<div class="col-sm-4 mdb-color indigo darken-4 rounded z-depth-2 p-2">
<p class="h5 text-center"><i class="fa fa-shower"></i> Sprinkler 5</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="relayBtn5">
<label class="custom-control-label" for="relayBtn5"><i class="fa fa-power-off"></i></label>
</div>
</div>
<div class="col-sm-4 mdb-color indigo darken-4 rounded z-depth-2 p-2">
<p class="h5 text-center"><i class="fa fa-shower"></i> Sprinkler 6</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="relayBtn6" disabled>
<label class="custom-control-label" for="relayBtn6"><i class="fa fa-power-off"></i></label>
</div>
</div>
</div>
<div class="col-sm-11 mdb-color rare-wind-gradient text-dark mt-2 mx-auto rounded z-depth-2 h-100">
<p class="h5 text-center">Sprinkler Rapport</p>
<p class="p" id="display-report-sprinkler" style="font-family: digital"></p>
</div>
</div>
</div>
</div>
</main>
<footer class="page-footer fixed-bottom text-center mdb-color blue-gradient align-baseline" style="height: 25px" ><p>Deblin Domotix © 2020</p></footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/js/bootstrap.min.js" integrity="sha384-XEerZL0cuoUbHE4nZReLT7nx9gQrQreJekYhJD9WNWhH8nEW+0c5qq7aIo2Wl30J" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>
<script type="text/javascript" src="config.js"></script>
<script type="text/javascript" src="weather.js"></script>
<script type="text/javascript" src="time.js"></script>
<script type="text/javascript" src="relay.js"></script>
<script type="text/javascript" src="rfxcom.js"></script>
<script type="text/javascript" src="report.js"></script>
<script type="text/javascript" src="daytimesync.js"></script>
<script type="text/javascript" src="switches.js"></script>
<script type="text/javascript" src="init.js"></script>
</body>
</html>