status.html 3.2 KB

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