2017-02-01 21:25:09 +01:00
|
|
|
/*
|
2017-11-20 00:07:37 +01:00
|
|
|
* Settings html (part 1)
|
2017-02-01 21:25:09 +01:00
|
|
|
*/
|
2017-11-20 00:07:37 +01:00
|
|
|
const char PAGE_settings0[] PROGMEM = R"=====(
|
2017-02-01 21:25:09 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2017-05-08 21:46:04 +02:00
|
|
|
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
|
|
|
<title>Settings</title>
|
2017-11-20 00:07:37 +01:00
|
|
|
<script>function GetCurrent(){
|
|
|
|
var d=document;
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
const char PAGE_settings1[] PROGMEM = R"=====(
|
|
|
|
}</script>
|
2017-05-08 21:46:04 +02:00
|
|
|
<style>body{line-height:150%}</style>
|
2017-02-01 21:25:09 +01:00
|
|
|
</head>
|
2017-05-08 21:46:04 +02:00
|
|
|
<body onload=GetCurrent() class=__plain_text_READY__>
|
|
|
|
<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-08 21:46:04 +02:00
|
|
|
<div align=center><input type=submit name=SUBM value=Save></div>
|
|
|
|
<hr>
|
|
|
|
<h2>WiFi setup</h2>
|
|
|
|
<h3>Connect to existing network</h3>
|
2017-10-12 22:20:37 +02:00
|
|
|
Network SSID (leave empty to not connect): <br><input name=CSSID maxlength=32> <br>
|
|
|
|
Network password: <br> <input type=password name=CPASS maxlength=63> <br>
|
2017-05-08 21:46:04 +02:00
|
|
|
Static IP (leave at 0.0.0.0 for DHCP): <br>
|
|
|
|
<input name=CSIP0 maxlength=3 size=2> .
|
|
|
|
<input name=CSIP1 maxlength=3 size=2> .
|
|
|
|
<input name=CSIP2 maxlength=3 size=2> .
|
|
|
|
<input name=CSIP3 maxlength=3 size=2> <br>
|
|
|
|
Static gateway: <br>
|
|
|
|
<input name=CSGW0 maxlength=3 size=2> .
|
|
|
|
<input name=CSGW1 maxlength=3 size=2> .
|
|
|
|
<input name=CSGW2 maxlength=3 size=2> .
|
|
|
|
<input name=CSGW3 maxlength=3 size=2> <br>
|
|
|
|
Static subnet mask: <br>
|
|
|
|
<input name=CSSN0 maxlength=3 size=2> .
|
|
|
|
<input name=CSSN1 maxlength=3 size=2> .
|
|
|
|
<input name=CSSN2 maxlength=3 size=2> .
|
|
|
|
<input name=CSSN3 maxlength=3 size=2> <br>
|
|
|
|
mDNS address (leave empty for no mDNS): <br/>
|
|
|
|
http:// <input name=CMDNS maxlength=32> .local <br>
|
2017-11-20 00:07:37 +01:00
|
|
|
Try connecting before opening AP for: <input name="APWTM" maxlength="3" size="2"> s <br>
|
2017-05-08 21:46:04 +02:00
|
|
|
Client IP: <span class=sip> Not connected </span> <br>
|
|
|
|
<h3>Configure Access Point</h3>
|
|
|
|
AP SSID (leave empty for no AP): <br> <input name=APSSID maxlength=32> <br>
|
|
|
|
Hide AP SSID: <input type=checkbox name=APHSSID> <br>
|
|
|
|
AP password (leave empty for open): <br> <input type=password name=APPASS maxlength=63> <br>
|
|
|
|
AP channel: <input name=APCHAN maxlength=2 size=2> <br>
|
|
|
|
AP IP: <span class=sip> Not active </span> <br>
|
|
|
|
<hr>
|
|
|
|
<h2>Application setup</h2>
|
|
|
|
<h3>Web setup</h3>
|
|
|
|
Server description: <input name=DESC maxlength=32> <br>
|
|
|
|
Use HSB sliders instead of RGB by default: <input type=checkbox name=COLMD> <br>
|
|
|
|
<h3>LED setup</h3>
|
|
|
|
LED count (max. 255): <input name=LEDCN maxlength=3 size=2> <br>
|
|
|
|
Default RGB color:
|
|
|
|
<input name=CLDFR maxlength=3 size=2>
|
|
|
|
<input name=CLDFG maxlength=3 size=2>
|
|
|
|
<input name=CLDFB maxlength=3 size=2> <br>
|
|
|
|
Default brightness: <input name=CLDFA maxlength=3 size=2> (0-255) <br>
|
2017-10-12 22:20:37 +02:00
|
|
|
Default white value (only RGBW, -1 to disable): <input name=CLDFW maxlength=3 size=2> <br>
|
2017-05-08 21:46:04 +02:00
|
|
|
Default effect ID: <input name=FXDEF maxlength=3 size=2> <br>
|
|
|
|
Default effect speed: <input name=SXDEF maxlength=3 size=2> <br>
|
|
|
|
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>
|
|
|
|
Brightness factor: <input name=NRBRI maxlength=3 size=2> % <br>
|
|
|
|
<h3>Button setup</h3>
|
|
|
|
On/Off button enabled: <input type=checkbox name=BTNON> <br>
|
|
|
|
<h3>Transitions</h3>
|
|
|
|
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>
|
2017-05-08 21:46:04 +02:00
|
|
|
Transition Delay: <input name=TDLAY maxlength=5 size=2> ms <br>
|
|
|
|
<h3>Timed light</h3>
|
|
|
|
Target brightness: <input name=TLBRI maxlength=3 size=2> (0-255) <br>
|
|
|
|
Change after: <input name=TLDUR maxlength=3 size=2> min <br>
|
|
|
|
Fade: <input type=checkbox name=TLFDE> <br>
|
|
|
|
<h3>Broadcast</h3>
|
|
|
|
UDP Port: <input name=NUDPP maxlength=5 size=2><br>
|
|
|
|
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>
|
|
|
|
<h3>Interfaces</h3>
|
|
|
|
Emulate Alexa device: <input type=checkbox name=ALEXA> <br>
|
|
|
|
Alexa invocation name: <input name=AINVN maxlength=32><br>
|
|
|
|
Send Alexa notifications: <input type=checkbox name=NSALX> <br>
|
2017-09-18 10:20:04 +02:00
|
|
|
<h3>Time (experimental!)</h3>
|
2017-10-12 22:20:37 +02:00
|
|
|
NTP was updated but still causes crashes. Requires reboot. <br>
|
2017-05-08 21:46:04 +02:00
|
|
|
Get time from NTP server: <input type=checkbox name=NTPON> <br>
|
|
|
|
Current local time is <span class=times>unknown</span> <br>
|
|
|
|
<h3>Advanced</h3>
|
|
|
|
Default overlay ID: <input name=OLDEF maxlength=3 size=2> <br>
|
|
|
|
WARLS offset: <input name=WOFFS maxlength=3 size=2> negative <input type=checkbox name=WOFFN><br>
|
|
|
|
<h3>Security</h3>
|
|
|
|
OTA locked: <input type=checkbox name=NOOTA> <br>
|
|
|
|
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>
|
|
|
|
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>
|
2017-05-08 21:46:04 +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-05-08 21:46:04 +02:00
|
|
|
Factory reset: <input type=checkbox name=RESET> <br>
|
|
|
|
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>
|
2017-10-12 22:20:37 +02:00
|
|
|
WLED version 0.4p <br>
|
2017-05-08 21:46:04 +02:00
|
|
|
(c) 2016-2017 Christian Schwinne <br>
|
|
|
|
<i>Licensed under the MIT license</i> <br>
|
|
|
|
<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>
|
|
|
|
<i>arduino-esp8266-alexa-multiple-wemo-switch by kakopappa</i> <br>
|
|
|
|
Server message: <span class=msg> XML response error! </span>
|
|
|
|
<br><br><hr>
|
|
|
|
<div align=center><input type=submit name=SUBM value=Save></div>
|
|
|
|
</form>
|
2017-02-01 21:25:09 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)=====";
|
2017-11-20 00:07:37 +01:00
|
|
|
|
2017-02-01 21:25:09 +01:00
|
|
|
/*
|
|
|
|
* Settings set html
|
|
|
|
*/
|
|
|
|
const char PAGE_settingssaved[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html><head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
|
|
<title>Saved Settings</title>
|
|
|
|
<script>
|
|
|
|
function OpenReboot()
|
|
|
|
{
|
|
|
|
window.open("/reset","_self");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head><body>
|
|
|
|
<div align="center">
|
|
|
|
<h2>Settings saved.</h2>
|
|
|
|
<p>If you made changes to WiFi configuration, please reboot.</p><br>
|
2017-05-08 21:46:04 +02:00
|
|
|
<input type="button" value="Reboot" onclick="OpenReboot()">
|
2017-02-01 21:25:09 +01:00
|
|
|
</div></body>
|
|
|
|
</html>
|
|
|
|
)=====";
|