mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 23:07:19 +00:00
Increased JSON buffer to 9k.
Removed daytime symbol from info page.
This commit is contained in:
parent
5f17d30973
commit
4127882e5f
@ -228,7 +228,7 @@
|
|||||||
|
|
||||||
// Size of buffer for API JSON object (increase for more segments)
|
// Size of buffer for API JSON object (increase for more segments)
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
#define JSON_BUFFER_SIZE 8192
|
#define JSON_BUFFER_SIZE 9216
|
||||||
#else
|
#else
|
||||||
#define JSON_BUFFER_SIZE 16384
|
#define JSON_BUFFER_SIZE 16384
|
||||||
#endif
|
#endif
|
||||||
|
@ -937,7 +937,7 @@ input[type=number]::-webkit-outer-spin-button {
|
|||||||
|
|
||||||
.lstI.selected {
|
.lstI.selected {
|
||||||
background: var(--c-5);
|
background: var(--c-5);
|
||||||
top: 136px;
|
top: 135px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -557,7 +557,7 @@ function populateInfo(i)
|
|||||||
${urows}
|
${urows}
|
||||||
${inforow("Build",i.vid)}
|
${inforow("Build",i.vid)}
|
||||||
${inforow("Signal strength",i.wifi.signal +"% ("+ i.wifi.rssi, " dBm)")}
|
${inforow("Signal strength",i.wifi.signal +"% ("+ i.wifi.rssi, " dBm)")}
|
||||||
${inforow("Uptime",getRuntimeStr(i.uptime),(i.isday==null?"":" <span class='icons'>"+(i.isday?"":"")+"</span>"))}
|
${inforow("Uptime",getRuntimeStr(i.uptime))}
|
||||||
${inforow("Free heap",heap," kB")}
|
${inforow("Free heap",heap," kB")}
|
||||||
${inforow("Estimated current",pwru)}
|
${inforow("Estimated current",pwru)}
|
||||||
${inforow("Average FPS",i.leds.fps)}
|
${inforow("Average FPS",i.leds.fps)}
|
||||||
|
3243
wled00/html_ui.h
3243
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
@ -533,7 +533,6 @@ void serializeInfo(JsonObject root)
|
|||||||
|
|
||||||
root[F("freeheap")] = ESP.getFreeHeap();
|
root[F("freeheap")] = ESP.getFreeHeap();
|
||||||
root[F("uptime")] = millis()/1000 + rolloverMillis*4294967;
|
root[F("uptime")] = millis()/1000 + rolloverMillis*4294967;
|
||||||
if (sunrise && sunset) root[F("isday")] = daytime;
|
|
||||||
|
|
||||||
usermods.addToJsonInfo(root);
|
usermods.addToJsonInfo(root);
|
||||||
|
|
||||||
|
@ -268,7 +268,6 @@ void checkTimers()
|
|||||||
|
|
||||||
// re-calculate sunrise and sunset just after midnight
|
// re-calculate sunrise and sunset just after midnight
|
||||||
if (!hour(localTime) && minute(localTime)==1) calculateSunriseAndSunset();
|
if (!hour(localTime) && minute(localTime)==1) calculateSunriseAndSunset();
|
||||||
if (sunrise && sunset) daytime = difftime(localTime, sunrise) > 0 && difftime(localTime, sunset) < 0;
|
|
||||||
|
|
||||||
DEBUG_PRINTF("Local time: %02d:%02d\n", hour(localTime), minute(localTime));
|
DEBUG_PRINTF("Local time: %02d:%02d\n", hour(localTime), minute(localTime));
|
||||||
for (uint8_t i = 0; i < 8; i++)
|
for (uint8_t i = 0; i < 8; i++)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2103301
|
#define VERSION 2103311
|
||||||
|
|
||||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
@ -511,7 +511,6 @@ WLED_GLOBAL unsigned long ntpPacketSentTime _INIT(999000000L);
|
|||||||
WLED_GLOBAL IPAddress ntpServerIP;
|
WLED_GLOBAL IPAddress ntpServerIP;
|
||||||
WLED_GLOBAL uint16_t ntpLocalPort _INIT(2390);
|
WLED_GLOBAL uint16_t ntpLocalPort _INIT(2390);
|
||||||
WLED_GLOBAL uint16_t rolloverMillis _INIT(0);
|
WLED_GLOBAL uint16_t rolloverMillis _INIT(0);
|
||||||
WLED_GLOBAL bool daytime _INIT(false);
|
|
||||||
WLED_GLOBAL float longitude _INIT(0.0);
|
WLED_GLOBAL float longitude _INIT(0.0);
|
||||||
WLED_GLOBAL float latitude _INIT(0.0);
|
WLED_GLOBAL float latitude _INIT(0.0);
|
||||||
WLED_GLOBAL time_t sunrise _INIT(0);
|
WLED_GLOBAL time_t sunrise _INIT(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user