)=====";
+const uint16_t PAGE_liveview_length = 547;
+const uint8_t PAGE_liveview[] PROGMEM = {
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x95, 0x53, 0x4d, 0x6f, 0xdb, 0x30,
+ 0x0c, 0xbd, 0xe7, 0x57, 0x78, 0x2a, 0x5a, 0x48, 0x88, 0x63, 0x3b, 0xc5, 0xba, 0x8f, 0xf8, 0xe3,
+ 0xb0, 0xb5, 0x87, 0x02, 0x05, 0xd6, 0x43, 0x81, 0x61, 0x18, 0x76, 0x50, 0x24, 0xc6, 0xd6, 0x2a,
+ 0x4b, 0x81, 0x4c, 0xb9, 0x08, 0xd2, 0xfc, 0xf7, 0xc9, 0x76, 0xd2, 0x62, 0xc0, 0x30, 0xa0, 0x3e,
+ 0xc8, 0x94, 0xf8, 0xf4, 0x48, 0x3e, 0x52, 0xc5, 0xbb, 0xeb, 0x6f, 0x5f, 0x1f, 0x7e, 0xdc, 0xdf,
+ 0x44, 0x0d, 0xb6, 0xba, 0x2a, 0x8e, 0x2b, 0x70, 0x59, 0x15, 0x2d, 0x20, 0x8f, 0x0c, 0x6f, 0xa1,
+ 0x24, 0xbd, 0x82, 0xa7, 0xad, 0x75, 0x48, 0xa2, 0x99, 0xb0, 0x06, 0xc1, 0x60, 0x49, 0x9e, 0x94,
+ 0xc4, 0xa6, 0x94, 0xd0, 0x2b, 0x01, 0x8b, 0x71, 0x13, 0x2b, 0xa3, 0x50, 0x71, 0xbd, 0xe8, 0x04,
+ 0xd7, 0x50, 0x2e, 0xe3, 0x36, 0x1c, 0xb4, 0xbe, 0x3d, 0xed, 0xc9, 0x91, 0x73, 0x26, 0x1a, 0xee,
+ 0x3a, 0x08, 0x1c, 0x1e, 0x37, 0x8b, 0x4f, 0xe4, 0xaf, 0x50, 0xd8, 0x40, 0x0b, 0x0b, 0x61, 0xb5,
+ 0x75, 0x24, 0x7a, 0x09, 0x76, 0x76, 0x39, 0x7e, 0x01, 0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79,
+ 0x9a, 0x86, 0xa5, 0x48, 0xa7, 0x51, 0x4a, 0xc7, 0x17, 0xf9, 0x07, 0xe3, 0xed, 0x60, 0x85, 0xa7,
+ 0x03, 0x00, 0x00
+};
// Autogenerated from wled00/data/liveviewws.htm, do not edit!!
-const char PAGE_liveviewws[] PROGMEM = R"=====(
)=====";
+const uint16_t PAGE_liveviewws_length = 683;
+const uint8_t PAGE_liveviewws[] PROGMEM = {
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x75, 0x54, 0xeb, 0x6f, 0xd3, 0x30,
+ 0x10, 0xff, 0xde, 0xbf, 0x22, 0x78, 0xa2, 0x8b, 0xd5, 0x34, 0x6d, 0x91, 0x78, 0xe5, 0x51, 0x04,
+ 0xac, 0x48, 0x4c, 0x13, 0x9b, 0x34, 0xd0, 0x84, 0x10, 0x1f, 0xdc, 0xf8, 0x9a, 0x58, 0x4b, 0xec,
+ 0x62, 0x5f, 0x1a, 0x55, 0x55, 0xfe, 0x77, 0xce, 0x4d, 0x37, 0x1e, 0x82, 0x7c, 0xc8, 0xc3, 0xbe,
+ 0xbb, 0xdf, 0xe3, 0xce, 0xc9, 0x9e, 0x5c, 0x5c, 0xbf, 0xff, 0xfc, 0xf5, 0x66, 0x15, 0x54, 0xd8,
+ 0xd4, 0xcb, 0xec, 0x74, 0x07, 0x21, 0x97, 0x59, 0x03, 0x28, 0x02, 0x2d, 0x1a, 0xc8, 0xd9, 0x4e,
+ 0x41, 0xb7, 0x35, 0x16, 0x59, 0x30, 0x2a, 0x8c, 0x46, 0xd0, 0x98, 0xb3, 0x4e, 0x49, 0xac, 0x72,
+ 0x09, 0x3b, 0x55, 0xc0, 0xf4, 0xf8, 0x11, 0x29, 0xad, 0x50, 0x89, 0x7a, 0xea, 0x0a, 0x51, 0x43,
+ 0xbe, 0x88, 0x1a, 0x5a, 0x68, 0xda, 0xe6, 0xe1, 0x9b, 0x9d, 0x6a, 0x8e, 0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, 0xdc, 0x5a, 0x16, 0x55, 0x49, 0x04, 0x00, 0x00
+};
// Autogenerated from wled00/data/404.htm, do not edit!!
-const char PAGE_404[] PROGMEM = R"=====(
Not found
-
404 Not Found
Akemi does not know where you are headed...
-
-)=====";
+const uint16_t PAGE_404_length = 868;
+const uint8_t PAGE_404[] PROGMEM = {
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x65, 0x54, 0x5b, 0x73, 0xaa, 0x3a,
+ 0x14, 0x7e, 0xef, 0xaf, 0xe0, 0x78, 0xe6, 0xcc, 0x7e, 0x68, 0x2d, 0xa8, 0xd8, 0x2a, 0xa2, 0x33,
+ 0x01, 0x51, 0xec, 0xc5, 0x7a, 0xa3, 0xd6, 0xbe, 0x05, 0x12, 0x21, 0x15, 0x08, 0x4d, 0x82, 0x62,
+ 0x3b, 0xfd, 0xef, 0x3b, 0x40, 0xf7, 0x9c, 0xce, 0xec, 0x35, 0x03, 0x2b, 0xf9, 0x56, 0xd6, 0x7d,
+ 0x25, 0xe6, 0x3f, 0xe3, 0x27, 0x7b, 0xb3, 0x5b, 0x38, 0x4a, 0x24, 0x92, 0x78, 0x64, 0x7e, 0xff,
+ 0x31, 0x44, 0x23, 0x33, 0xc1, 0x02, 0x2a, 0x41, 0x04, 0x19, 0xc7, 0x62, 0xd8, 0xc8, 0xc5, 0xbe,
+ 0xd9, 0x6b, 0x7c, 0xa3, 0x17, 0x01, 0x4d, 0x05, 0x4e, 0x25, 0x7c, 0x22, 0x48, 0x44, 0x43, 0x84,
+ 0x8f, 0x24, 0xc0, 0xcd, 0x6a, 0xd3, 0x50, 0x52, 0x98, 0xe0, 0x61, 0xe3, 0x48, 0xf0, 0x29, 0xa3,
+ 0x4c, 0xfc, 0xd1, 0xa9, 0x51, 0x11, 0xe1, 0x04, 0x37, 0x03, 0x1a, 0x53, 0xd6, 0xf8, 0x61, 0xe6,
+ 0xdf, 0x76, 0x45, 0xf2, 0xac, 0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 0xb7, 0x64,
+ 0xeb, 0x04, 0x00, 0x00
+};
// Autogenerated from wled00/data/favicon.ico, do not edit!!
diff --git a/wled00/html_settings.h b/wled00/html_settings.h
index bc3c5d46..82fce57f 100644
--- a/wled00/html_settings.h
+++ b/wled00/html_settings.h
@@ -6,18 +6,71 @@
*/
// Autogenerated from wled00/data/style.css, do not edit!!
-const char PAGE_settingsCss[] PROGMEM = R"=====()=====";
+const uint16_t PAGE_settingsCss_length = 788;
+const uint8_t PAGE_settingsCss[] PROGMEM = {
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xad, 0x55, 0xed, 0x6e, 0xa3, 0x30,
+ 0x10, 0x7c, 0x15, 0x4e, 0x51, 0xa5, 0x54, 0x0a, 0x08, 0x08, 0xd0, 0xd4, 0xe8, 0xa4, 0xd3, 0x3d,
+ 0xc4, 0xe9, 0xa4, 0x53, 0x7f, 0x18, 0xbc, 0x04, 0x2b, 0xc6, 0x46, 0xb6, 0x69, 0x49, 0x11, 0xef,
+ 0x7e, 0x36, 0x1f, 0x17, 0x92, 0x70, 0xed, 0x9f, 0x2a, 0x4a, 0x84, 0xbd, 0x9b, 0xf5, 0xcc, 0x8e,
+ 0x67, 0x29, 0x75, 0xc5, 0x3a, 0x2d, 0x9a, 0xbc, 0x74, 0x71, 0xae, 0xa9, 0xe0, 0xa8, 0xc2, 0x9c,
+ 0xd6, 0x0d, 0xc3, 0x76, 0xd1, 0x67, 0x82, 0x9c, 0xbb, 0x42, 0x70, 0xed, 0x16, 0xb8, 0xa2, 0xec,
+ 0x8c, 0x7e, 0x81, 0x24, 0x98, 0xe3, 0x9d, 0xc2, 0x5c, 0xb9, 0x0a, 0x24, 0x2d, 0xd2, 0x21, 0xac,
+ 0xe8, 0x3b, 0xa0, 0x40, 0x42, 0x95, 0x6a, 0x68, 0xb5, 0x8b, 0x19, 0x3d, 0x72, 0x94, 0x03, 0xd7,
+ 0x20, 0xd3, 0x0c, 0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 0x2f, 0x56, 0xbb, 0xcb, 0xa3,
+ 0x13, 0xda, 0x1f, 0x69, 0xa0, 0x4b, 0x05, 0x73, 0x61, 0x90, 0x52, 0xc8, 0x0f, 0x2b, 0x67, 0x61,
+ 0xb0, 0x5a, 0xb9, 0xff, 0x61, 0x4d, 0x86, 0x1d, 0x95, 0x4b, 0x00, 0xee, 0x60, 0x4e, 0x9c, 0xed,
+ 0x85, 0xc4, 0x53, 0x62, 0x7a, 0xf7, 0xd8, 0x2d, 0xee, 0x24, 0x54, 0x98, 0xb2, 0x2b, 0xef, 0x16,
+ 0x94, 0xc1, 0xd5, 0xc6, 0x8a, 0xbf, 0x6b, 0xac, 0xd4, 0x9b, 0x51, 0xee, 0xc6, 0xf4, 0xec, 0x7e,
+ 0x08, 0x2c, 0xdc, 0x6f, 0xa5, 0xea, 0x3f, 0xc6, 0x17, 0x1d, 0xfc, 0x1b, 0x7c, 0x77, 0xa6, 0xf3,
+ 0x3f, 0x31, 0xdd, 0xfe, 0x66, 0x72, 0x0c, 0x74, 0xa6, 0x58, 0x68, 0xdf, 0x40, 0xfd, 0xc6, 0xbc,
+ 0xf1, 0x94, 0x33, 0x79, 0x6b, 0x1a, 0x26, 0x91, 0x0d, 0xf4, 0x7f, 0x01, 0xa1, 0x0b, 0x67, 0x1b,
+ 0xe4, 0x07, 0x00, 0x00
+};
// Autogenerated from wled00/data/settings.htm, do not edit!!
-const char PAGE_settings[] PROGMEM = R"=====(
WLED Settings
-%DMXMENU%
)=====";
// Autogenerated from wled00/data/settings_wifi.htm, do not edit!!
-const char PAGE_settings_wifi[] PROGMEM = R"=====(
WiFi Settings"));
return String(buf);
}
-
+*/
#ifdef WLED_ENABLE_DMX
-
if (var == "DMXMENU") {
return String(F("
"));
}
-
#endif
- if (var == "SCSS") return String(FPSTR(PAGE_settingsCss));
+ //if (var == "SCSS") return String(FPSTR(PAGE_settingsCss));
return String();
}
@@ -447,13 +462,32 @@ String dmxProcessor(const String& var)
}
+void serveSettingsJS(AsyncWebServerRequest* request)
+{
+ char buf[SETTINGS_STACK_BUF_SIZE+37];
+ buf[0] = 0;
+ byte subPage = request->arg(F("p")).toInt();
+ if (!subPage || subPage>8) {
+ strcpy_P(buf, PSTR("alert('Settings for this request are not implemented.');"));
+ request->send(501, "application/javascript", buf);
+ return;
+ }
+ strcat_P(buf,PSTR("function GetV(){var d=document;"));
+ getSettingsJS(subPage, buf+strlen(buf)); // this may overflow by 35bytes!!!
+ strcat_P(buf,PSTR("}"));
+ request->send(200, "application/javascript", buf);
+}
+
+
void serveSettings(AsyncWebServerRequest* request, bool post)
{
byte subPage = 0;
const String& url = request->url();
if (url.indexOf("sett") >= 0)
{
- if (url.indexOf("wifi") > 0) subPage = 1;
+ if (url.indexOf(".js") > 0) subPage = 254;
+ else if (url.indexOf(".css") > 0) subPage = 253;
+ else if (url.indexOf("wifi") > 0) subPage = 1;
else if (url.indexOf("leds") > 0) subPage = 2;
else if (url.indexOf("ui") > 0) subPage = 3;
else if (url.indexOf("sync") > 0) subPage = 4;
@@ -502,17 +536,24 @@ void serveSettings(AsyncWebServerRequest* request, bool post)
optionType = subPage;
+ AsyncWebServerResponse *response;
switch (subPage)
{
- case 1: request->send_P(200, "text/html", PAGE_settings_wifi, settingsProcessor); break;
- case 2: request->send_P(200, "text/html", PAGE_settings_leds, settingsProcessor); break;
- case 3: request->send_P(200, "text/html", PAGE_settings_ui , settingsProcessor); break;
- case 4: request->send_P(200, "text/html", PAGE_settings_sync, settingsProcessor); break;
- case 5: request->send_P(200, "text/html", PAGE_settings_time, settingsProcessor); break;
- case 6: request->send_P(200, "text/html", PAGE_settings_sec , settingsProcessor); break;
- case 7: request->send_P(200, "text/html", PAGE_settings_dmx , settingsProcessor); break;
- case 8: request->send_P(200, "text/html", PAGE_settings_um , settingsProcessor); break;
- case 255: request->send_P(200, "text/html", PAGE_welcome); break;
- default: request->send_P(200, "text/html", PAGE_settings , settingsProcessor);
+ case 1: response = request->beginResponse_P(200, "text/html", PAGE_settings_wifi, PAGE_settings_wifi_length); break;
+ case 2: response = request->beginResponse_P(200, "text/html", PAGE_settings_leds, PAGE_settings_leds_length); break;
+ case 3: response = request->beginResponse_P(200, "text/html", PAGE_settings_ui, PAGE_settings_ui_length); break;
+ case 4: response = request->beginResponse_P(200, "text/html", PAGE_settings_sync, PAGE_settings_sync_length); break;
+ case 5: response = request->beginResponse_P(200, "text/html", PAGE_settings_time, PAGE_settings_time_length); break;
+ case 6: response = request->beginResponse_P(200, "text/html", PAGE_settings_sec, PAGE_settings_sec_length); break;
+ case 7: response = request->beginResponse_P(200, "text/html", PAGE_settings_dmx, PAGE_settings_dmx_length); break;
+ case 8: response = request->beginResponse_P(200, "text/html", PAGE_settings_um, PAGE_settings_um_length); break;
+ case 253: response = request->beginResponse_P(200, "text/css", PAGE_settingsCss, PAGE_settingsCss_length); break;
+ case 254: serveSettingsJS(request); return;
+ case 255: response = request->beginResponse_P(200, "text/html", PAGE_welcome, PAGE_welcome_length); break;
+ default: request->send_P(200, "text/html", PAGE_settings, settingsProcessor); return;
+ //default: response = request->beginResponse_P(200, "text/html", PAGE_settings, PAGE_settings_length); break;
}
+ response->addHeader(F("Content-Encoding"),"gzip");
+ setStaticContentCacheHeaders(response);
+ request->send(response);
}
diff --git a/wled00/ws.cpp b/wled00/ws.cpp
index 451c15cb..79b67656 100644
--- a/wled00/ws.cpp
+++ b/wled00/ws.cpp
@@ -37,11 +37,7 @@ void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTyp
bool verboseResponse = false;
{ //scope JsonDocument so it releases its buffer
DEBUG_PRINTLN(F("WS JSON receive buffer requested."));
- #ifdef WLED_USE_DYNAMIC_JSON
- DynamicJsonDocument doc(JSON_BUFFER_SIZE);
- #else
- if (!requestJSONBufferLock(15)) return;
- #endif
+ if (!requestJSONBufferLock(11)) return;
DeserializationError error = deserializeJson(doc, data, len);
JsonObject root = doc.as
();
@@ -49,13 +45,6 @@ void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTyp
releaseJSONBufferLock();
return;
}
- /*
- #ifdef WLED_DEBUG
- DEBUG_PRINT(F("Incoming WS: "));
- serializeJson(root,Serial);
- DEBUG_PRINTLN();
- #endif
- */
if (root["v"] && root.size() == 1) {
//if the received value is just "{"v":true}", send only to this client
verboseResponse = true;
@@ -63,15 +52,13 @@ void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTyp
{
wsLiveClientId = root["lv"] ? client->id() : 0;
} else {
- //fileDoc = &doc; // used for applying presets (presets.cpp)
verboseResponse = deserializeState(root);
- //fileDoc = nullptr;
if (!interfaceUpdateCallMode) {
//special case, only on playlist load, avoid sending twice in rapid succession
if (millis() - lastInterfaceUpdate > 1700) verboseResponse = false;
}
}
- releaseJSONBufferLock();
+ releaseJSONBufferLock(); // will clean fileDoc
}
//update if it takes longer than 300ms until next "broadcast"
if (verboseResponse && (millis() - lastInterfaceUpdate < 1700 || !interfaceUpdateCallMode)) sendDataWs(client);
@@ -114,11 +101,7 @@ void sendDataWs(AsyncWebSocketClient * client)
{ //scope JsonDocument so it releases its buffer
DEBUG_PRINTLN(F("WS JSON send buffer requested."));
- #ifdef WLED_USE_DYNAMIC_JSON
- DynamicJsonDocument doc(JSON_BUFFER_SIZE);
- #else
- if (!requestJSONBufferLock(16)) return;
- #endif
+ if (!requestJSONBufferLock(12)) return;
JsonObject state = doc.createNestedObject("state");
serializeState(state);
@@ -126,18 +109,14 @@ void sendDataWs(AsyncWebSocketClient * client)
serializeInfo(info);
DEBUG_PRINTF("JSON buffer size: %u for WS request.\n", doc.memoryUsage());
size_t len = measureJson(doc);
- buffer = ws.makeBuffer(len);
- if (!buffer) {
+ size_t heap1 = ESP.getFreeHeap();
+ buffer = ws.makeBuffer(len); // will not allocate correct memory sometimes
+ size_t heap2 = ESP.getFreeHeap();
+ if (!buffer || heap1-heap2get(), len +1);
releaseJSONBufferLock();
}
@@ -155,10 +134,13 @@ void handleWs()
{
if (millis() - wsLastLiveTime > WS_LIVE_INTERVAL)
{
+ #ifdef ESP8266
+ ws.cleanupClients(2);
+ #else
ws.cleanupClients();
+ #endif
bool success = true;
- if (wsLiveClientId)
- success = serveLiveLeds(nullptr, wsLiveClientId);
+ if (wsLiveClientId) success = serveLiveLeds(nullptr, wsLiveClientId);
wsLastLiveTime = millis();
if (!success) wsLastLiveTime -= 20; //try again in 20ms if failed due to non-empty WS queue
}
diff --git a/wled00/xml.cpp b/wled00/xml.cpp
index 5c75a15a..79beaf77 100644
--- a/wled00/xml.cpp
+++ b/wled00/xml.cpp
@@ -249,21 +249,18 @@ void getSettingsJS(byte subPage, char* dest)
{
char nS[8];
+
// Pin reservations will become unnecessary when settings pages will read cfg.json directly
// add reserved and usermod pins as d.um_p array
oappend(SET_F("d.um_p=[6,7,8,9,10,11"));
- #ifdef WLED_USE_DYNAMIC_JSON
- DynamicJsonDocument doc(2048); // 2k is enough for usermods
- #else
- if (!requestJSONBufferLock(17)) return;
- #endif
-
- JsonObject mods = doc.createNestedObject(F("um"));
- usermods.addToConfig(mods);
- if (!mods.isNull()) fillUMPins(mods);
-
- releaseJSONBufferLock();
+ if (requestJSONBufferLock(6)) {
+ // if we can't allocate JSON buffer ignore usermod pins
+ JsonObject mods = doc.createNestedObject(F("um"));
+ usermods.addToConfig(mods);
+ if (!mods.isNull()) fillUMPins(mods);
+ releaseJSONBufferLock();
+ }
#ifdef WLED_ENABLE_DMX
oappend(SET_F(",2")); // DMX hardcoded pin
@@ -335,6 +332,7 @@ void getSettingsJS(byte subPage, char* dest)
sappend('c',SET_F("CCT"),correctWB);
sappend('c',SET_F("CR"),cctFromRgb);
sappend('v',SET_F("CB"),strip.cctBlending);
+ sappend('v',SET_F("FR"),strip.getTargetFps());
sappend('v',SET_F("AW"),Bus::getAutoWhiteMode());
for (uint8_t s=0; s < busses.getNumBusses(); s++) {
@@ -419,6 +417,7 @@ void getSettingsJS(byte subPage, char* dest)
sappend('c',SET_F("RB"),receiveNotificationBrightness);
sappend('c',SET_F("RC"),receiveNotificationColor);
sappend('c',SET_F("RX"),receiveNotificationEffects);
+ sappend('c',SET_F("SO"),receiveSegmentOptions);
sappend('c',SET_F("SD"),notifyDirectDefault);
sappend('c',SET_F("SB"),notifyButton);
sappend('c',SET_F("SH"),notifyHue);
@@ -550,6 +549,12 @@ void getSettingsJS(byte subPage, char* dest)
k[0] = 'N'; sappend('v',k,timerMinutes[i]);
k[0] = 'T'; sappend('v',k,timerMacro[i]);
k[0] = 'W'; sappend('v',k,timerWeekday[i]);
+ if (i<8) {
+ k[0] = 'X'; sappend('c',k,timerDay[i]==0);
+ k[0] = 'M'; sappend('v',k,timerMonth[i]);
+ k[0] = 'D'; sappend('v',k,timerDay[i]?timerDay[i]:1);
+
+ }
}
}
@@ -600,6 +605,4 @@ void getSettingsJS(byte subPage, char* dest)
oappendi(usermods.getModCount());
oappend(";");
}
-
- oappend(SET_F("}"));
}