index.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. </head>
  21. <body>
  22. <div class="container">
  23. <div class="header">
  24. <nav>
  25. <ul class="nav nav-pills pull-right">
  26. <li role="presentation" class="active"><a href="/">Home</a></li>
  27. <li role="presentation"><a href="/config">Configuration</a></li>
  28. <li role="presentation"><a href="/api">API</a></li>
  29. </ul>
  30. </nav>
  31. <h3 class="text-muted">Wall Segment Clock</h3>
  32. </div>
  33. <div class="row">
  34. <h2>&nbsp;</h2>
  35. <div class="col-xs-offset-2">
  36. <div class="col-xs-10 col-md-5">
  37. <div class="panel panel-default">
  38. <div class="panel-heading">
  39. <h3 class="panel-title">Temperature</h3>
  40. </div>
  41. <div class="panel-body">
  42. <h1 class="text-center main">{T} &deg;C</h1>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="col-xs-10 col-md-5">
  47. <div class="panel panel-default">
  48. <div class="panel-heading">
  49. <h3 class="panel-title">Humidity</h3>
  50. </div>
  51. <div class="panel-body">
  52. <h1 class="text-center main">{RH} %</h1>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="col-xs-10 col-md-5">
  57. <div class="panel panel-default">
  58. <div class="panel-heading">
  59. <h3 class="panel-title">Heatindex</h3>
  60. </div>
  61. <div class="panel-body">
  62. <h1 class="text-center main">{HI} &deg;C</h1>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="col-xs-10 col-md-5">
  67. <div class="panel panel-default">
  68. <div class="panel-heading">
  69. <h3 class="panel-title">Comfort</h3>
  70. </div>
  71. <div class="panel-body">
  72. <h1 class="text-center main">{CR} % &mdash; {CF}</h1>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="col-xs-10 col-md-5">
  77. <div class="panel panel-default">
  78. <div class="panel-heading">
  79. <h3 class="panel-title">Last NTP Update</h3>
  80. </div>
  81. <div class="panel-body">
  82. <h1 class="text-center main">{LASTNTP} seconds ago</h1>
  83. </div>
  84. </div>
  85. </div>
  86. <!-- /col -->
  87. </div>
  88. </div>
  89. </div> <!-- /container -->
  90. </body>
  91. </html>