status.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <link rel="stylesheet" href="max80.css" />
  5. <title class="status">MAX80</title>
  6. <script src="max80.js"></script>
  7. <script src="status.js"></script>
  8. </head>
  9. <body>
  10. <x-inc src="head.html"></x-inc>
  11. <h1 class="status">Status</h1>
  12. <form id="getstatus" class="ro">
  13. <fieldset class="hw">
  14. <legend>MAX80</legend>
  15. <label class="ver">
  16. <b>Hardware version</b>
  17. <input type="text" name="max80.hw.ver" />
  18. </label>
  19. <label class="serial">
  20. <b>Serial Number</b>
  21. <input type="text" name="max80.hw.serial" />
  22. </label>
  23. <label class="hostname">
  24. <b>Host Name</b>
  25. <input type="text" name="hostname" />
  26. </label>
  27. <label class="fpgaok">
  28. <b>FPGA online</b>
  29. <input is="x-box" name="max80.fpga" />
  30. </label>
  31. </fieldset>
  32. <fieldset class="fw">
  33. <legend>Firmware</legend>
  34. <label class="ver">
  35. <b>Firmware version</b>
  36. <input type="text" name="COMMIT_VERSION" />
  37. </label>
  38. <label class="date">
  39. <b>Firmware commit date</b>
  40. <input type="text" name="COMMIT_DATE" />
  41. </label>
  42. <label class="commit">
  43. <b>Firmware commit ID</b>
  44. <input type="text" name="COMMIT_ID" />
  45. </label>
  46. </fieldset>
  47. <fieldset class="wifi-sta">
  48. <legend>Wifi Client</legend>
  49. <label class="net-connected">
  50. <b>Connected</b>
  51. <input is="x-box" name="net.sta.conn" />
  52. </label>
  53. <label class="wifi-ssid">
  54. <b>Network name (SSID)</b>
  55. <input type="text" name="net.sta.ssid" />
  56. </label>
  57. <label class="net-mac">
  58. <b>MAC address</b>
  59. <input type="text" name="net.sta.mac" />
  60. </label>
  61. <label class="net-ip4">
  62. <b>IP address</b>
  63. <input type="text" name="net.sta.ip4" />
  64. </label>
  65. <label class="net-ip4-mask">
  66. <b>Netmask</b>
  67. <input type="text" name="net.sta.ip4.mask" />
  68. </label>
  69. <label class="net-ip4-gw">
  70. <b>Gateway</b>
  71. <input type="text" name="net.sta.ip4.gw" />
  72. </label>
  73. </fieldset>
  74. <fieldset class="wifi-ap">
  75. <legend>Wifi Access Point</legend>
  76. <label class="net-connected">
  77. <b>Active</b>
  78. <input is="x-box" name="net.ap.conn" />
  79. </label>
  80. <label class="wifi-ssid">
  81. <b>Network name (SSID)</b>
  82. <input type="text" name="net.ap.ssid" />
  83. </label>
  84. <label class="net-mac">
  85. <b>MAC address</b>
  86. <input type="text" name="net.ap.mac" />
  87. </label>
  88. <label class="net-ip4">
  89. <b>IP address</b>
  90. <input type="text" name="net.ap.ip4" />
  91. </label>
  92. <label class="net-ip4-mask">
  93. <b>Netmask</b>
  94. <input type="text" name="net.ap.ip4.mask" />
  95. </label>
  96. <label class="net-connected-clients">
  97. <b>Connected clients</b>
  98. <input type="text" name="net.ap.clients" />
  99. </label>
  100. </fieldset>
  101. <fieldset class="datetime">
  102. <legend>Date and Time</legend>
  103. <label class="localtime">
  104. <b>Current date and time</b>
  105. <input type="text" name="localtime" />
  106. </label>
  107. <label class="sntp-server">
  108. <b>NTP server</b>
  109. <input type="text" name="net.sntp.server" />
  110. </label>
  111. <label class="sntp-sync">
  112. <b>Time synchronized</b>
  113. <input is="x-box" name="net.sntp.sync" />
  114. </label>
  115. </fieldset>
  116. <fieldset class="refresh">
  117. <legend>Status refresh</legend>
  118. <label class="refresh">
  119. <b>Refresh interval</b>
  120. <input class="noro" id="refresh_time" type="number"
  121. name="http.status.refresh" value="10" step="1" min="2"
  122. onchange="ref_status(true)" />&nbsp;s
  123. </label>
  124. </fieldset>
  125. </form>
  126. <script>ref_status(false)</script>
  127. </body>
  128. </html>