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 2.4KB

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
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html>
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4. <head>
  5. <title>ESP8266 Treppenlicht</title>
  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="topbar">Treppenlicht</div>
  11. <div class="param_block">
  12. <input type="button" class="control" data-action="s_oben" value="sensor_oben">
  13. <input type="button" class="control" data-action="s_unten" value="sensor_unten">
  14. <!-- <input type="button" class="control" data-action="on_off" value="on_off"> -->
  15. </div>
  16. <div class="param_block">
  17. Active Brightness: <output id="out_act_pwm" class="val_range">50</output> %
  18. <div class="slider">
  19. <input type="range" class="regler" id="range_act_pwm" data-output="out_act_pwm" min="0" max="100" value="50">
  20. </div>
  21. </div>
  22. <div class="param_block">
  23. Idle Brightness Maximum: <output id="out_idl_pwm" class="val_range">50</output> %
  24. <label id="note">[100% == Active Brightness]</label>
  25. <div class="slider">
  26. <input type="range" class="regler" id="range_idl_pwm" data-output="out_idl_pwm" min="0" max="100" value="50">
  27. </div>
  28. <label id="note">idle brightness gets controlled via LDR measurments</label>
  29. </div>
  30. <div class="param_block">
  31. Time per stair [ms]: <output id="out_tim_sta" class="val_range">300</output> ms
  32. <div class="slider">
  33. <input type="range" class="regler" id="range_tim_sta" data-output="out_tim_sta" min="0" max="5000" value="300">
  34. </div>
  35. </div>
  36. <div class="param_block">
  37. Time LDR [ms]: <output id="out_tim_ldr" class="val_range">500</output> ms
  38. <div class="slider">
  39. <input type="range" class="regler" id="range_tim_ldr" data-output="out_tim_ldr" min="0" max="5000" value="500">
  40. </div>
  41. </div>
  42. <div class="param_block">
  43. LDR Schwelle [lx]: <output id="out_ldr_shw" class="val_range">50</output> lx
  44. <div class="slider">
  45. <input type="range" class="regler" id="range_ldr_shw" data-output="out_ldr_shw" min="0" max="1000" value="50">
  46. </div>
  47. </div>
  48. <div class="terminal">
  49. <input type="button" id="clear_term" value="clear">
  50. <input type="checkbox" id="scroll" name="scroll" value="scroll" checked>
  51. <label for="scroll"> autoscroll </label>
  52. <textarea id="term">waiting for log messages ...&#10;</textarea>
  53. </div>
  54. </body>
  55. <script src="/input.js"></script>
  56. </html>