ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 3.2KB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>ESP8266 Treppenlicht</title>
  5. <!-- main style sheet -->
  6. <link href="/favicon.png" rel="icon" type="image/png" sizes="10x10">
  7. <link href="/style.css" rel="stylesheet" type="text/css">
  8. </head>
  9. <body>
  10. <div class="kopfzeile" style="text-align: center;">
  11. <b>Treppenlicht</b>
  12. </div>
  13. <!--
  14. <div class="ueberschrift">
  15. Helligkeit
  16. label id="label_pwm">
  17. </label>
  18. <div class="slider">
  19. <input type="range" class="regler" id="helligkeit" name="rangeInput" min="0" max="100" value="50"
  20. oninput="amount1.value=helligkeit.value">
  21. <br>
  22. <output name="amount1" id="amount1" for="helligkeit">50</output>
  23. </div>
  24. </div>-->
  25. <form class="ueberschrift">
  26. <div class="BridhgtnessInputGroup">
  27. <label for="brightness"> Helligkeitswert in %:</label>
  28. <input id="brightness" type="number" name="brightness" step="1" min="0" max="100" placeholder="zB. 50" required>
  29. <span class="validity"></span>
  30. <button type="button" onclick="getInputValue()">Speichern</button>
  31. <script>
  32. function getInputValue(){
  33. var helligkeit= document.getElementById("brightness").value;
  34. if (helligkeit > 100 | helligkeit < 0)
  35. alert("Helligkeit darf nicht groesser 100 oder kleiner 0 sein")
  36. else alert(helligkeit);
  37. }
  38. </script>
  39. </div>
  40. </form>
  41. <!--
  42. < div class="ueberschrift" >
  43. Helligkeit bei Dunkelheit
  44. < !--< label id = "label_pwm_dark" >
  45. </label >
  46. <div class="slider">
  47. <input type="range" class="regler" id="helligkeit_dunkel" name="rangeInput" min="0" max="100" value="50"
  48. oninput="amount2.value=helligkeit_dunkel.value">
  49. <br>
  50. <output name="amount2" id="amount2" for="helligkeit_dunkel">50</output>
  51. </div>
  52. </div>
  53. <div class="ueberschrift">
  54. Laufgeschwindigkeit
  55. <!--<label id="label_geschwindigkeit">
  56. </label>
  57. <div class="slider">
  58. <input type="range" class="regler" id="geschwindigkeit" name="rangeInput" min="0" max="100" value="50"
  59. oninput="amount3.value=geschwindigkeit.value">
  60. <br>
  61. <output name="amount3" id="amount3" for="geschwindigkeit">50</output>
  62. </div>
  63. </div>
  64. <div class="ueberschrift">
  65. Licht-An-Zeit
  66. <!-- <label id="label_time">
  67. </label>
  68. <div class="slider">
  69. <input type="range" class="regler" id="time" name="rangeInput" min="0" max="100" value="50"
  70. oninput="amount4.value=time.value">
  71. <br>
  72. <output name="amount4" id="amount4" for="time">50</output>
  73. </div>
  74. </div>-->
  75. <div class="terminal">
  76. <input type="button" id="clear_term" value="clear" onclick="clearTerminal();">
  77. <input type="checkbox" id="scroll" name="scroll" value="scroll" checked>
  78. <label for="scroll"> autoscroll </label>
  79. <textarea id="term">waiting for log messages ...&#10;</textarea>
  80. </div>
  81. </body>
  82. <script src="/input.js"></script>
  83. </html>