status.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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="fpgaok">
  24. <b>FPGA online</b>
  25. <input type="checkbox" name="max80.fpga" />
  26. </label>
  27. </fieldset>
  28. <fieldset class="fw">
  29. <legend>Firmware</legend>
  30. <label class="ver">
  31. <b>Firmware version</b>
  32. <input type="text" name="COMMIT_VERSION" />
  33. </label>
  34. <label class="date">
  35. <b>Firmware commit date</b>
  36. <input type="text" name="COMMIT_DATE" />
  37. </label>
  38. <label class="commit">
  39. <b>Firmware commit ID</b>
  40. <input type="text" name="COMMIT_ID" />
  41. </label>
  42. </fieldset>
  43. <fieldset class="wifi-sta">
  44. <legend>Wifi Client</legend>
  45. <label class="net-connected">
  46. <b>Connected</b>
  47. <input type="checkbox" name="net.sta.conn" />
  48. </label>
  49. <label class="wifi-ssid">
  50. <b>Network name (SSID)</b>
  51. <input type="text" name="net.sta.ssid" />
  52. </label>
  53. <label class="net-mac">
  54. <b>MAC address</b>
  55. <input type="text" name="net.sta.mac" />
  56. </label>
  57. <label class="net-ip4">
  58. <b>IP address</b>
  59. <input type="text" name="net.sta.ip4" />
  60. </label>
  61. <label class="net-ip4-mask">
  62. <b>Netmask</b>
  63. <input type="text" name="net.sta.ip4.mask" />
  64. </label>
  65. <label class="net-ip4-gw">
  66. <b>Gateway</b>
  67. <input type="text" name="net.sta.ip4.gw" />
  68. </label>
  69. </fieldset>
  70. <fieldset class="wifi-ap">
  71. <legend>Wifi Access Point</legend>
  72. <label class="net-connected">
  73. <b>Active</b>
  74. <input type="checkbox" name="net.ap.conn" />
  75. </label>
  76. <label class="wifi-ssid">
  77. <b>Network name (SSID)</b>
  78. <input type="text" name="net.ap.ssid" />
  79. </label>
  80. <label class="net-mac">
  81. <b>MAC address</b>
  82. <input type="text" name="net.ap.mac" />
  83. </label>
  84. <label class="net-ip4">
  85. <b>IP address</b>
  86. <input type="text" name="net.ap.ip4" />
  87. </label>
  88. <label class="net-ip4-mask">
  89. <b>Netmask</b>
  90. <input type="text" name="net.ap.ip4.mask" />
  91. </label>
  92. <label class="net-connected-clients">
  93. <b>Connected clients</b>
  94. <input type="text" name="net.ap.clients" />
  95. </label>
  96. </fieldset>
  97. <fieldset class="datetime">
  98. <legend>Date and Time</legend>
  99. <label class="localtime">
  100. <b>Current date and time</b>
  101. <input type="text" name="localtime" />
  102. </label>
  103. <label class="sntp-server">
  104. <b>NTP server</b>
  105. <input type="text" name="net.sntp.server" />
  106. </label>
  107. <label class="sntp-sync">
  108. <b>Time synchronized</b>
  109. <input type="checkbox" name="net.sntp.sync" />
  110. </label>
  111. </fieldset>
  112. <fieldset class="refresh">
  113. <legend>Status refresh</legend>
  114. <label class="refresh">
  115. <b>Refresh interval</b>
  116. <input class="noro" id="refresh_time" type="number"
  117. name="http.status.refresh" value="10" step="1" min="2"
  118. onchange="ref_status(true)" />&nbsp;s
  119. </label>
  120. </fieldset>
  121. </form>
  122. <script>ref_status(false)</script>
  123. </body>
  124. </html>