2016-09-11 23:07:18 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
|
|
<title>Settings</title>
|
|
|
|
<script>
|
|
|
|
function GetCurrent()
|
|
|
|
{
|
2017-11-20 00:07:37 +01:00
|
|
|
var d = document;
|
|
|
|
//values injected by server while sending HTML
|
|
|
|
d.Sf.CSSID.value = "DONT put settings.htm in SPIFFS!";
|
|
|
|
d.getElementsByClassName("msg")[0].innerHTML = "Response Error";
|
2016-09-11 23:07:18 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
line-height: 150%;
|
|
|
|
}
|
2017-12-09 01:29:09 +01:00
|
|
|
input[type=number] {
|
|
|
|
width: 3em;
|
|
|
|
}
|
2016-09-11 23:07:18 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body onload="GetCurrent()" class=" __plain_text_READY__">
|
2017-05-07 23:51:42 +02:00
|
|
|
<h1 style="text-align:center">WLED Settings</h1>
|
2017-11-20 00:07:37 +01:00
|
|
|
<form id="form_s" name="Sf" action="set-settings" method="post">
|
2017-05-07 23:51:42 +02:00
|
|
|
<div align="center"><input type="submit" name="SUBM" value="Save"></div>
|
|
|
|
<hr>
|
2016-09-11 23:07:18 +02:00
|
|
|
<h2>WiFi setup</h2>
|
|
|
|
<h3>Connect to existing network</h3>
|
2017-05-15 12:24:59 +02:00
|
|
|
Network SSID (leave empty to not connect): <br><input name="CSSID" maxlength="32"> <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
Network password: <br> <input type="password" name="CPASS" maxlength="63"> <br>
|
2016-09-20 22:21:44 +02:00
|
|
|
Static IP (leave at 0.0.0.0 for DHCP): <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
<input name="CSIP0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSIP1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSIP2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSIP3" type="number" min="0" max="255" required> <br>
|
2016-09-20 22:21:44 +02:00
|
|
|
Static gateway: <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
<input name="CSGW0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSGW1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSGW2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSGW3" type="number" min="0" max="255" required> <br>
|
2016-09-20 22:21:44 +02:00
|
|
|
Static subnet mask: <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
<input name="CSSN0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSSN1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSSN2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="CSSN3" type="number" min="0" max="255" required> <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
mDNS address (leave empty for no mDNS): <br/>
|
2016-12-29 00:03:58 +01:00
|
|
|
http:// <input name="CMDNS" maxlength="32"> .local <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
Try connecting before opening AP for: <input name="APWTM" type="number" min="0" max="255" required> s <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
Client IP: <span class="sip"> Not connected </span> <br>
|
|
|
|
<h3>Configure Access Point</h3>
|
2016-12-29 00:03:58 +01:00
|
|
|
AP SSID (leave empty for no AP): <br> <input name="APSSID" maxlength="32"> <br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Hide AP SSID: <input type="checkbox" name="APHSSID"> <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
AP password (leave empty for open): <br> <input type="password" name="APPASS" maxlength="63"> <br>
|
2017-12-14 00:12:02 +01:00
|
|
|
AP channel: <input name="APCHAN" type="number" min="1" max="13" required> <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
AP IP: <span class="sip"> Not active </span> <br>
|
2017-05-07 23:51:42 +02:00
|
|
|
<hr>
|
2016-09-11 23:07:18 +02:00
|
|
|
<h2>Application setup</h2>
|
2016-12-11 20:11:14 +01:00
|
|
|
<h3>Web setup</h3>
|
2016-12-29 00:03:58 +01:00
|
|
|
Server description: <input name="DESC" maxlength="32"> <br>
|
2017-05-07 23:51:42 +02:00
|
|
|
Use HSB sliders instead of RGB by default: <input type="checkbox" name="COLMD"> <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
<h3>LED setup</h3>
|
2018-01-14 00:53:16 +01:00
|
|
|
LED count (max. 255): <input name="LEDCN" type="number" min="1" max="255" required> <br>
|
2017-12-12 14:52:28 +01:00
|
|
|
<i>The default boot color is always saved in preset slot 0.</i><br>
|
|
|
|
Alternatively, apply preset <input name="BOOTP" type="number" min="0" max="25" required> at boot<br>
|
2016-12-29 00:03:58 +01:00
|
|
|
Default RGB color:
|
2017-12-09 01:29:09 +01:00
|
|
|
<input name="CLDFR" type="number" min="0" max="255" required>
|
|
|
|
<input name="CLDFG" type="number" min="0" max="255" required>
|
|
|
|
<input name="CLDFB" type="number" min="0" max="255" required> <br>
|
|
|
|
Default brightness: <input name="CLDFA" type="number" min="0" max="255" required> (0-255) <br>
|
|
|
|
Default white value (only RGBW, -1 to disable): <input name="CLDFW" type="number" min="-1" max="255" required> <br>
|
2017-12-14 00:12:02 +01:00
|
|
|
Default effect ID: <input name="FXDEF" type="number" min="0" max="57" required> <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
Default effect speed: <input name="SXDEF" type="number" min="0" max="255" required> <br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Ignore and use current color, brightness and effects: <input type="checkbox" name="CBEOR"> <br>
|
|
|
|
Turn on after power up/reset: <input type="checkbox" name="BOOTN"> <br>
|
|
|
|
Use Gamma correction for brightness: <input type="checkbox" name="GCBRI"> <br>
|
|
|
|
Use Gamma correction for color: <input type="checkbox" name="GCRGB"> <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
Brightness factor: <input name="NRBRI" type="number" min="0" max="255" required> % <br>
|
2016-09-20 22:21:44 +02:00
|
|
|
<h3>Button setup</h3>
|
2017-03-07 22:05:18 +01:00
|
|
|
On/Off button enabled: <input type="checkbox" name="BTNON"> <br>
|
2016-10-30 16:26:17 +01:00
|
|
|
<h3>Transitions</h3>
|
2017-03-07 22:05:18 +01:00
|
|
|
Fade: <input type="checkbox" name="TFADE"> <br>
|
2017-10-28 22:22:37 +02:00
|
|
|
Sweep: <input type="checkbox" name="TSWEE"> Invert direction: <input type="checkbox" name="TSDIR"><br>
|
2016-12-29 00:03:58 +01:00
|
|
|
Transition Delay: <input name="TDLAY" maxlength="5" size="2"> ms <br>
|
2016-10-31 21:16:39 +01:00
|
|
|
<h3>Timed light</h3>
|
2017-12-09 01:29:09 +01:00
|
|
|
Target brightness: <input name="TLBRI" type="number" min="0" max="255" required> (0-255) <br>
|
|
|
|
Change after: <input name="TLDUR" type="number" min="0" max="255" required> min <br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Fade: <input type="checkbox" name="TLFDE"> <br>
|
2017-03-20 19:56:07 +01:00
|
|
|
<h3>Broadcast</h3>
|
2016-12-29 00:03:58 +01:00
|
|
|
UDP Port: <input name="NUDPP" maxlength="5" size="2"><br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Receive notifications: <input type="checkbox" name="NRCVE"> <br>
|
|
|
|
Send notifications on direct change: <input type="checkbox" name="NSDIR"> <br>
|
|
|
|
Send notifications on button press: <input type="checkbox" name="NSBTN"> <br>
|
2017-02-24 23:21:48 +01:00
|
|
|
<h3>Interfaces</h3>
|
2017-03-07 22:05:18 +01:00
|
|
|
Emulate Alexa device: <input type="checkbox" name="ALEXA"> <br>
|
2017-02-24 23:21:48 +01:00
|
|
|
Alexa invocation name: <input name="AINVN" maxlength="32"><br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Send Alexa notifications: <input type="checkbox" name="NSALX"> <br>
|
2017-10-12 22:20:37 +02:00
|
|
|
<h3>Time (experimental!)</h3>
|
2018-01-09 14:21:37 +01:00
|
|
|
Requires reboot. <br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Get time from NTP server: <input type="checkbox" name="NTPON"> <br>
|
2016-12-29 00:03:58 +01:00
|
|
|
Current local time is <span class="times">unknown</span> <br>
|
2017-02-24 23:21:48 +01:00
|
|
|
<h3>Advanced</h3>
|
2017-12-09 01:29:09 +01:00
|
|
|
Default overlay ID: <input name="OLDEF" type="number" min="0" max="255" required> <br>
|
2017-12-16 00:04:04 +01:00
|
|
|
WARLS offset: <input name="WOFFS" type="number" min="-255" max="255" required><br>
|
2016-09-11 23:07:18 +02:00
|
|
|
<h3>Security</h3>
|
2017-03-07 22:05:18 +01:00
|
|
|
OTA locked: <input type="checkbox" name="NOOTA"> <br>
|
2016-10-31 21:16:39 +01:00
|
|
|
Passphrase: <input type="password" name="OPASS" maxlength="32"> <br>
|
|
|
|
To enable OTA, for security reasons you need to also enter the correct password! <br>
|
|
|
|
The password may/should be changed when OTA is enabled. <br>
|
2016-11-20 01:47:15 +01:00
|
|
|
Disable OTA when not in use, otherwise an attacker could reflash device software! <br> <br>
|
2017-11-20 00:07:37 +01:00
|
|
|
Disable recovery AP: <input type="checkbox" name="NORAP"> <br>
|
2016-09-20 22:21:44 +02:00
|
|
|
In case of a connection error there will be no wireless recovery possible! <br>
|
2017-11-20 00:07:37 +01:00
|
|
|
Completely disables all Access Point functions. <br>
|
|
|
|
Setting only changable if OTA is enabled! <br><br>
|
2017-03-07 22:05:18 +01:00
|
|
|
Factory reset: <input type="checkbox" name="RESET"> <br>
|
2016-09-11 23:07:18 +02:00
|
|
|
All EEPROM content (settings) will be erased. <br> <br>
|
|
|
|
|
|
|
|
HTTP traffic is not encrypted. An attacker in the same network could intercept form data!<br>
|
|
|
|
<h3>About</h3>
|
2018-01-09 14:21:37 +01:00
|
|
|
WLED version 0.5dev <br>
|
|
|
|
(c) 2016-2018 Christian Schwinne <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
<i>Licensed under the MIT license</i> <br><br>
|
2017-01-15 00:24:28 +01:00
|
|
|
<i>Uses libraries:</i> <br>
|
|
|
|
<i>ESP8266 Arduino Core</i> <br>
|
|
|
|
<i>WS2812FX by kitesurfer1404 (Aircoookie fork)</i> <br>
|
|
|
|
<i>Timezone library by JChristensen</i> <br>
|
2017-12-09 01:29:09 +01:00
|
|
|
<i>arduino-esp8266-alexa-multiple-wemo-switch by kakopappa</i> <br><br>
|
|
|
|
<i>UI icons by <a href="https://linearicons.com">Linearicons</a> created by <a href="https://perxis.com">Perxis</a>! (CC-BY-SA 4.0)</i> <br><br>
|
2016-09-11 23:07:18 +02:00
|
|
|
Server message: <span class="msg"> XML response error! </span>
|
2017-05-07 23:51:42 +02:00
|
|
|
<br><br><hr>
|
|
|
|
<div align="center"><input type="submit" name="SUBM" value="Save"></div>
|
2016-09-11 23:07:18 +02:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|