diff --git a/tools/cdata.js b/tools/cdata.js index 34f37255..201193f6 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -398,6 +398,14 @@ const char PAGE_dmxmap[] PROGMEM = R"=====()====="; method: "plaintext", filter: "html-minify", }, + { + file: "liveviewws.htm", + name: "PAGE_liveviewws", + prepend: "=====(", + append: ")=====", + method: "plaintext", + filter: "html-minify", + }, { file: "404.htm", name: "PAGE_404", diff --git a/wled00/data/liveviewws.htm b/wled00/data/liveviewws.htm new file mode 100644 index 00000000..bc1e8293 --- /dev/null +++ b/wled00/data/liveviewws.htm @@ -0,0 +1,62 @@ + + + + + + + WLED Live Preview + + + +
+ + + \ No newline at end of file diff --git a/wled00/html_other.h b/wled00/html_other.h index 9011bccd..5cf7ec64 100644 --- a/wled00/html_other.h +++ b/wled00/html_other.h @@ -78,6 +78,17 @@ update();var tmout=null;function update(){if(document.hidden)return clearTimeout )====="; +// Autogenerated from wled00/data/liveviewws.htm, do not edit!! +const char PAGE_liveviewws[] PROGMEM = R"=====( +WLED Live Preview
)====="; + + // Autogenerated from wled00/data/404.htm, do not edit!! const char PAGE_404[] PROGMEM = R"=====(send_P(200, "text/html", PAGE_liveview); - }); + #ifdef WLED_ENABLE_WEBSOCKETS + server.on("/liveview", HTTP_GET, [](AsyncWebServerRequest *request){ + request->send_P(200, "text/html", PAGE_liveviewws); + }); + #else + server.on("/liveview", HTTP_GET, [](AsyncWebServerRequest *request){ + request->send_P(200, "text/html", PAGE_liveview); + }); + #endif //settings page server.on("/settings", HTTP_GET, [](AsyncWebServerRequest *request){