-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.html
3167 lines (2446 loc) · 109 KB
/
schedule.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<!-- I PREFER PLAIN JAVASCRIPT -->
<!-- https://ldijkman.github.io/Electra/schedule.html -->
<!-- https://ldijkman.github.io/Electra -->
<!-- https://github.com/ldijkman/randomnerd_esp32_wifi_manager/tree/main/LAB_Experiments -->
<!-- https://codepen.io/ldijkman/pen/qBodbgO -->
<!-- https://jsfiddle.net/luberth/61fj05g7/ -->
<!-- https://liveweave.com/rrn1Qs -->
<!-- save to phone home screen and open without adress URL bar -->
<meta name="mobile-web-app-capable" content="yes">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Sonoff a Switch multi range slider timeline ESP32 ESP8266 ESP8285 mDNS WiFi relays timed switch</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Copyright 2022 Dirk Luberth Dijkman Bangert Andijk The Netherlands -->
<link rel="stylesheet" type="text/css" href="/_bestaatniet_/css/result-light.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.5.0/nouislider.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.5.0/nouislider.css">
<style id="compiled-css" type="text/css">
/*
// external css version 15.5.0
// change the slider CSS a little bit
// so that handle does not block the view at guide rail
*/
.noUi-horizontal .noUi-handle {
width: 34px;
height: 6px; //28
right: -17px;
top: -6px; //6
}
/*
.noUi-base{
border-left: 2px solid red;
height: 20px;
position:absolute;
left: 76%;
z-index: auto;
}
*/
main {
margin-bottom: 1%;
}
.floating-menu {
font-family: sans-serif;
background: navy;
padding: 5px;;
width: 100%;
z-index: 100;
position: fixed;
bottom: 0px;
left: 0px;
}
.floating-menu a,
.floating-menu h3 {
font-size: 0.9em;
/*display: block;*/
margin: 0 0.5em;
color: white;
}
html {
scroll-behavior: smooth
}
</style>
<!-- floating menu -->
<main>
<!--https://www.quackit.com/html/html_editors/scratchpad/?example=/css/codes/css_floating_menu_positioned-->
<nav class="floating-menu">
<!-- next some should be filled in by %% processor or ntp time json websocket-->
<a href="/">mDNS.local</a><a href="http://10.10.100.104">10.10.100.104</a><a href="/">NTP TIME</a><a href="/edit">WebEditor</a><a href="https://ldijkman.github.io/Electra/">Electra</a>
</nav>
</main>
<!-- floating menu -->
<script>
// <!-- tryng to mak a marker for current actual time -->
// my slider is 1440 minutes long wich is a day
// so actual (hours x 60 + minutes)/1440 x 100% is actual percentage on slider
// 50% is 12 o clock
document.addEventListener('DOMContentLoaded', function() {
var l = document.createElement('div'); // create a div class actualtime on div nouibase
l.setAttribute("id", "actualtime");
l.setAttribute("class", "actualtime");
var bookStyles = {
position: "absolute",
color: "red",
backgroundColor: "blue",
height: "60px",
width: "1px",
left: "50%",
top: "-1px"
};
for (let style in bookStyles) {
l.style[style] = bookStyles[style];
}
l.innerHTML = "<br><br><br>Actual time marker";
for (let i = 0; i < 11; i++) {
document.getElementsByClassName('noUi-base')[i].appendChild(l.cloneNode(true)); // create a div class actualtime on div nouibase
}
var ll = document.createElement('div'); // create a div class actualtime on div nouibase
ll.setAttribute("id", "sunrisel");
ll.setAttribute("class", "sunrisel");
var bookStyles = {
position: "absolute",
color: "grey",
backgroundColor: "blue",
height: "60px",
width: "1px",
left: "0%",
top: "-1px"
};
ll.innerHTML = "<br><br><br>sunrise";
for (let style in bookStyles) {
ll.style[style] = bookStyles[style];
}
for (let i = 0; i < 11; i++) {
document.getElementsByClassName('noUi-base')[i].appendChild(ll.cloneNode(true)); // create a div class actualtime on div nouibase
}
var lll = document.createElement('div'); // create a div class actualtime on div nouibase
lll.setAttribute("id", "sunsetl");
lll.setAttribute("class", "sunsetl");
var bookStyles = {
position: "absolute",
color: "grey",
backgroundColor: "blue",
height: "60px",
width: "1px",
left: "100%",
top: "-1px"
};
lll.innerHTML = "<br><br><br>sunset";
for (let style in bookStyles) {
lll.style[style] = bookStyles[style];
}
for (let i = 0; i < 11; i++) {
document.getElementsByClassName('noUi-base')[i].appendChild(lll.cloneNode(true)); // create a div class actualtime on div nouibase
}
}, false);
/**
* ----------------------------------------------------------------------------
* ESP32 Remote Control with WebSocket
*
* © 2020 Stéphane Calderoni
* https://m1cr0lab-esp32.github.io/remote-control-with-websocket/
* https://github.com/m1cr0lab-esp32/remote-control-with-websocket
* ----------------------------------------------------------------------------
*
*
*
*websockts json send
* next is new ip url
TXT:{"ip":"10.10.100.101:80,10.10.100.105:80,10.10.100.102:80,","url":"Living,Garden,kitchen,"}
wil remove the scan link ip and url
TXT:{"status":"ON","time":"15:25:37","offdelay":"360","offcnt":340,"T":0,"H":0,"P":0,"scan":"<p><a href=\"http://10.10.100.101:80\">Living.local</a><p><p><a href=\"http://10.10.100.105:80\">Garden.local</a><p><p><a href=\"http://10.10.100.102:80\">kitchen.local</a><p>"}
*/
var gateway = `ws://${window.location.hostname}/ws`;
var websocket;
// ----------------------------------------------------------------------------
// Initialization
// ----------------------------------------------------------------------------
window.addEventListener('load', onLoad);
function onLoad(event) {
initWebSocket();
initButton();
}
// ----------------------------------------------------------------------------
// WebSocket handling
// ----------------------------------------------------------------------------
function initWebSocket() {
console.log('Trying to open a WebSocket connection...');
websocket = new WebSocket(gateway);
websocket.onopen = onOpen;
websocket.onclose = onClose;
websocket.onmessage = onMessage;
}
function onOpen(event) {
console.log('Connection opened');
}
function onClose(event) {
console.log('Connection closed');
setTimeout(initWebSocket, 2000);
}
function onMessage(event) {
let data = JSON.parse(event.data);
/*
if (data.ip){ // websocket with ip and url
// we have a webstocket with ip like
// TXT:{"ip":"10.10.100.101:80,10.10.100.105:80,10.10.100.102:80,","url":"Living,Garden,kitchen,"}
var ipArr = (data.ip).split(',');
var urlArr = (data.url).split(',');
var result = [];
for ( var i = 0; i < ipArr.length-1; i++ ) { // -1 last field is empty
result.push( [ urlArr[i], ipArr[i] ] ); // to double array ip url for alafabet sort
}
result=result.sort((a, b) => a[0].localeCompare(b[0])); // sort alfabet mddns url
document.getElementById('ip').innerHTML=result;
for (let i = 0; i < result.length; i++){
let url = "http://"+result[i][1]+"/button.html"; // source to set for iframe
let src = document.getElementById(i).src; // read the source from iframe for compare
url=url.replace(":80", ""); // read iframe src does not return port
if( src != url ){ // only reload change iframe src if url is changed
document.getElementById(i).src = url;
}
// mdns text link to ip
document.getElementById("murl"+i).innerHTML = "<a href=\"http://"+result[i][1]+"\" target=\""+result[i][0]+"\">"+result[i][0]+"</a>"; //show mdns text name
}
}
if (data.status){
// we have an websocket json like TXT:{"status":"ON","time":"15:25:37","offdelay":"360","offcnt":340,"T":0,"H":0,"P":0,"scan":"<p><a href=\"http://10.10.100.101:80\">Living.local</a><p><p><a href=\"http://10.10.100.105:80\">Garden.local</a><p><p><a href=\"http://10.10.100.102:80\">kitchen.local</a><p>"}
document.getElementById('ledstate').innerHTML = data.status;
document.getElementById('image').src = data.status+".gif";
document.getElementById('mdnsscan').innerHTML = data.scan;
document.getElementById('NTPTime').innerHTML = data.time;
document.getElementById('OFFDelay').innerHTML = data.offdelay;
document.getElementById('OFFcountdwn').innerHTML = data.offcnt;
document.getElementById('T').innerHTML = data.T;
document.getElementById('H').innerHTML = data.H;
document.getElementById('P').innerHTML = data.P;
}
*/
}
// ----------------------------------------------------------------------------
// Button handling
// ----------------------------------------------------------------------------
function initButton() {
//document.getElementById('toggle').addEventListener('click', onToggle);
///document.getElementById('offdelaybutton').addEventListener('click', onOffdelay);
}
function onToggle(event) {
// websocket.send(JSON.stringify({'action':'toggle'}));
}
function onOffdelay(event) {
// var temp=document.getElementById('offdelay').value;
// websocket.send(JSON.stringify({'off_delay':temp}));
}
</script>
</head>
<body>
<button onclick="scrollToAnchor('#checkmonday');">Go to MyAnchorText monday</button><br><br>
<a href="https://jsfiddle.net/luberth/ow3zceyn/show/" target="mine">version 13 https://jsfiddle.net/luberth/ow3zceyn/show/</a>
<br>Sonoff a Switch !<br>
<h2>Each WiFi relais its own timed switching schedule webpage<br>
Easy Set && Overview SwitchTimes<br><br>
Big is Better, better Landscape view!<br><br></h2>
<h2>Rotate your screen to landscape<br> <a href="#checkmonday">Go to Monday</a><br></h2>
<br>
EWelink only 4 on/off schedule timers? (and 4 me hard to understand the working)<br>
Are you done with the EWElink advertisements in the app<br>
Do not want to Share your Phone/Data with Winnie-the-Pooh<br>
Tasmota Home Assistant, Domoticz to advanced, to complex, to Nerdy?!<br>
<br>
<b>Home Automation made Safe & Easy at no Charge!</b> <br>
logical mDNS human friendly http://*.local adresses for the relais switches webpage<br>
User defined friendly url like http://kitchen.local, http://living.local, http://hallway.local, http://cellar.local<br>
each device automaticly shows a scanned linked list of other devices in the local network on its webpage<br>
if a new device is added and configured via accesspoint wifi manager it automaticly appears in linked list on all other devices webpages <br>
and it scanned / linked lists all other http://***.local devices on its own webpage<br>no wifisettings no mdns http://***.local and relais i/o settings hardcoded, all settings user defineble<br>so every device can be programmed with the same code<br><br>
on Android you can use <a href ="https://play.google.com/store/apps/details?id=de.wellenvogel.bonjourbrowser&hl=en&gl=US" target="hi Electra">Bonjour browser app </a>to see and navigate all devices on the local network<br>or with apple saphari just go to for example http://living.local and from that webpage you can click links to all other devices on the local network<br><br>
Test to Easy set/overview/timeline auto switch times for ESP32 ESP8266 ESP8285 WiFi Relais WebServerPage<br><br><br>
esp8266 comes with different memory sizes?<br>
my wemos d1 r1 mini with relais shield has a 32mbit chip = 4MB<br>
<br>
<a href="http://www.google.com/search?q=nouislider" target="Hey Electra open it in a new browser tab">http://www.google.com/search?q=nouislider</a><br>
used external nouislider 15.5.0 js en css<br>
https://cdnjs.cloudflare.com/ajax/libs<br>
/noUiSlider/15.5.0/nouislider.js<br>
https://cdnjs.cloudflare.com/ajax/libs<br>
/noUiSlider/15.5.0/nouislider.css<br>
https://cdnjs.com/libraries/noUiSlider<br>
<br><b>writes time data to browser developer console on slider change</b><br>
open console with keyboard shortcut Ctrl Shift J (on Windows & raspberry pi)<br>
Later for JSon data pass??? from browser to ESP32 ESP8266 ESP8285<br>
<br>
if the page is served from ESP32, chromium inspect network ws send <br>
now shows the json websocket send<br>
<br>
<hr>
<h1>Browser geolocation must be https://</h1>
<p id="demo"></p>
<p id="demo2"></p>
<hr>
<script>
</script>
<p id="MyAnchor" class="boldtitle">MyAnchorText</p>
<a href="#dag1">go to monday</a><br>
<div id="dag1" style="padding-left: 10px;padding-right: 10px;">
<br>
<hr>
<input type="checkbox" id ="checkmonday" name="checkmonday" onchange="boxes(); writetoconsole(monday);" checked><b>Monday</b>
<br><br><br>
<div id="monday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1m" name="cmonday[]" onchange="turnoff()" checked>
ON <input type ="time" id="mt1" oninput="timeset('mt1')"> OFF <input type ="time" id="mt2" oninput="timeset('mt2')"><br>
<input type="checkbox" class="check" id ="ct2m" name="cmonday[]" onchange="turnoff()" checked>
ON <input type ="time" id="mt3" oninput="timeset('mt3')"> OFF <input type ="time" id="mt4" oninput="timeset('mt4')"><br>
<input type="checkbox" class="check" id ="ct3m" name="cmonday[]" onchange="turnoff()" checked>
ON <input type ="time" id="mt5" oninput="timeset('mt5')"> OFF <input type ="time" id="mt6" oninput="timeset('mt6')">
<br>
<div style="float: right;">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checktuesday');">
</div>
<div class="sunset"style="float: right;"></div>
<div class="sunrise"style="float: right;"></div>
<br>
</form>
<hr>
</div>
<br><br>
<hr>
<div id="dag2">
<input type="checkbox" id ="checktuesday" name="checktuesday" onchange="boxes(); writetoconsole(tuesday);" checked><b>Tuesday</b>
<br><br><br>
<div id="tuesday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1tu" onchange="turnoff()" checked>
ON <input type ="time" id="tut1" oninput="timeset('tut1')"> OFF <input type ="time" id="tut2" oninput="timeset('tut2')"><br>
<input type="checkbox" class="check" id ="ct2tu" onchange="turnoff()" checked>
ON <input type ="time" id="tut3" oninput="timeset('tut3')"> OFF <input type ="time" id="tut4" oninput="timeset('tut4')"><br>
<input type="checkbox" class="check" id ="ct3tu" onchange="turnoff()" checked>
ON <input type ="time" id="tut5" oninput="timeset('tut5')"> OFF <input type ="time" id="tut6" oninput="timeset('tut6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checkmonday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checkwednesday');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
</div>
<hr>
<br><br>
<hr>
<div id="dag3">
<input type="checkbox" id ="checkwednesday" name="checkwednesday" onchange="boxes(); writetoconsole(wednesday);" checked><b>Wednesday</b>
<br><br><br>
<div id="wednesday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1w" onchange="turnoff()" checked>
ON <input type ="time" id="wt1" oninput="timeset('wt1')"> OFF <input type ="time" id="wt2" oninput="timeset('wt2')"><br>
<input type="checkbox" class="check" id ="ct2w" onchange="turnoff()" checked>
ON <input type ="time" id="wt3" oninput="timeset('wt3')"> OFF <input type ="time" id="wt4" oninput="timeset('wt4')"><br>
<input type="checkbox" class="check" id ="ct3w" onchange="turnoff()" checked>
ON <input type ="time" id="wt5" oninput="timeset('wt5')"> OFF <input type ="time" id="wt6" oninput="timeset('wt6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checktuesday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checkthursday');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
</div>
<hr>
<br><br>
<hr>
<div id="dag4">
<div id="donderdag">
<input type="checkbox" id ="checkthursday" name="checkthursday" onchange="boxes(); writetoconsole(thursday);" checked><b>Thursday</b><br>
<br>
<br>
<div id="thursday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1th" onchange="turnoff()" checked>
ON <input type ="time" id="tht1" oninput="timeset('tht1')"> OFF <input type ="time" id="tht2" oninput="timeset('tht2')"><br>
<input type="checkbox" class="check" id ="ct2th" onchange="turnoff()" checked>
ON <input type ="time" id="tht3" oninput="timeset('tht3')"> OFF <input type ="time" id="tht4" oninput="timeset('tht4')"><br>
<input type="checkbox" class="check" id ="ct3th" onchange="turnoff()" checked>
ON <input type ="time" id="tht5" oninput="timeset('tht5')"> OFF <input type ="time" id="tht6" oninput="timeset('tht6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checkwednesday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checkfriday');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
</div>
<hr>
<br><br>
</div>
<div id="dag5">
<hr>
<input type="checkbox" id ="checkfriday" name="checkfriday" onchange="boxes(); writetoconsole(friday);" checked><b>Friday</b><br>
<br>
<br>
<div id="friday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1fr" onchange="turnoff()" checked>
ON <input type ="time" id="frt1" oninput="timeset('frt1')"> OFF <input type ="time" id="frt2" oninput="timeset('frt2')"><br>
<input type="checkbox" class="check" id ="ct2fr" onchange="turnoff()" checked>
ON <input type ="time" id="frt3" oninput="timeset('frt3')"> OFF <input type ="time" id="frt4" oninput="timeset('tht4')"><br>
<input type="checkbox" class="check" id ="ct3fr" onchange="turnoff()" checked>
ON <input type ="time" id="frt5" oninput="timeset('frt5')"> OFF <input type ="time" id="frt6" oninput="timeset('frt6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checkthursday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checksaturday');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
<hr>
</div>
<br><br>
<hr>
<div id="dag6" style="margin-bottom: 20px;margin-top: 20px;">
<input type="checkbox" id ="checksaturday" name="checksaturday" onchange="boxes(); writetoconsole(saturday);" checked><b>Saturday</b><br>
<br>
<br>
<div id="saturday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1sa" onchange="turnoff()" checked>
ON <input type ="time" id="sat1" oninput="timeset('sat1')"> OFF <input type ="time" id="sat2" oninput="timeset('sat2')"><br>
<input type="checkbox" class="check" id ="ct2sa" onchange="turnoff()" checked>
ON <input type ="time" id="sat3" oninput="timeset('sat3')"> OFF <input type ="time" id="sat4" oninput="timeset('sat4')"><br>
<input type="checkbox" class="check" id ="ct3sa" onchange="turnoff()" checked>
ON <input type ="time" id="sat5" oninput="timeset('sat5')"> OFF <input type ="time" id="sat6" oninput="timeset('sat6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checkfriday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checksunday');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
</div>
<hr>
<br><br>
<hr>
<div id="dag0">
<input type="checkbox" id ="checksunday" name="checksunday" onchange="boxes(); writetoconsole(sunday);" checked><b>Sunday</b><br>
<br>
<br>
<div id="sunday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1su" onchange="turnoff()" checked>
ON <input type ="time" id="sut1" oninput="timeset('sut1')"> OFF <input type ="time" id="sut2" oninput="timeset('sut2')"><br>
<input type="checkbox" class="check" id ="ct2su" onchange="turnoff()" checked>
ON <input type ="time" id="sut3" oninput="timeset('sut3')"> OFF <input type ="time" id="sut4" oninput="timeset('sut4')"><br>
<input type="checkbox" class="check" id ="ct3su" onchange="turnoff()" checked>
ON <input type ="time" id="sut5" oninput="timeset('sut5')"> OFF <input type ="time" id="sut6" oninput="timeset('sut6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checksaturday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checkeveryday');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
</div>
<hr>
<br><br>
<div id="iederedag">
<hr>
<input type="checkbox" id ="checkeveryday" name="checkeveryday" checked><b>Every Day of the Week</b><br>
<br>
<br>
<div id="everyday"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1ed" onchange="turnoff()" checked>
ON <input type ="time" id="edt1" oninput="timeset('edt1')"> OFF <input type ="time" id="edt2" oninput="timeset('edt2')"><br>
<input type="checkbox" class="check" id ="ct2ed" onchange="turnoff()" checked>
ON <input type ="time" id="edt3" oninput="timeset('edt3')"> OFF <input type ="time" id="edt4" oninput="timeset('edt4')"><br>
<input type="checkbox" class="check" id ="ct3ed" onchange="turnoff()" checked>
ON <input type ="time" id="edt5" oninput="timeset('edt5')"> OFF <input type ="time" id="edt6" oninput="timeset('edt6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checksunday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checkweekdays');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
<hr>
</div>
<br><br>
<div id="weekdagen">
<hr>
<input type="checkbox" id ="checkweekdays" name="checkweekdays" checked><b>Weekdays Monday ... Friday</b><br>
<br>
<br>
<div id="weekdays"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1wd" onchange="turnoff()" checked>
ON <input type ="time" id="wdt1" oninput="timeset('wdt1')"> OFF <input type ="time" id="wdt2" oninput="timeset('wdt2')"><br>
<input type="checkbox" class="check" id ="ct2wd" onchange="turnoff()" checked>
ON <input type ="time" id="wdt3" oninput="timeset('wdt3')"> OFF <input type ="time" id="wdt4" oninput="timeset('wdt4')"><br>
<input type="checkbox" class="check" id ="ct3wd" onchange="turnoff()" checked>
ON <input type ="time" id="wdt5" oninput="timeset('wdt5')"> OFF <input type ="time" id="wdt6" oninput="timeset('wdt6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checkeveryday');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#week_end');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
<hr>
</div>
<br><br>
<div id="week_end" style="padding-left: 10px;padding-right: 10px;">
<br>
<hr>
<input type="checkbox" id ="checkweekends" name="checkweekends" checked><b>Weekends Saturday Sunday</b> <br>
<br>
<br>
<div id="weekends"></div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1wend" onchange="turnoff()" checked>
ON <input type ="time" id="wendt1" oninput="timeset('wendt1')"> OFF <input type ="time" id="wendt2" oninput="timeset('wendt2')"><br>
<input type="checkbox" class="check" id ="ct2wend" onchange="turnoff()" checked>
ON <input type ="time" id="wendt3" oninput="timeset('wendt3')"> OFF <input type ="time" id="wendt4" oninput="timeset('wendt4')"><br>
<input type="checkbox" class="check" id ="ct3wend" onchange="turnoff()" checked>
ON <input type ="time" id="wendt5" oninput="timeset('wendt5')"> OFF <input type ="time" id="wendt6" oninput="timeset('wendt6')">
<br>
<div style="float: right;">
<input type="button" value="PREVIOUS" onclick="scrollToAnchor('#checkweekdays');">
<input type="button" value="NEXT" onclick="scrollToAnchor('#checkudd');">
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
<hr>
<br>
</div>
<br><br>
<div id="udd+days">
<hr>
<input type="checkbox" id ="checkudd" name="checkudd"><b>User Defined Days</b><br>
<table style="border-collapse: collapse;" border = "1">
<tbody>
<tr>
<td class="d1"> mon </td>
<td class="d2"> tue </td>
<td class="d3"> wed </td>
<td class="d4"> thu </td>
<td class="d5"> fri </td>
<td class="d6"> sat </td>
<td class="d0"> sun </td>
</tr>
<tr>
<td id="cb_udd_1"><input type="checkbox" id="cb_udd1"> </td>
<td id="cb_udd_2"><input type="checkbox" id="cb_udd2"> </td>
<td id="cb_udd_3"><input type="checkbox" id="cb_udd3"> </td>
<td id="cb_udd_4"><input type="checkbox" id="cb_udd4"> </td>
<td id="cb_udd_5"><input type="checkbox" id="cb_udd5"> </td>
<td id="cb_udd_6"><input type="checkbox" id="cb_udd6"> </td>
<td id="cb_udd_0"><input type="checkbox" id="cb_udd0"> </td>
</tr>
</tbody>
</table>
<br><br><br>
<br><div id="userdefined">
</div>
<br><br><br><br>
<form>
<input type="checkbox" class="check" id ="ct1ud" onchange="turnoff()" checked>
ON <input type ="time" id="udt1" oninput="timeset('udt1')"> OFF <input type ="time" id="udt2" oninput="timeset('udt2')"><br>
<input type="checkbox" class="check" id ="ct2ud" onchange="turnoff()" checked>
ON <input type ="time" id="udt3" oninput="timeset('udt3')"> OFF <input type ="time" id="udt4" oninput="timeset('udt4')"><br>
<input type="checkbox" id ="ct3ud" onchange="turnoff()" checked>
ON <input type ="time" class="check" id="udt5" oninput="timeset('udt5')"> OFF <input type ="time" id="udt6" oninput="timeset('udt6')">
<br>
<div style="float: right;">
<input type="button" value="Go to Monday" onclick="scrollToAnchor('#checkmonday');">
<br>
</div>
<div class="sunset" style="float: right;"></div>
<div class="sunrise" style="float: right;"></div>
<br>
</form>
<hr>
</div>
<br><br>
<hr><br>
<input type="checkbox"><b>User Defined Days on even and/or odd weeknumbers </b><br>
<div id="wn1"></div>
<table style="border-collapse: collapse;" border = "1">
<tbody>
<tr>
<td class="d1"> mon </td>
<td class="d2"> tue </td>
<td class="d3"> wed </td>
<td class="d4"> thu </td>
<td class="d5"> fri </td>
<td class="d6"> sat </td>
<td class="d0"> sun </td>
</tr>
<tr>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse;" border = "1">
<tbody>
<tr>
<td class="even"> even weeknumber </td>
<td class="odd"> odd weeknumber </td>
</tr>
<tr>
<td><center><input type="checkbox"></center> </td>
<td><center><input type="checkbox"></center></td>
</tr>
</tbody>
</table>
<hr>
<br><br>
<hr><br>
<input type="checkbox"><b>User Defined Days on even and/or odd weeknumbers </b><br>
<div id="wn2"></div>
<table style="border-collapse: collapse;" border = "1">
<tbody>
<tr>
<td class="d1"> mon </td>
<td class="d2"> tue </td>
<td class="d3"> wed </td>
<td class="d4"> thu </td>
<td class="d5"> fri </td>
<td class="d6"> sat </td>
<td class="d0"> sun </td>
</tr>
<tr>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
<td><input type="checkbox"> </td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse;" border = "1">
<tbody>
<tr>
<td class="even"> even weeknumber </td>
<td class="odd"> odd weeknumber </td>
</tr>
<tr>
<td><center><input type="checkbox"></center> </td>
<td><center><input type="checkbox"></center></td>
</tr>
</tbody>
</table>
<hr><hr><br>
<br>
how do i make the timescale better <br>
<br>
marker sunrise, sunset on slidebar == suncalc javascript<br>
checkbox sunrise sunset near timeset textfields<br>
----- https://github.com/mourner/suncalc<br>
<br>
<br><br>
<center>
<br>
<br>
<hr>
<h2><a href="https://ldijkman.github.io/Electra" target="Electra_go4it">ldijkman.github.io/Electra</a></h2>
<br>
<hr>
<br><br><br>
<a href="https://m.facebook.com/luberth.dijkman" target="faceboekie">https://m.facebook.com/luberth.dijkman</a><br>
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUSEhIVFhUVFRUXFRcVFxgYFxcXFhgXFxYXFxUYHSggGBolHRUYITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGy0lICUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAP0AyAMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABgIDBAUHAQj/xABEEAABAwIDBAcEBwUHBQEAAAABAAIDBBEFEiEGMUFREyIyYXGBkUJSocEHFCNicrHRFYKSovAzU2Nzg7PhNEOywvEk/8QAG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w5MPKkBCpMYUKeBpy4AjD6EjgrZoypO6EKgwBRZbMjwBFjRlUmgKlhpm8l59WbyWD2Z1BFP2eV6MMPJSwQBViELJbL5s8sRMYS5V/skqWCMJ0Y5LYtmRFiJ/so8k/Zh5KW9GOSpMY5I9mR5ntiKfs08l6MNKlBhC86ELD/TRYjX7NXgwxSXoQqhCEWzkCOx4asqPDFuhEFXlW+GAgtQayPDgOCyWUgCyl6pcaEI6IFpsIVYaqkW3dSB5ZF6i9B//9k=">
<br>
Done with it, within a week, Saying Hi Google<br>
Oh Alexa sounds like Calling Jeff Bezos's Bitch<br>
Who wants to say, Hi Bixby, Siri, Cortana<br>
<br>
Hey Electra, You make Sense!<br>
<br>
<a href="https://ldijkman.github.io/Electra" target="Hey_Electra">https://ldijkman.github.io/Electra</a>
<br><br>A ©ÒÓÞè® Test. 2021<br><br>
</center>
<!-- Copyright 2022 Dirk Luberth Dijkman Bangert Andijk The Netherlands -->
<script type="text/javascript">//<![CDATA[
// external js version 15.5.0
var numberToTime = function(n) {
// 0 to 1440 minutes a day convert it to hh:mm
// document.getElementById("demon").innerHTML = n;
// n = 0 to 1440
var hour = Math.floor(n / 60); // h or hh
var minute = Math.floor(n - hour * 60); // m or mm
if (minute <= 9) minute = "0" + minute; // mm
if (hour <= 9) hour = "0" + hour; // hh
return hour + ":" + minute; // hh:mm
// next is not working correct quite some minutes calculated wrong
// return `0${n / 60 ^ 0}`.slice(-2) + ':' + ('0' + n % 60).slice(-2);
}
var numberToTime2 = function(n) {
var hour = Math.floor(n / 60);
return hour;
}
// add a leasing zero for 0 to 9 0h:mm and hh:mm
// for input type time
var numberToTime3 = function(n) {
// 0 to 1440 minutes a day convert it to hh:mm
// document.getElementById("demon").innerHTML = n;
// n = 0 to 1440
var hour = Math.floor(n / 60); // h or hh
var minute = Math.floor(n - hour * 60); // m or mm
if (minute <= 9) minute = "0" + minute; // mm
// if (hour <= 9)hour = "0"+hour; // hh
return hour + ":" + minute; // hh:mm
}
// next variables should be set by ESP8266 ESP8285 before/on pageload replaced with values actual values know by esp
// maybe save to file and include it
// or prcessor %% on upload
var mon_1 = 6 * 60; // on ours in minutes
var mon_2 = 9 * 60; // off hours in minutes
var mon_3 = 11 * 60; // on hours in minutes
var mon_4 = 13 * 60; // off hours in minute
var mon_5 = 19 * 60; // on hours in minutes
var mon_6 = 22 * 60; // off hoursh in minutes
var tue_1 = 0; // on hours in minutes
var tue_2 = 6 * 60+15; // off hours in minutes
var tue_3 = 9 * 60; // on hours in minutes
var tue_4 = 19 * 60; // off hours in minutes
var tue_5 = 22 * 60; // on hours in minutes
var tue_6 = 23 * 60 + 59; // off hours in minutes
var wed_1 = 5 * 60; // on hours in minutes
var wed_2 = 6 * 60; // off hours in minutes
var wed_3 = 16 * 60; // on hours in minutes
var wed_4 = 18 * 60; // off hours in minutes
var wed_5 = 20 * 60; // on hours in minutes
var wed_6 = 22 * 60 + 45; // off hours in minutes
var thu_1 = 5 * 60; // on hours in minutes
var thu_2 = 6 * 60; // off hours in minutes
var thu_3 = 16 * 60; // on hours in minutes
var thu_4 = 18 * 60; // off hours in minutes
var thu_5 = 20 * 60; // on hours in minutes
var thu_6 = 22 * 60 + 45; // off hours in minutes
var fri_1 = 5 * 60; // on hours in minutes
var fri_2 = 6 * 60; // off hours in minutes
var fri_3 = 16 * 60; // on hours in minutes
var fri_4 = 18 * 60; // off hours in minutes
var fri_5 = 20 * 60; // on hours in minutes
var fri_6 = 22 * 60 + 45; // off hours in minutes
var sat_1 = 5 * 60; // on hours in minutes
var sat_2 = 6 * 60; // off hours in minutes
var sat_3 = 16 * 60; // on hours in minutes
var sat_4 = 18 * 60; // off hours in minutes
var sat_5 = 20 * 60; // on hours in minutes
var sat_6 = 22 * 60 + 45; // off hours in minutes
var sun_1 = 5 * 60; // on hours in minutes
var sun_2 = 6 * 60; // off hours in minutes
var sun_3 = 16 * 60; // on hours in minutes
var sun_4 = 18 * 60; // off hours in minutes
var sun_5 = 20 * 60; // on hours in minutes
var sun_6 = 22 * 60 + 45; // off hours in minutes
var everyday_1 = 5 * 60; // on hours in minutes
var everyday_2 = 6 * 60; // off hours in minutes
var everyday_3 = 16 * 60; // on hours in minutes
var everyday_4 = 18 * 60; // off hours in minutes
var everyday_5 = 20 * 60; // on hours in minutes
var everyday_6 = 22 * 60 + 45; // off hours in minutes
var weekdays_1 = 5 * 60; // on hours in minutes
var weekdays_2 = 6 * 60; // off hours in minutes
var weekdays_3 = 16 * 60; // on hours in minutes
var weekdays_4 = 18 * 60; // off hours in minutes
var weekdays_5 = 20 * 60; // on hours in minutes
var weekdays_6 = 22 * 60 + 45; // off hours in minutes
var weekends_1 = 5 * 60; // on hours in minutes
var weekends_2 = 6 * 60; // off hours in minutes
var weekends_3 = 16 * 60; // on hours in minutes
var weekends_4 = 18 * 60; // off hours in minutes
var weekends_5 = 20 * 60; // on hours in minutes
var weekends_6 = 22 * 60 + 45; // off hours in minutes
var userdefined_1 = 5 * 60; // on hours in minutes
var userdefined_2 = 6 * 60; // off hours in minutes
var userdefined_3 = 16 * 60; // on hours in minutes
var userdefined_4 = 18 * 60; // off hours in minutes
var userdefined_5 = 20 * 60; // on hours in minutes
var userdefined_6 = 22 * 60 + 45; // off hours in minutes
var slider = document.getElementById("monday");
noUiSlider.create(monday, {
start: [mon_1, mon_2, mon_3, mon_4, mon_5, mon_6],
connect: [false, true, false, true, false, true, false],
step: 1,
behaviour: "none",
tooltips: [true, true, true, true, true, true],
format: {
to: numberToTime, // numberToTime3 tooltip no leading 0 for hours
from: Number
},
range: {
'min': 0,
'max': 1440
},
pips: {
mode: 'count',
values: 25,
format: {
to: numberToTime2,
from: Number
},