See espterm.github.io

cfg_system.html 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <!doctype html>
  2. <html>
  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, shrink-to-fit=no, maximum-scale=1">
  7. <title>System Settings :: ESPTerm</title>
  8. <link href="/css/app.8b43b1d-en.css" rel="stylesheet">
  9. <script src="/js/app.8b43b1d-en.js"></script>
  10. <script>
  11. var _root = location.host;
  12. var _demo = 1;
  13. </script>
  14. </head>
  15. <body class="cfg">
  16. <div id="outer">
  17. <nav id="menu">
  18. <div id="brand" tabindex=0>ESPTerm<sup> DEMO</sup></div>
  19. <a href="term.html" class="icn-back">Back to Terminal</a>
  20. <a href="cfg_term.html" class="icn-terminal ">Terminal Settings</a><a href="cfg_wifi.html" class="icn-wifi ">WiFi Settings</a><a href="cfg_network.html" class="icn-network ">Network Settings</a><a href="cfg_system.html" class="icn-configure selected">System Settings</a><a href="help.html" class="icn-help ">Quick Reference</a><a href="about.html" class="icn-about ">About ESPTerm</a></nav>
  21. <div id="content">
  22. <img src="/img/loader.gif" alt="Loading…" id="loader">
  23. <h1>System Settings</h1>
  24. <div class="Box errors hidden">
  25. <span class="lead">Validation errors for:</span>&nbsp;<span class="list"></span>
  26. </div>
  27. <div class="Box message hidden"></div>
  28. <div class="Box errmessage hidden"></div>
  29. <!-- Persist -->
  30. <div class="Box str mobcol">
  31. <h2 tabindex=0>Save & Restore</h2>
  32. <div class="Row explain nomargintop">
  33. ESPTerm saves all settings in Flash. The active settings can be copied to
  34. the "defaults area" and restored later using the blue button below.
  35. </div>
  36. <div class="Row buttons2">
  37. <a class="button icn-restore"
  38. onclick="return confirm('Restore all settings to their default values?');"
  39. href="restore_defaults.html">
  40. Reset to saved defaults </a>
  41. </div>
  42. <div class="Row buttons2">
  43. <a onclick="writeDefaults(); return false;" href="#">Save active settings as defaults</a>
  44. </div>
  45. <div class="Row buttons2">
  46. <a onclick="return confirm('Restore to firmware default settings? This will reset all active settings and switch to AP mode with the default SSID.');"
  47. href="restore_hard.html">
  48. Reset active settings to factory defaults </a><br>
  49. (This clears the WiFi config! Does not affect saved defaults or admin password.) </div>
  50. </div>
  51. <!-- Backup -->
  52. <div class="Box str mobcol">
  53. <h2 tabindex=0>Back-up Config File</h2>
  54. <div class="Row explain nomargintop">
  55. All config except the admin password can be backed up and restored using an INI file. </div>
  56. <div class="Row buttons2">
  57. <a class="button"
  58. href="ini_export.html">
  59. Export to file </a>
  60. </div>
  61. <div class="Row buttons2">
  62. <form method="POST" action="ini_import.html" enctype='multipart/form-data'>
  63. <span class="filewrap"><input accept=".ini,text/plain" type="file" name="file"></span><!--
  64. --><input type="submit" value="Import!">
  65. </form>
  66. </div>
  67. </div>
  68. <!-- Overclock -->
  69. <form class="Box str mobcol" action="system_set.html" method="GET" id="form-hw">
  70. <h2 tabindex=0>Hardware Tuning</h2>
  71. <div class="Row explain">
  72. ESP8266 can be overclocked from 80&nbsp;MHz to 160&nbsp;MHz. This will make
  73. it more responsive and allow faster screen updates at the expense of slightly
  74. higher power consumption. This can also make it more susceptible to interference.
  75. Use with care.
  76. </div>
  77. <div class="Row checkbox" >
  78. <label>Overclock to 160MHz</label><!--
  79. --><span class="box" tabindex=0 role=checkbox></span>
  80. <input type="hidden" id="overclock" name="overclock" value="">
  81. </div>
  82. <div class="Row buttons">
  83. <a class="button icn-ok" href="#" onclick="qs('#form-hw').submit()">Apply!</a>
  84. </div>
  85. </form>
  86. <!-- Access perms -->
  87. <form class="Box str mobcol" action="system_set.html" method="GET" id="form-access">
  88. <h2 tabindex=0>Access Restrictions</h2>
  89. <div class="Row explain">
  90. Some parts, or all of the web interface can be protected by a password prompt.
  91. Leave the new password fields empty if you do not wish to change it.<br>
  92. The default password is "%def_access_pw%".
  93. </div>
  94. <div class="Row">
  95. <label for="pwlock">Protected pages</label>
  96. <select name="pwlock" id="pwlock">
  97. <option value="0">None, all open</option>
  98. <option value="1">WiFi, Net & System settings</option>
  99. <option value="2">All settings pages</option>
  100. <option value="3">This entire menu section</option>
  101. <option value="4">Everything, even terminal</option>
  102. </select>
  103. </div>
  104. <div class="Row">
  105. <label for="access_name">Username</label>
  106. <input type="text" name="access_name" id="access_name" value="espterm">
  107. </div>
  108. <div class="Row">
  109. <label for="access_pw">New password</label>
  110. <input type="password" name="access_pw" id="access_pw" readonly onfocus="this.removeAttribute('readonly')" style="cursor:text" autocomplete="off">
  111. </div>
  112. <div class="Row">
  113. <label for="access_pw2">Repeat</label>
  114. <input type="password" name="access_pw2" id="access_pw2" readonly onfocus="this.removeAttribute('readonly')" style="cursor:text" autocomplete="off">
  115. </div>
  116. <div class="Row">
  117. <label for="pw">Admin password</label>
  118. <input type="password" name="pw" id="pw" required>
  119. </div>
  120. <div class="Row buttons">
  121. <a class="button icn-ok" href="#" onclick="qs('#form-access').submit()">Apply!</a>
  122. </div>
  123. </form>
  124. <!-- Admin pw -->
  125. <form class="Box str mobcol" action="system_set.html" method="GET" id="form-admin">
  126. <h2 tabindex=0>Change Admin Password</h2>
  127. <div class="Row explain">
  128. The "admin password" is used to manipulate the stored default settings
  129. and to change access restrictions. This password is not saved as part
  130. of the main config, i.e. using save / restore does not affect this
  131. password. When the admin password is forgotten, the easiest way to
  132. re-gain access is to wipe and re-flash the chip.<br>
  133. The default admin password is "%def_admin_pw%".
  134. </div>
  135. <div class="Row">
  136. <label for="admin_pw">New admin password</label>
  137. <input type="password" name="admin_pw" id="admin_pw">
  138. </div>
  139. <div class="Row">
  140. <label for="admin_pw2">Repeat</label>
  141. <input type="password" name="admin_pw2" id="admin_pw2">
  142. </div>
  143. <div class="Row">
  144. <label for="pw">Old admin password</label>
  145. <input type="password" name="pw" id="pw" required>
  146. </div>
  147. <div class="Row buttons">
  148. <a class="button icn-ok" href="#" onclick="qs('#form-admin').submit()">Apply!</a>
  149. </div>
  150. </form>
  151. <script>
  152. function writeDefaults() {
  153. var pw = prompt('Enter admin password to confirm you want to overwrite the default settings.');
  154. if (!pw) return;
  155. location.href = "write_defaults.html" + '?pw=' + pw;
  156. }
  157. $('#pwlock').val(0);
  158. </script>
  159. <div class="botpad"></div>
  160. <div class="NotifyMsg hidden" id="notif"></div>
  161. </div>
  162. </div>
  163. </body>
  164. </html>