3afb499930
Added secondary color transition Added option to have UI while receiving realtime Fixed mDNS not working Fixed Arduino OTA not working when locked but enabled
104 lines
7.8 KiB
HTML
104 lines
7.8 KiB
HTML
<!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()
|
||
{
|
||
//values injected by server while sending HTML
|
||
}
|
||
</script>
|
||
<style>
|
||
:root {
|
||
--aCol: #abc;
|
||
--bCol: #fff;
|
||
--cCol: #ddd;
|
||
--dCol: #000;
|
||
--sCol: #0004;
|
||
}
|
||
body {
|
||
font-family: Verdana, Helvetica, sans-serif;
|
||
text-align: center;
|
||
background: var(--cCol);
|
||
color: var(--dCol);
|
||
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(--dCol);
|
||
border: 0.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(--dCol);
|
||
border: 0.5ch solid var(--bCol);
|
||
filter: drop-shadow( -5px -5px 5px var(--sCol) );
|
||
}
|
||
input[type=number] {
|
||
width: 3em;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body onload="GetV()">
|
||
<form id="form_s" name="Sf" method="post">
|
||
<div class="helpB"><button type="button" onclick="H()">?</button></div>
|
||
<button type="button" onclick="B()">Back</button><button type="submit">Save</button><hr>
|
||
<h2>Sync setup</h2>
|
||
<h3>Button setup</h3>
|
||
On/Off button enabled: <input type="checkbox" name="BT">
|
||
<h3>WLED Broadcast</h3>
|
||
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>
|
||
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">
|
||
<h3>Alexa Voice Assistant</h3>
|
||
Emulate Alexa device: <input type="checkbox" name="AL"><br>
|
||
Alexa invocation name: <input name="AI" maxlength="32"><br>
|
||
<h3>Philips Hue</h3>
|
||
<i>You can find the bridge IP and the light number in the 'About' section of the hue app.</i><br>
|
||
Hue Bridge IP:<br>
|
||
<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>
|
||
<b>Press the pushlink button on the bridge, after that save this page!</b><br>
|
||
(when first connecting)<br>
|
||
<!--Update Hue group <input name="HUEGR" type="number" min="0" max="99" required> <br>
|
||
Send <input type="checkbox" name="HUEIO"> On/Off, <input type="checkbox" name="HUEBR"> Brightness, and <input type="checkbox" name="HUECL"> Color<br>-->
|
||
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>
|
||
<!--After device color update, ignore Hue updates for <input name="HUELI" type="number" min="0" max="255" required> minutes<br>-->
|
||
Hue status: <span class="hms"> Internal ESP Error! </span><hr>
|
||
<button type="button" onclick="B()">Back</button><button type="submit">Save</button>
|
||
</form>
|
||
</body>
|
||
</html> |