api.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Wall Segment Clock</title>
  8. <link rel="icon" href="data:,">
  9. <!-- Bootstrap core -->
  10. <link href="/bootstrap.css" rel="stylesheet">
  11. <script src="/jquery.js"></script>
  12. <style>
  13. .main { font-size: 63px; }
  14. </style>
  15. </head>
  16. <body>
  17. <div class="container">
  18. <div class="header">
  19. <nav>
  20. <ul class="nav nav-pills pull-right">
  21. <li role="presentation"><a href="/">Home</a></li>
  22. <li role="presentation"><a href="/config">Configuration</a></li>
  23. <li role="presentation" class="active"><a href="/api">API</a></li>
  24. </ul>
  25. </nav>
  26. <h3 class="text-muted">Wall Segment Clock</h3>
  27. </div>
  28. <div class="row">
  29. <h2>&nbsp;</h2>
  30. <div class="col-xs-offset-2">
  31. <div class="col-xs-10 col-md-5">
  32. <div class="panel panel-default">
  33. <div class="panel-heading">
  34. <h3 class="panel-title">Read value</h3>
  35. </div>
  36. <div class="panel-body">
  37. <h4>http://{IP}/api/sensors</h4>
  38. <p>Will return all sensors values</p>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="col-xs-10 col-md-5">
  43. <div class="panel panel-default">
  44. <div class="panel-heading">
  45. <h3 class="panel-title">Control LED brightnes</h3>
  46. </div>
  47. <div class="panel-body">
  48. <h4>http://{IP}/api/control?bright=7</h4>
  49. <p>Set LED bright to highest value.</p>
  50. <h4>http://{IP}/api/control?bright=0</h4>
  51. <p>Set LED bright to lowest value.</p>
  52. </div>
  53. </div>
  54. </div>
  55. </div><!-- /col -->
  56. </div>
  57. </div>
  58. </div> <!-- /container -->
  59. </body>
  60. </html>