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