2017-02-01 21:25:09 +01:00
|
|
|
/*
|
2018-01-27 23:28:20 +01:00
|
|
|
* Settings html
|
2017-02-01 21:25:09 +01:00
|
|
|
*/
|
2018-02-20 22:29:48 +01:00
|
|
|
const char PAGE_settingsCss[] PROGMEM = R"=====(
|
2018-02-23 01:33:32 +01:00
|
|
|
body{font-family:var(--cFn),sans-serif;text-align:center;background:var(--cCol);color:var(--tCol);line-height:200%;margin:0;background-attachment:fixed}hr{border-color:var(--dCol);filter:drop-shadow(-5px -5px 5px var(--sCol))}button{background:var(--bCol);color:var(--tCol);font-family:var(--cFn),sans-serif;border:.3ch solid var(--bCol);display:inline-block;filter:drop-shadow(-5px -5px 5px var(--sCol));font-size:20px;margin:8px;margin-top:12px}.helpB{text-align:left;position:absolute;width:60px}input{background:var(--bCol);color:var(--tCol);font-family:var(--cFn),sans-serif;border:.5ch solid var(--bCol);filter:drop-shadow(-5px -5px 5px var(--sCol))}input[type=number]{width:3em}select{background:var(--bCol);color:var(--tCol);font-family:var(--cFn),sans-serif;border:0.5ch solid var(--bCol);filter:drop-shadow( -5px -5px 5px var(--sCol) );}</style>
|
2018-02-20 22:29:48 +01:00
|
|
|
)=====";
|
2018-01-27 23:28:20 +01:00
|
|
|
|
2018-02-20 22:29:48 +01:00
|
|
|
const char PAGE_settings0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
2018-06-24 01:20:15 +02:00
|
|
|
<html><head><title>WLED Settings</title>
|
2017-11-20 00:07:37 +01:00
|
|
|
)=====";
|
|
|
|
|
|
|
|
const char PAGE_settings1[] PROGMEM = R"=====(
|
2018-06-24 01:20:15 +02:00
|
|
|
body{text-align:center;background:var(--cCol);height:100%;margin:0;background-attachment:fixed}html{--h:11.55vh}button{background:var(--bCol);color:var(--tCol);font-family:var(--cFn),Helvetica,sans-serif;border:.3ch solid var(--bCol);display:inline-block;filter:drop-shadow(-5px -5px 5px var(--sCol));font-size:8vmin;height:var(--h);width:95%;margin-top:2.4vh}</style>
|
|
|
|
<script>function BB(){if(window.frameElement){document.getElementById("b").style.display="none";document.documentElement.style.setProperty("--h","13.86vh")}};</script>
|
2018-02-20 22:29:48 +01:00
|
|
|
</head>
|
2018-06-24 01:20:15 +02:00
|
|
|
<body onload=BB()>
|
|
|
|
<form action=/><button type=submit id=b>Back</button></form>
|
2018-02-20 22:29:48 +01:00
|
|
|
<form action=/settings/wifi><button type=submit>WiFi Setup</button></form>
|
|
|
|
<form action=/settings/leds><button type=submit>LED Preferences</button></form>
|
|
|
|
<form action=/settings/ui><button type=submit>User Interface</button></form>
|
|
|
|
<form action=/settings/sync><button type=submit>Sync Interfaces</button></form>
|
|
|
|
<form action=/settings/time><button type=submit>Time & Macros</button></form>
|
|
|
|
<form action=/settings/sec><button type=submit>Security & Updates</button></form>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
const char PAGE_settings_wifi0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
2018-06-24 01:20:15 +02:00
|
|
|
<html><head>
|
2018-02-20 22:29:48 +01:00
|
|
|
<title>WiFi Settings</title><script>function H(){window.open("https://github.com/Aircoookie/WLED/wiki/Settings#wifi-settings");}function B(){window.history.back();}function GetV(){var d = document;
|
|
|
|
)=====";
|
|
|
|
const char PAGE_settings_wifi1[] PROGMEM = R"=====(
|
|
|
|
</head>
|
|
|
|
<body onload="GetV()">
|
|
|
|
<form id="form_s" name="Sf" method="post">
|
|
|
|
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save & Reboot</button><hr>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h2>WiFi setup</h2>
|
|
|
|
<h3>Connect to existing network</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
Network name (SSID, empty to not connect): <br><input name="CS" maxlength="32"><br>
|
|
|
|
Network password: <br> <input type="password" name="CP" maxlength="63"><br>
|
|
|
|
Static IP (leave at 0.0.0.0 for DHCP):<br>
|
|
|
|
<input name="I0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="I1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="I2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="I3" type="number" min="0" max="255" required><br>
|
|
|
|
Static gateway:<br>
|
|
|
|
<input name="G0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="G1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="G2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="G3" type="number" min="0" max="255" required><br>
|
|
|
|
Static subnet mask:<br>
|
|
|
|
<input name="S0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="S1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="S2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="S3" type="number" min="0" max="255" required><br>
|
|
|
|
mDNS address (leave empty for no mDNS):<br/>
|
|
|
|
http:// <input name="CM" maxlength="32"> .local<br>
|
|
|
|
Try connecting before opening AP for: <input name="AT" type="number" min="0" max="255" required> s <br>
|
|
|
|
Client IP: <span class="sip"> Not connected </span><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Configure Access Point</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
AP SSID (leave empty for no AP):<br> <input name="AS" maxlength="32"><br>
|
|
|
|
Hide AP name: <input type="checkbox" name="AH"><br>
|
|
|
|
AP password (leave empty for open):<br> <input type="password" name="AP" maxlength="63"> <br>
|
|
|
|
Access Point WiFi channel: <input name="AC" type="number" min="1" max="13" required><br>
|
|
|
|
AP IP: <span class="sip"> Not active </span><hr>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save & Reboot</button>
|
2018-02-20 22:29:48 +01:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)=====";
|
2018-01-27 23:28:20 +01:00
|
|
|
|
2018-02-20 22:29:48 +01:00
|
|
|
const char PAGE_settings_leds0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html><head>
|
|
|
|
<title>LED Settings</title><script>function H(){window.open("https://github.com/Aircoookie/WLED/wiki/Settings#led-settings");}function B(){window.history.back();}function GetV(){var d = document;
|
2017-02-01 21:25:09 +01:00
|
|
|
)=====";
|
2018-02-20 22:29:48 +01:00
|
|
|
const char PAGE_settings_leds1[] PROGMEM = R"=====(
|
|
|
|
</head>
|
|
|
|
<body onload="GetV()">
|
|
|
|
<form id="form_s" name="Sf" method="post">
|
|
|
|
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button><hr>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h2>LED setup</h2>
|
2018-04-15 15:27:54 +02:00
|
|
|
LED count: <input name="LC" type="number" min="1" max="1200" required><br>
|
2018-04-14 18:56:35 +02:00
|
|
|
LEDs are 4-channel type (RGBW): <input type="checkbox" name="EW"><br>
|
|
|
|
Apply preset <input name="BP" type="number" min="0" max="25" required> at boot (0 uses defaults)<br>
|
2018-02-20 22:29:48 +01:00
|
|
|
Default RGB color:
|
2018-03-14 19:05:51 +01:00
|
|
|
<input name="CR" type="number" min="0" max="255" required>
|
|
|
|
<input name="CG" type="number" min="0" max="255" required>
|
|
|
|
<input name="CB" type="number" min="0" max="255" required><br>
|
2018-04-14 18:56:35 +02:00
|
|
|
Default white value (only RGBW): <input name="CW" type="number" min="0" max="255" required><br>
|
2018-05-31 19:26:16 +02:00
|
|
|
Auto-calculate white from RGB instead: <input type="checkbox" name="AW"><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Default brightness: <input name="CA" type="number" min="0" max="255" required> (0-255)<br>
|
2018-04-14 18:56:35 +02:00
|
|
|
Default effect ID: <input name="FX" type="number" min="0" max="57" required><br>
|
|
|
|
Default effect speed: <input name="SX" type="number" min="0" max="255" required><br>
|
|
|
|
Default effect intensity: <input name="IX" type="number" min="0" max="255" required><br>
|
2018-05-31 19:26:16 +02:00
|
|
|
Default secondary RGB(W):<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
<input name="SR" type="number" min="0" max="255" required>
|
|
|
|
<input name="SG" type="number" min="0" max="255" required>
|
|
|
|
<input name="SB" type="number" min="0" max="255" required>
|
|
|
|
<input name="SW" type="number" min="0" max="255" required><br>
|
|
|
|
Ignore and use current color, brightness and effects: <input type="checkbox" name="IS"><br>
|
2018-06-24 01:20:15 +02:00
|
|
|
Save current preset cycle configuration as boot default: <input type="checkbox" name="PC"><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Turn on after power up/reset: <input type="checkbox" name="BO"><br>
|
|
|
|
Use Gamma correction for brightness: <input type="checkbox" name="GB"><br>
|
|
|
|
Use Gamma correction for color: <input type="checkbox" name="GC"><br>
|
|
|
|
Brightness factor: <input name="BF" type="number" min="0" max="255" required> %
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Transitions</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
Fade: <input type="checkbox" name="TF"><br>
|
|
|
|
Sweep: <input type="checkbox" name="TS"> Invert direction: <input type="checkbox" name="TI"><br>
|
2018-05-10 19:55:58 +02:00
|
|
|
Transition Time: <input name="TD" maxlength="5" size="2"> ms<br>
|
|
|
|
Enable transition for secondary color: <input type="checkbox" name="T2"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Timed light</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
Default Duration: <input name="TL" type="number" min="1" max="255" required> min<br>
|
|
|
|
Default Target brightness: <input name="TB" type="number" min="0" max="255" required><br>
|
|
|
|
Fade down: <input type="checkbox" name="TW"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Advanced</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
Reverse LED order (rotate 180): <input type="checkbox" name="RV"><br>
|
2018-03-15 12:04:14 +01:00
|
|
|
Init LEDs after WiFi: <input type="checkbox" name="EI"><br>
|
2018-06-24 01:20:15 +02:00
|
|
|
WARLS offset: <input name="WO" type="number" min="-255" max="255" required><br>
|
|
|
|
Skip first LED: <input type="checkbox" name="SL"><hr>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button>
|
2018-02-20 22:29:48 +01:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)=====";
|
2018-01-27 23:28:20 +01:00
|
|
|
|
2018-02-20 22:29:48 +01:00
|
|
|
const char PAGE_settings_ui0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
2018-06-24 01:20:15 +02:00
|
|
|
<html><head>
|
2018-02-20 22:29:48 +01:00
|
|
|
<title>UI Settings</title><script>
|
|
|
|
function gId(s){return document.getElementById(s);}function S(){GetV();Ct();}function H(){window.open("https://github.com/Aircoookie/WLED/wiki/Settings#user-interface-settings");}function B(){window.history.back();}function Ct(){if (gId("co").selected){gId("cth").style.display="block";}else{gId("cth").style.display="none";}}function GetV(){var d = document;
|
|
|
|
)=====";
|
|
|
|
const char PAGE_settings_ui1[] PROGMEM = R"=====(
|
|
|
|
</head>
|
|
|
|
<body onload="S()">
|
|
|
|
<form id="form_s" name="Sf" method="post">
|
|
|
|
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button><hr>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h2>Web Setup</h2>
|
2018-05-22 21:11:19 +02:00
|
|
|
User Interface Mode:
|
|
|
|
<select name="UI">
|
|
|
|
<option value="0" selected>Auto</option>
|
|
|
|
<option value="1">Classic</option>
|
|
|
|
<option value="2">Mobile</option>
|
2018-06-24 01:20:15 +02:00
|
|
|
</select><br>
|
|
|
|
Server description: <input name="DS" maxlength="32"><br><br>
|
2018-05-22 21:11:19 +02:00
|
|
|
<i>The following options are for the classic UI!</i><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Use HSB sliders instead of RGB by default: <input type="checkbox" name="MD"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
Color Theme:
|
2018-03-14 19:05:51 +01:00
|
|
|
<select name="TH" onchange="Ct()">
|
2018-02-20 22:29:48 +01:00
|
|
|
<option value="0" selected>Night</option>
|
|
|
|
<option value="1">Modern</option>
|
|
|
|
<option value="2">Bright</option>
|
|
|
|
<option value="3">Wine</option>
|
|
|
|
<option value="4">Electric</option>
|
|
|
|
<option value="5">Mint</option>
|
|
|
|
<option value="6">Amber</option>
|
|
|
|
<option value="7">Club</option>
|
|
|
|
<option value="8">Air</option>
|
2018-02-23 01:33:32 +01:00
|
|
|
<option value="9">Nixie</option>
|
|
|
|
<option value="10">Terminal</option>
|
2018-03-06 23:47:08 +01:00
|
|
|
<option value="11">C64</option>
|
2018-04-01 00:08:50 +02:00
|
|
|
<option value="12">Easter</option>
|
2018-02-23 01:33:32 +01:00
|
|
|
<option value="13">Placeholder</option>
|
2018-02-20 22:29:48 +01:00
|
|
|
<option value="14">The End</option>
|
|
|
|
<option value="15" id="co">Custom</option>
|
|
|
|
</select><br>
|
|
|
|
<div id="cth">
|
2018-02-23 01:33:32 +01:00
|
|
|
Please specify your custom hex colors (e.g. FF0000 for red)<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Custom accent color: <input maxlength=9 name="C0"><br>
|
|
|
|
Custom background: <input maxlength=9 name="C1"><br>
|
|
|
|
Custom panel color: <input maxlength=9 name="C2"><br>
|
|
|
|
Custom icon color: <input maxlength=9 name="C3"><br>
|
|
|
|
Custom shadow: <input maxlength=9 name="C4"><br>
|
|
|
|
Custom text color: <input maxlength=9 name="C5"><br></div>
|
|
|
|
Use font: <input maxlength=32 name="CF"><br>
|
2018-02-23 01:33:32 +01:00
|
|
|
Make sure the font you use is installed on your system!<br>
|
2018-03-14 00:25:54 +01:00
|
|
|
<hr><button type="button" onclick="B()">Back</button><button type="submit">Save</button>
|
2018-02-20 22:29:48 +01:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
const char PAGE_settings_sync0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html><head><title>Sync Settings</title>
|
|
|
|
<script>function H(){window.open("https://github.com/Aircoookie/WLED/wiki/Settings#sync-settings");}function B(){window.open("/settings","_self");}function GetV(){var d = document;
|
|
|
|
)=====";
|
|
|
|
const char PAGE_settings_sync1[] PROGMEM = R"=====(
|
|
|
|
</head>
|
|
|
|
<body onload="GetV()">
|
|
|
|
<form id="form_s" name="Sf" method="post">
|
|
|
|
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button><hr>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h2>Sync setup</h2>
|
|
|
|
<h3>Button setup</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
On/Off button enabled: <input type="checkbox" name="BT">
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>WLED Broadcast</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
UDP Port: <input name="UP" maxlength="5" size="4"><br>
|
|
|
|
Receive <input type="checkbox" name="RB">Brightness, <input type="checkbox" name="RC">Color, and <input type="checkbox" name="RX">Effects<br>
|
|
|
|
Send notifications on direct change: <input type="checkbox" name="SD"><br>
|
|
|
|
Send notifications on button press: <input type="checkbox" name="SB"><br>
|
|
|
|
Send Alexa notifications: <input type="checkbox" name="SA"><br>
|
|
|
|
Send Philips Hue change notifications: <input type="checkbox" name="SH"><br>
|
2018-05-10 19:55:58 +02:00
|
|
|
Send notifications twice: <input type="checkbox" name="S2"><br>
|
|
|
|
Receive UDP realtime: <input type="checkbox" name="RD"><br>
|
|
|
|
Enable UI access during realtime: <input type="checkbox" name="RU"> (can cause issues)
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Alexa Voice Assistant</h3>
|
2018-03-14 19:05:51 +01:00
|
|
|
Emulate Alexa device: <input type="checkbox" name="AL"><br>
|
|
|
|
Alexa invocation name: <input name="AI" maxlength="32"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Philips Hue</h3>
|
2018-02-28 00:27:10 +01:00
|
|
|
<i>You can find the bridge IP and the light number in the 'About' section of the hue app.</i><br>
|
2018-06-24 01:20:15 +02:00
|
|
|
Poll Hue light <input name="HL" type="number" min="1" max="99" required> every <input name="HI" type="number" min="100" max="65000" required> ms: <input type="checkbox" name="HP"><br>
|
|
|
|
Then, receive <input type="checkbox" name="HO"> On/Off, <input type="checkbox" name="HB"> Brightness, and <input type="checkbox" name="HC"> Color<br>
|
2018-02-20 22:29:48 +01:00
|
|
|
Hue Bridge IP:<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
<input name="H0" type="number" min="0" max="255" required> .
|
|
|
|
<input name="H1" type="number" min="0" max="255" required> .
|
|
|
|
<input name="H2" type="number" min="0" max="255" required> .
|
|
|
|
<input name="H3" type="number" min="0" max="255" required><br>
|
2018-02-28 00:27:10 +01:00
|
|
|
<b>Press the pushlink button on the bridge, after that save this page!</b><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
(when first connecting)<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Hue status: <span class="hms"> Internal ESP Error! </span><hr>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button>
|
2018-02-20 22:29:48 +01:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
const char PAGE_settings_time0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html><head><title>Time Settings</title>
|
2018-03-14 00:25:54 +01:00
|
|
|
<script>function H(){window.open("https://github.com/Aircoookie/WLED/wiki/Settings#time-settings");}function B(){window.open("/settings","_self");}function S(){GetV();Cs();}function gId(s){return document.getElementById(s);}function Cs(){gId("cac").style.display="none";gId("coc").style.display="block";gId("ccc").style.display="none";if (gId("ca").selected){gId("cac").style.display="block";}if (gId("cc").selected){gId("coc").style.display="none";gId("ccc").style.display="block";}if (gId("cn").selected){gId("coc").style.display="none";}}function GetV(){var d = document;
|
2018-02-20 22:29:48 +01:00
|
|
|
)=====";
|
|
|
|
const char PAGE_settings_time1[] PROGMEM = R"=====(
|
|
|
|
</head>
|
2018-03-14 00:25:54 +01:00
|
|
|
<body onload="S()">
|
2018-02-20 22:29:48 +01:00
|
|
|
<form id="form_s" name="Sf" method="post">
|
|
|
|
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button><hr>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h2>Time setup</h2>
|
2018-03-14 19:05:51 +01:00
|
|
|
Get time from NTP server: <input type="checkbox" name="NT"><br>
|
|
|
|
Use 24h format: <input type="checkbox" name="CF"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
Time zone:
|
2018-03-14 19:05:51 +01:00
|
|
|
<select name="TZ">
|
2018-03-14 00:25:54 +01:00
|
|
|
<option value="0" selected>GMT(UTC)</option>
|
|
|
|
<option value="1">GMT/BST</option>
|
|
|
|
<option value="2">CET/CEST</option>
|
|
|
|
<option value="3">EET/EEST</option>
|
|
|
|
<option value="4">US-EST/EDT</option>
|
|
|
|
<option value="5">US-CST/CDT</option>
|
|
|
|
<option value="6">US-MST/MDT</option>
|
|
|
|
<option value="7">US-AZ</option>
|
|
|
|
<option value="8">US-PST/PDT</option>
|
|
|
|
<option value="9">CST(AWST)</option>
|
|
|
|
<option value="10">JST(KST)</option>
|
|
|
|
<option value="11">AEST/AEDT</option>
|
|
|
|
<option value="12">NZST/NZDT</option>
|
2018-04-01 00:08:50 +02:00
|
|
|
<option value="13">North Korea</option>
|
2018-02-20 22:29:48 +01:00
|
|
|
</select><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
UTC offset: <input name="UO" type="number" min="-65500" max="65500" required> seconds (max. 18 hours)<br>
|
2018-02-20 22:29:48 +01:00
|
|
|
Current local time is <span class="times">unknown</span>.
|
2018-03-14 00:25:54 +01:00
|
|
|
<h3>Clock</h3>
|
|
|
|
Clock Overlay:
|
2018-03-14 19:05:51 +01:00
|
|
|
<select name="OL" onchange="Cs()">
|
2018-03-14 00:25:54 +01:00
|
|
|
<option value="0" id="cn" selected>None</option>
|
|
|
|
<option value="1">Static color</option>
|
|
|
|
<option value="2" id="ca">Analog Clock</option>
|
|
|
|
<option value="3">Single Digit Clock</option>
|
|
|
|
<option value="4" id="cc">Cronixie Clock</option>
|
|
|
|
</select><br>
|
|
|
|
<div id="coc">
|
2018-03-14 19:05:51 +01:00
|
|
|
First LED: <input name="O1" type="number" min="0" max="255" required> Last LED: <input name="O2" type="number" min="0" max="255" required><br>
|
2018-03-14 00:25:54 +01:00
|
|
|
<div id="cac">
|
2018-03-14 19:05:51 +01:00
|
|
|
12h LED: <input name="OM" type="number" min="0" max="255" required><br>
|
|
|
|
Show 5min marks: <input type="checkbox" name="O5"><br></div>
|
|
|
|
Seconds (as trail): <input type="checkbox" name="OS"><br>
|
2018-03-14 00:25:54 +01:00
|
|
|
</div>
|
|
|
|
<div id="ccc">
|
2018-03-14 19:05:51 +01:00
|
|
|
Cronixie Display: <input name="CX" maxlength="6"><br>
|
|
|
|
Cronixie Backlight: <input type="checkbox" name="CB"><br>
|
2018-03-14 00:25:54 +01:00
|
|
|
</div>
|
2018-03-14 19:05:51 +01:00
|
|
|
Countdown Mode: <input type="checkbox" name="CE"><br>
|
|
|
|
Countdown Goal: Year: 20 <input name="CY" type="number" min="0" max="99" required> Month: <input name="CI" type="number" min="1" max="12" required> Day: <input name="CD" type="number" min="1" max="31" required><br>
|
|
|
|
Hour: <input name="CH" type="number" min="0" max="23" required> Minute: <input name="CM" type="number" min="0" max="59" required> Second: <input name="CS" type="number" min="0" max="59" required><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Advanced Macros</h3>
|
2018-03-14 00:25:54 +01:00
|
|
|
Define API macros here:<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
1: <input name="M1" maxlength="64"><br>
|
|
|
|
2: <input name="M2" maxlength="64"><br>
|
|
|
|
3: <input name="M3" maxlength="64"><br>
|
|
|
|
4: <input name="M4" maxlength="64"><br>
|
|
|
|
5: <input name="M5" maxlength="64"><br>
|
|
|
|
6: <input name="M6" maxlength="64"><br>
|
|
|
|
7: <input name="M7" maxlength="64"><br>
|
|
|
|
8: <input name="M8" maxlength="64"><br>
|
|
|
|
9: <input name="M9" maxlength="64"><br>
|
|
|
|
10: <input name="M10" maxlength="64"><br>
|
|
|
|
11: <input name="M11" maxlength="64"><br>
|
|
|
|
12: <input name="M12" maxlength="64"><br>
|
|
|
|
13: <input name="M13" maxlength="64"><br>
|
|
|
|
14: <input name="M14" maxlength="64"><br>
|
|
|
|
15: <input name="M15" maxlength="64"><br>
|
|
|
|
16: <input name="M16" maxlength="64"><br><br>
|
2018-03-14 00:25:54 +01:00
|
|
|
<i>Use 0 for the default action instead of a macro</i><br>
|
|
|
|
Time controlled macros coming soon!<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Boot Macro: <input name="MB" type="number" min="0" max="16" required><br>
|
|
|
|
Alexa On/Off Macros: <input name="A0" type="number" min="0" max="16" required> <input name="A1" type="number" min="0" max="16" required><br>
|
|
|
|
Button Macro: <input name="MP" type="number" min="0" max="16" required> Long Press: <input name="ML" type="number" min="0" max="16" required><br>
|
|
|
|
Countdown-Over Macro: <input name="MC" type="number" min="0" max="16" required><br>
|
|
|
|
Timed-Light-Over Macro: <input name="MN" type="number" min="0" max="16" required><hr>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save</button>
|
2018-02-20 22:29:48 +01:00
|
|
|
</form>
|
2018-02-23 01:33:32 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
2018-02-20 22:29:48 +01:00
|
|
|
)=====";
|
|
|
|
|
|
|
|
const char PAGE_settings_sec0[] PROGMEM = R"=====(
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html><head>
|
|
|
|
<title>Misc Settings</title>
|
|
|
|
<script>function H(){window.open("https://github.com/Aircoookie/WLED/wiki/Settings#security-settings");}function B(){window.open("/settings","_self");}function U(){window.open("/update","_self");}function GetV(){var d = document;
|
|
|
|
)=====";
|
|
|
|
const char PAGE_settings_sec1[] PROGMEM = R"=====(
|
|
|
|
</head>
|
|
|
|
<body onload="GetV()">
|
|
|
|
<form id="form_s" name="Sf" method="post">
|
|
|
|
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save & Reboot</button><hr>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h2>Security & Update setup</h2>
|
2018-05-10 19:55:58 +02:00
|
|
|
Lock wireless (OTA) software update: <input type="checkbox" name="NO"><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Passphrase: <input type="password" name="OP" maxlength="32"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
To enable OTA, for security reasons you need to also enter the correct password!<br>
|
2018-03-14 19:05:51 +01:00
|
|
|
The password should be changed when OTA is enabled.<br>
|
|
|
|
<b>Disable OTA when not in use, otherwise an attacker can reflash device software!</b><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<i>Settings on this page are only changable if OTA lock is disabled!</i><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Deny access to WiFi settings if locked: <input type="checkbox" name="OW"><br><br>
|
|
|
|
Disable recovery AP: <input type="checkbox" name="NA"><br>
|
|
|
|
In case of an error there will be no wireless recovery possible!<br>
|
2018-02-20 22:29:48 +01:00
|
|
|
Completely disables all Access Point functions.<br><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Factory reset: <input type="checkbox" name="RS"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
All EEPROM content (settings) will be erased.<br><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
HTTP traffic is unencrypted. An attacker in the same network can intercept form data!
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>Software Update</h3>
|
|
|
|
<button type="button" onclick="U()">Manual OTA Update</button><br>
|
2018-03-14 19:05:51 +01:00
|
|
|
Enable ArduinoOTA: <input type="checkbox" name="AO"><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<h3>About</h3>
|
2018-05-31 19:26:16 +02:00
|
|
|
<a href="https://github.com/Aircoookie/WLED">WLED</a> version 0.7.0<br><br>
|
2018-05-22 21:11:19 +02:00
|
|
|
<b>Contributors:</b><br>
|
|
|
|
StormPie <i>(Mobile HTML UI)</i><br><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
(c) 2016-2018 Christian Schwinne <br>
|
|
|
|
<i>Licensed under the MIT license</i><br><br>
|
2018-05-22 21:11:19 +02:00
|
|
|
<b>Uses libraries:</b><br>
|
2018-02-20 22:29:48 +01:00
|
|
|
<i>ESP8266/ESP32 Arduino Core</i><br>
|
|
|
|
<i>(ESP32) <a href="https://github.com/bbx10/WebServer_tng">WebServer_tng</a> by bbx10</i><br>
|
|
|
|
<i><a href="https://github.com/kitesurfer1404/WS2812FX">WS2812FX</a> by kitesurfer1404 (modified)</i><br>
|
|
|
|
<i><a href="https://github.com/JChristensen/Timezone">Timezone</a> library by JChristensen</i><br>
|
|
|
|
<i><a href="https://github.com/Aircoookie/Espalexa">Espalexa</a> by Aircoookie (modified)</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>
|
|
|
|
Server message: <span class="msg"> Response error! </span><hr>
|
2018-03-14 00:25:54 +01:00
|
|
|
<button type="button" onclick="B()">Back</button><button type="submit">Save & Reboot</button>
|
2018-02-20 22:29:48 +01:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|
2017-02-01 21:25:09 +01:00
|
|
|
)=====";
|