Skip to content

Commit 5d6b97a

Browse files
committed
Release of WLED v0.11.1
Fixed AP hide not saving (fixes #1520) Fixed MQTT password re-transmitted to HTML Hide Update buttons while uploading, accept .bin Make sure AP password is at least 8 characters long
1 parent c277ebb commit 5d6b97a

File tree

11 files changed

+845
-814
lines changed

11 files changed

+845
-814
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
## WLED changelog
22

3+
### WLED release 0.11.1
4+
5+
#### Build 2012180
6+
7+
- Release of WLED 0.11.1 "Mirai"
8+
- Fixed AP hide not saving (fixes #1520)
9+
- Fixed MQTT password re-transmitted to HTML
10+
- Hide Update buttons while uploading, accept .bin
11+
- Make sure AP password is at least 8 characters long
12+
313
### Development versions after 0.11.0 release
414

515
#### Build 2012160

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wled",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"description": "Tools for WLED project",
55
"main": "tools/cdata.js",
66
"directories": {

wled00/cfg.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ void serializeConfig() {
366366
ap[F("ssid")] = apSSID;
367367
ap[F("pskl")] = strlen(apPass);
368368
ap[F("chan")] = apChannel;
369+
ap[F("hide")] = apHide;
369370
ap[F("behav")] = apBehavior;
370371

371372
JsonArray ap_ip = ap.createNestedArray("ip");

wled00/data/index.htm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,14 +1292,18 @@
12921292

12931293
function loadBg(iUrl) {
12941294
let bg = document.getElementById('bg');
1295-
let img = document.createElement("img");
1296-
img.src = iUrl;
1295+
let img = document.createElement("img");
1296+
img.src = iUrl;
1297+
if (iUrl == "") {
1298+
var today = new Date();
1299+
if (today.getMonth() == 11 && (today.getDate() > 23 && today.getDate() < 28)) img.src = "https://aircoookie.github.io/xmas.png";
1300+
}
12971301
img.addEventListener('load', (event) => {
12981302
var a = parseFloat(cfg.theme.alpha.bg);
12991303
d.getElementById('staytop2').style.background = "transparent";
13001304
if (isNaN(a)) a = 0.6;
13011305
bg.style.opacity = a;
1302-
bg.style.backgroundImage = `url(${iUrl})`;
1306+
bg.style.backgroundImage = `url(${img.src})`;
13031307
img = null;
13041308
});
13051309
}

wled00/data/settings_wifi.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h3>Connect to existing network</h3>
5151
<h3>Configure Access Point</h3>
5252
AP SSID (leave empty for no AP):<br> <input name="AS" maxlength="32"><br>
5353
Hide AP name: <input type="checkbox" name="AH"><br>
54-
AP password (leave empty for open):<br> <input type="password" name="AP" maxlength="63"><br>
54+
AP password (leave empty for open):<br> <input type="password" name="AP" maxlength="63" pattern="(.{8,63})|()" title="Empty or min. 8 characters"><br>
5555
Access Point WiFi channel: <input name="AC" type="number" min="1" max="13" required><br>
5656
AP opens:
5757
<select name="AB">

wled00/data/update.htm

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,49 @@
44
<head>
55
<meta content='width=device-width' name='viewport'>
66
<title>WLED Update</title>
7-
<script>function B() { window.history.back() }</script>
7+
<script>function B() { window.history.back() }
8+
function U() {document.getElementById("uf").style.display="none";document.getElementById("msg").style.display="block";}
9+
</script>
810
<style>
9-
.bt {
10-
background: #333;
11-
color: #fff;
12-
font-family: Verdana, sans-serif;
13-
border: .3ch solid #333;
14-
display: inline-block;
15-
font-size: 20px;
16-
margin: 8px;
17-
margin-top: 12px
18-
}
11+
.bt {
12+
background: #333;
13+
color: #fff;
14+
font-family: Verdana, sans-serif;
15+
border: .3ch solid #333;
16+
display: inline-block;
17+
font-size: 20px;
18+
margin: 8px;
19+
margin-top: 12px
20+
}
1921

20-
input[type=file] {
21-
font-size: 16px
22-
}
22+
input[type=file] {
23+
font-size: 16px
24+
}
2325

24-
body {
25-
font-family: Verdana, sans-serif;
26-
text-align: center;
27-
background: #222;
28-
color: #fff;
29-
line-height: 200%
30-
}
26+
body {
27+
font-family: Verdana, sans-serif;
28+
text-align: center;
29+
background: #222;
30+
color: #fff;
31+
line-height: 200%
32+
}
33+
34+
#msg {
35+
display: none;
36+
}
3137
</style>
3238
</head>
3339

3440
<body>
35-
<h2>WLED Software Update</h2>Installed version: ##VERSION##<br>Download the latest binary: <a
36-
href="https://github.com/Aircoookie/WLED/releases" target="_blank"><img
37-
src="https://img.shields.io/github/release/Aircoookie/WLED.svg?style=flat-square"></a><br>
38-
<form method='POST' action='/update' enctype='multipart/form-data'><input type='file' class="bt" name='update'
39-
required><br><input type='submit' class="bt" value='Update!'></form><button type="button" class="bt"
40-
onclick="B()">Back</button>
41+
<h2>WLED Software Update</h2>
42+
<form method='POST' action='/update' id='uf' enctype='multipart/form-data' onsubmit="U()">
43+
Installed version: ##VERSION##<br>
44+
Download the latest binary: <a href="https://github.com/Aircoookie/WLED/releases" target="_blank">
45+
<img src="https://img.shields.io/github/release/Aircoookie/WLED.svg?style=flat-square"></a><br>
46+
<input type='file' class="bt" name='update' accept=".bin" required><br>
47+
<input type='submit' class="bt" value='Update!' ><br>
48+
<button type="button" class="bt" onclick="B()">Back</button></form>
49+
<div id="msg"><b>Updating...</b><br>Please do not close or refresh the page :)</div>
4150
</body>
4251

4352
</html>

wled00/html_other.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,19 @@ const char PAGE_dmxmap[] PROGMEM = R"=====()=====";
3636

3737
// Autogenerated from wled00/data/update.htm, do not edit!!
3838
const char PAGE_update[] PROGMEM = R"=====(<!DOCTYPE html><html><head><meta content="width=device-width" name="viewport">
39-
<title>WLED Update</title><script>function B(){window.history.back()}</script>
40-
<style>
41-
.bt{background:#333;color:#fff;font-family:Verdana,sans-serif;border:.3ch solid #333;display:inline-block;font-size:20px;margin:8px;margin-top:12px}input[type=file]{font-size:16px}body{font-family:Verdana,sans-serif;text-align:center;background:#222;color:#fff;line-height:200%}
42-
</style></head><body><h2>WLED Software Update</h2>Installed version: 0.11.0<br>
43-
Download the latest binary: <a
39+
<title>WLED Update</title><script>
40+
function B(){window.history.back()}function U(){document.getElementById("uf").style.display="none",document.getElementById("msg").style.display="block"}
41+
</script><style>
42+
.bt{background:#333;color:#fff;font-family:Verdana,sans-serif;border:.3ch solid #333;display:inline-block;font-size:20px;margin:8px;margin-top:12px}input[type=file]{font-size:16px}body{font-family:Verdana,sans-serif;text-align:center;background:#222;color:#fff;line-height:200%}#msg{display:none}
43+
</style></head><body><h2>WLED Software Update</h2><form method="POST"
44+
action="/update" id="uf" enctype="multipart/form-data" onsubmit="U()">
45+
Installed version: 0.11.1<br>Download the latest binary: <a
4446
href="https://github.com/Aircoookie/WLED/releases" target="_blank"><img
4547
src="https://img.shields.io/github/release/Aircoookie/WLED.svg?style=flat-square">
46-
</a><br><form method="POST" action="/update" enctype="multipart/form-data">
47-
<input type="file" class="bt" name="update" required><br><input type="submit"
48-
class="bt" value="Update!"></form><button type="button" class="bt"
49-
onclick="B()">Back</button></body></html>)=====";
48+
</a><br><input type="file" class="bt" name="update" accept=".bin" required><br>
49+
<input type="submit" class="bt" value="Update!"><br><button type="button"
50+
class="bt" onclick="B()">Back</button></form><div id="msg"><b>Updating...</b>
51+
<br>Please do not close or refresh the page :)</div></body></html>)=====";
5052
5153
5254
// Autogenerated from wled00/data/welcome.htm, do not edit!!

wled00/html_settings.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ maxlength="32"> .local<br>Client IP: <span class="sip">Not connected</span><br>
5353
<h3>Configure Access Point</h3>AP SSID (leave empty for no AP):<br><input
5454
name="AS" maxlength="32"><br>Hide AP name: <input type="checkbox" name="AH"><br>
5555
AP password (leave empty for open):<br><input type="password" name="AP"
56-
maxlength="63"><br>Access Point WiFi channel: <input name="AC" type="number"
57-
min="1" max="13" required><br>AP opens: <select name="AB"><option value="0">
56+
maxlength="63" pattern="(.{8,63})|()" title="Empty or min. 8 characters"><br>
57+
Access Point WiFi channel: <input name="AC" type="number" min="1" max="13"
58+
required><br>AP opens: <select name="AB"><option value="0">
5859
No connection after boot</option><option value="1">Disconnected</option><option
5960
value="2">Always</option><option value="3">Never (not recommended)</option>
6061
</select><br>AP IP: <span class="sip">Not active</span><br><h3>Experimental</h3>
@@ -359,7 +360,7 @@ HTTP traffic is unencrypted. An attacker in the same network can intercept form
359360
<h3>Software Update</h3><button type="button" onclick="U()">Manual OTA Update
360361
</button><br>Enable ArduinoOTA: <input type="checkbox" name="AO"><br><h3>About
361362
</h3><a href="https://github.com/Aircoookie/WLED/" target="_blank">WLED</a>
362-
version 0.11.0<br><br><a
363+
version 0.11.1<br><br><a
363364
href="https://github.com/Aircoookie/WLED/wiki/Contributors-&-About"
364365
target="_blank">Contributors, dependencies and special thanks</a><br>
365366
A huge thank you to everyone who helped me create WLED!<br><br>

0 commit comments

Comments
 (0)