mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
4.7 KiB
121 lines
4.7 KiB
9 years ago
|
<div id="main">
|
||
|
<div class="header">
|
||
|
<h1>Services</h1>
|
||
|
</div>
|
||
|
|
||
|
<div class="content">
|
||
|
<div class="pure-g">
|
||
|
<div class="pure-u-1 pure-u-md-1-2">
|
||
|
<div class="card">
|
||
|
<h1>
|
||
|
Syslog
|
||
|
<div id="syslog-spinner" class="spinner spinner-small"></div>
|
||
|
</h1>
|
||
|
<form action="#" id="Syslog-form" class="pure-form" hidden>
|
||
|
<div class="pure-form-stacked">
|
||
|
<label>Syslog Host</label>
|
||
|
<input type="text" name="syslog_host" />
|
||
9 years ago
|
<div class="popup">Esp-link sends event/debug info to this syslog host
|
||
|
(hostname:port). Leave empty to disable syslog.</div>
|
||
9 years ago
|
</div>
|
||
|
<div class="pure-form-stacked">
|
||
|
<label>Min Heap</label>
|
||
9 years ago
|
<div>
|
||
|
<input type="text" name="syslog_minheap" />
|
||
|
<div class="popup">Stop sending syslog if free heap drops below this many bytes</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<label>Filter</label>
|
||
|
<select name="syslog_filter" href="#">
|
||
|
<option value="0">EMERG</option>
|
||
|
<option value="1">ALERT</option>
|
||
|
<option value="2">CRIT</option>
|
||
|
<option value="3">ERR</option>
|
||
|
<option value="4">WARNING</option>
|
||
|
<option value="5">NOTICE</option>
|
||
|
<option value="6">INFO</option>
|
||
|
<option value="7">DEBUG</option>
|
||
|
</select>
|
||
|
<div class="popup">Minimum severity to send</div>
|
||
|
</div>
|
||
9 years ago
|
</div>
|
||
9 years ago
|
<div>
|
||
9 years ago
|
<input type="checkbox" name="syslog_showtick" />
|
||
9 years ago
|
<label>Include esp-link millisecond ticker</label>
|
||
9 years ago
|
</div>
|
||
9 years ago
|
<div>
|
||
9 years ago
|
<input type="checkbox" name="syslog_showdate" />
|
||
9 years ago
|
<label>Include esp-link datetime</label>
|
||
|
<div class="popup">Some syslog servers rotate log if timestamp is in the past so disable to prevent this</div>
|
||
9 years ago
|
</div>
|
||
|
<button id="Syslog-button" type="submit" class="pure-button button-primary">
|
||
9 years ago
|
Update Syslog settings!
|
||
9 years ago
|
</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div class="card">
|
||
|
<h1>
|
||
|
mDNS
|
||
|
<div id="mdns-spinner" class="spinner spinner-small"></div>
|
||
|
</h1>
|
||
|
<form action="#" id="mDNS-form" class="pure-form" hidden>
|
||
|
<div class="form-horizontal">
|
||
|
<input type="checkbox" name="mdns_enable"/>
|
||
|
<label>Enable mDNS</label>
|
||
9 years ago
|
<div class="popup">Esp-link can advertise its hostname and service name (both
|
||
|
with a .local suffix) via multicast DNS.</div>
|
||
9 years ago
|
</div>
|
||
|
<br>
|
||
|
<div class="pure-form-stacked">
|
||
9 years ago
|
<label>Service Name</label>
|
||
9 years ago
|
<input type="text" name="mdns_servername"/>
|
||
9 years ago
|
<div class="popup">The default service is http. For the arduino IDE use arduino</div>
|
||
9 years ago
|
</div>
|
||
|
<button id="mDNS-button" type="submit" class="pure-button button-primary">
|
||
|
Update mDNS settings!
|
||
|
</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="pure-u-1 pure-u-md-1-2">
|
||
|
<div class="card">
|
||
|
<h1>
|
||
|
SNTP
|
||
|
<div id="sntp-spinner" class="spinner spinner-small"></div>
|
||
|
</h1>
|
||
|
<form action="#" id="SNTP-form" class="pure-form" hidden>
|
||
|
<div class="pure-form-stacked">
|
||
9 years ago
|
<div>
|
||
|
<label>SNTP Server</label>
|
||
|
<input type="text" name="sntp_server" />
|
||
|
<div class="popup">Simple Network Time Protocol server to query.
|
||
|
Leave empty to disable SNTP</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<label>Timezone Offset</label>
|
||
|
<input type="text" name="timezone_offset" />
|
||
|
<div class="popup">Offset hours to apply (no daylight savings support)</div>
|
||
|
</div>
|
||
9 years ago
|
</div>
|
||
|
<button id="SNTP-button" type="submit" class="pure-button button-primary">
|
||
|
Update SNTP settings!
|
||
|
</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script src="services.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
onLoad(function() {
|
||
|
fetchServices();
|
||
|
bnd($("#Syslog-form"), "submit", changeServices);
|
||
|
bnd($("#SNTP-form"), "submit", changeServices);
|
||
|
bnd($("#mDNS-form"), "submit", changeServices);
|
||
|
});
|
||
|
</script>
|
||
9 years ago
|
</body></html>
|