config.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  15. <!--[if lt IE 9]>
  16. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  17. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  18. <![endif]-->
  19. </head>
  20. <body>
  21. <div class="container">
  22. <div class="header">
  23. <nav>
  24. <ul class="nav nav-pills pull-right">
  25. <li role="presentation"><a href="/">Home</a></li>
  26. <li role="presentation" class="active"><a href="/config">Configuration</a></li>
  27. <li role="presentation"><a href="/api">API</a></li>
  28. </ul>
  29. </nav>
  30. <h3 class="text-muted">ClockControl</h3>
  31. </div>
  32. <div class="row">
  33. <h2>&nbsp;</h2>
  34. <div class="col-xs-offset-2 col-xs-8">
  35. <!-- Network config -->
  36. <div>
  37. <div class="panel panel-default">
  38. <div class="panel-heading">
  39. <h3 class="panel-title">Network</h3>
  40. </div>
  41. <div class="panel-body">
  42. <form method="POST">
  43. <div class="form-group">
  44. <label>Name</label>
  45. <input type="text" name="SSID" class="form-control" placeholder="Enter SSID" value="{SSID}">
  46. </div>
  47. <div class="form-group">
  48. <label for="exampleInputPassword1">Password</label>
  49. <input type="password" name="Password" class="form-control" placeholder="Password">
  50. </div>
  51. <button type="submit" class="btn btn-success">Save network</button>
  52. <button type="cancel" class="btn btn-link">Cancel</button>
  53. </form>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- Clock config -->
  58. <div>
  59. <div class="panel panel-default">
  60. <div class="panel-heading">
  61. <h3 class="panel-title">Clock settings</h3>
  62. </div>
  63. <div class="panel-body">
  64. <form method="POST">
  65. <div class="form-group">
  66. <label>Low light level threshold, 0 &mdash; 1023</label>
  67. <input type="number" min="0" max="1023" name="LLow" class="form-control" value="{LLow}">
  68. </div>
  69. <div class="form-group">
  70. <label>High light level threshold, 0 &mdash; 1023</label>
  71. <input type="number" min="0" max="1023" name="LHigh" class="form-control" value="{LHigh}">
  72. </div>
  73. <div class="form-group">
  74. <label>Brightness Low level, 0 &mdash; 15</label>
  75. <input type="number" min="0" max="15" name="BLow" class="form-control" value="{BLow}">
  76. </div>
  77. <div class="form-group">
  78. <label>Brightness Middle level, 0 &mdash; 15</label>
  79. <input type="number" min="0" max="15" name="BMid" class="form-control" value="{BMid}">
  80. </div>
  81. <div class="form-group">
  82. <label>Brightness High level, 0 &mdash; 14</label>
  83. <input type="number" min="0" max="15" name="BHigh" class="form-control" value="{BHigh}">
  84. </div>
  85. <div class="form-group">
  86. <label>Local time, &#x00B1; hours from GMT</label>
  87. <input type="text" name="TZ" class="form-control" value="{TZ}">
  88. </div>
  89. <button type="submit" class="btn btn-success">Save correction</button>
  90. <button type="cancel" class="btn btn-link">Cancel</button>
  91. </form>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div> <!-- /container -->
  98. </body>
  99. </html>