api.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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>MeteoControl WiFi Station</title>
  8. <!-- Bootstrap core -->
  9. <link href="/bootstrap.css" rel="stylesheet">
  10. <script src="/jquery.js"></script>
  11. <style>
  12. .main { font-size: 63px; }
  13. </style>
  14. </head>
  15. <body>
  16. <div class="container">
  17. <div class="header">
  18. <nav>
  19. <ul class="nav nav-pills pull-right">
  20. <li role="presentation"><a href="/">Home</a></li>
  21. <li role="presentation"><a href="/config">Configuration</a></li>
  22. <li role="presentation" class="active"><a href="/api">API</a></li>
  23. </ul>
  24. </nav>
  25. <h3 class="text-muted">MeteoControl</h3>
  26. </div>
  27. <div class="row">
  28. <h2>&nbsp;</h2>
  29. <div class="col-xs-offset-2">
  30. <div class="col-xs-10 col-md-5">
  31. <div class="panel panel-default">
  32. <div class="panel-heading">
  33. <h3 class="panel-title">Read value</h3>
  34. </div>
  35. <div class="panel-body">
  36. <h4>http://{IP}/api/sensors</h4>
  37. <p>Will return all sensors values</p>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="col-xs-10 col-md-5">
  42. <div class="panel panel-default">
  43. <div class="panel-heading">
  44. <h3 class="panel-title">Control LED brightnes</h3>
  45. </div>
  46. <div class="panel-body">
  47. <h4>http://{IP}/api/control?bright=15</h4>
  48. <p>Set LED bright to highest value.</p>
  49. <h4>http://{IP}/api/control?bright=1</h4>
  50. <p>Set LED bright to lowest value.</p>
  51. </div>
  52. </div>
  53. </div>
  54. </div><!-- /col -->
  55. </div>
  56. </div>
  57. </div> <!-- /container -->
  58. </body>
  59. </html>