diff --git a/readme.md b/readme.md index 64b70bd9a..506f7de73 100644 --- a/readme.md +++ b/readme.md @@ -49,7 +49,7 @@ A fast and feature-rich implementation of an ESP8266/ESP32 webserver to control ## 📲 Quick start guide and documentation -See the [wiki](https://github.com/Aircoookie/WLED/wiki)! +See the [documentation on our official site](https://kno.wled.ge)! [On this page](https://github.com/Aircoookie/WLED/wiki/Learning-the-ropes) you can find excellent tutorials made by the community and helpful tools to help you get your new lamp up and running! diff --git a/tools/cdata.js b/tools/cdata.js index 8a9048435..ff5506c66 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -90,7 +90,7 @@ function writeHtmlGzipped(sourceFile, resultFile) { * Binary array for the Web UI. * gzip is used for smaller size and improved speeds. * - * Please see https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#web-ui + * Please see https://kno.wled.ge/advanced/custom-features/#changing-web-ui * to find out how to easily modify the web UI source! */ @@ -175,7 +175,7 @@ function writeChunks(srcDir, specs, resultFile) { let src = `/* * More web UI HTML source arrays. * This file is auto generated, please don't make any changes manually. - * Instead, see https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#web-ui + * Instead, see https://kno.wled.ge/advanced/custom-features/#changing-web-ui * to find out how to easily modify the web UI source! */ `; diff --git a/wled00/data/index.js b/wled00/data/index.js index fe3178ab2..4f19e0038 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -1612,9 +1612,8 @@ function setLor(i) { function setPreset(i) { var obj = {"ps": i}; - + if (isPlaylist(i)) obj.on = true; //force on showToast("Loading preset " + pName(i) +" (" + i + ")"); - requestJson(obj); } @@ -1647,6 +1646,7 @@ function saveP(i,pl) { } else { if (pl) { obj.playlist = plJson[i]; + obj.on = true; obj.o = true; } else { obj.ib = d.getElementById(`p${i}ibtgl`).checked; @@ -1662,10 +1662,10 @@ function saveP(i,pl) { requestJson(obj); if (obj.o) { pJson[pI] = obj; - delete pJson[pI].psave; - delete pJson[pI].o; - delete pJson[pI].v; - delete pJson[pI].time; + delete pJson[pI].psave; + delete pJson[pI].o; + delete pJson[pI].v; + delete pJson[pI].time; } else { pJson[pI] = {"n":pN, "win":"Please refresh the page to see this newly saved command."}; if (obj.win) pJson[pI].win = obj.win; @@ -1686,6 +1686,7 @@ function testPl(i,bt) { bt.innerHTML = "Stop"; var obj = {}; obj.playlist = plJson[i]; + obj.on = true; requestJson(obj); } diff --git a/wled00/data/settings_time.htm b/wled00/data/settings_time.htm index b9a396777..a3094b992 100644 --- a/wled00/data/settings_time.htm +++ b/wled00/data/settings_time.htm @@ -128,6 +128,7 @@ +
UTC offset: seconds (max. 18 hours)
Current local time is unknown.
diff --git a/wled00/html_other.h b/wled00/html_other.h index abad5e501..e0bf42175 100644 --- a/wled00/html_other.h +++ b/wled00/html_other.h @@ -1,7 +1,7 @@ /* * More web UI HTML source arrays. * This file is auto generated, please don't make any changes manually. - * Instead, see https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#web-ui + * Instead, see https://kno.wled.ge/advanced/custom-features/#changing-web-ui * to find out how to easily modify the web UI source! */ diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 2bacffd83..e15f04fd0 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -1,7 +1,7 @@ /* * More web UI HTML source arrays. * This file is auto generated, please don't make any changes manually. - * Instead, see https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#web-ui + * Instead, see https://kno.wled.ge/advanced/custom-features/#changing-web-ui * to find out how to easily modify the web UI source! */ @@ -349,14 +349,15 @@ CST(AWST)
-UTC offset: - seconds (max. 18 hours)
Current local time is unknown -.
Latitude (N): Longitude (E):

Clock

Clock Overlay: -
UTC offset: seconds (max. 18 hours)
+Current local time is unknown.
Latitude (N): + + Longitude (E): +

Clock

Clock Overlay:
First LED: Last LED: PI) { x -= PI; @@ -28,7 +28,7 @@ float cos_t(float x) float res = sign * (1 - ((xx) / (2)) + ((xx * xx) / (24)) - ((xx * xx * xx) / (720)) + ((xx * xx * xx * xx) / (40320)) - ((xx * xx * xx * xx * xx) / (3628800)) + ((xx * xx * xx * xx * xx * xx) / (479001600))); #ifdef WLED_DEBUG_MATH - Serial.printf("cos: %f,%f\n",res,cos(x)); + Serial.printf("cos: %f,%f,%f,(%f)\n",phi,res,cos(x),res-cos(x)); #endif return res; } @@ -36,7 +36,7 @@ float cos_t(float x) float sin_t(float x) { float res = cos_t(HALF_PI - x); #ifdef WLED_DEBUG_MATH - Serial.printf("sin: %f,%f\n",res,sin(x)); + Serial.printf("sin: %f,%f,%f,(%f)\n",x,res,sin(x),res-sin(x)); #endif return res; } @@ -46,7 +46,7 @@ float tan_t(float x) { if (c==0.0) return 0; float res = sin_t(x) / c; #ifdef WLED_DEBUG_MATH - Serial.printf("tan: %f,%f\n",res,tan(x)); + Serial.printf("tan: %f,%f,%f,(%f)\n",x,res,tan(x),res-tan(x)); #endif return res; } @@ -67,7 +67,7 @@ float acos_t(float x) { ret = ret - 2 * negate * ret; float res = negate * PI + ret; #ifdef WLED_DEBUG_MATH - Serial.printf("acos,%f,%f,%f\n",x,res,acos(x)); + Serial.printf("acos: %f,%f,%f,(%f)\n",x,res,acos(x),res-acos(x)); #endif return res; } @@ -75,7 +75,7 @@ float acos_t(float x) { float asin_t(float x) { float res = HALF_PI - acos_t(x); #ifdef WLED_DEBUG_MATH - Serial.printf("asin,%f,%f,%f\n",x,res,asin(x)); + Serial.printf("asin: %f,%f,%f,(%f)\n",x,res,asin(x),res-asin(x)); #endif return res; } @@ -121,7 +121,7 @@ float floor_t(float x) { int val = x; if (neg) val--; #ifdef WLED_DEBUG_MATH - Serial.printf("floor: %f,%f\n",val,floor(x)); + Serial.printf("floor: %f,%f,%f\n",x,(float)val,floor(x)); #endif return val; } @@ -130,7 +130,7 @@ float fmod_t(float num, float denom) { int tquot = num / denom; float res = num - tquot * denom; #ifdef WLED_DEBUG_MATH - Serial.printf("fmod: %f,%f\n",res,fmod(num,denom)); + Serial.printf("fmod: %f,%f,(%f)\n",res,fmod(num,denom),res-fmod(num,denom)); #endif return res; }