mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 22:37:18 +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)
|
||||
#ifdef ESP8266
|
||||
#define JSON_BUFFER_SIZE 8192
|
||||
#define JSON_BUFFER_SIZE 9216
|
||||
#else
|
||||
#define JSON_BUFFER_SIZE 16384
|
||||
#endif
|
||||
|
@ -937,7 +937,7 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
|
||||
.lstI.selected {
|
||||
background: var(--c-5);
|
||||
top: 136px;
|
||||
top: 135px;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
|
@ -557,7 +557,7 @@ function populateInfo(i)
|
||||
${urows}
|
||||
${inforow("Build",i.vid)}
|
||||
${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("Estimated current",pwru)}
|
||||
${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("uptime")] = millis()/1000 + rolloverMillis*4294967;
|
||||
if (sunrise && sunset) root[F("isday")] = daytime;
|
||||
|
||||
usermods.addToJsonInfo(root);
|
||||
|
||||
|
@ -268,7 +268,6 @@ void checkTimers()
|
||||
|
||||
// re-calculate sunrise and sunset just after midnight
|
||||
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));
|
||||
for (uint8_t i = 0; i < 8; i++)
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
// 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
|
||||
//#define WLED_USE_MY_CONFIG
|
||||
@ -511,7 +511,6 @@ WLED_GLOBAL unsigned long ntpPacketSentTime _INIT(999000000L);
|
||||
WLED_GLOBAL IPAddress ntpServerIP;
|
||||
WLED_GLOBAL uint16_t ntpLocalPort _INIT(2390);
|
||||
WLED_GLOBAL uint16_t rolloverMillis _INIT(0);
|
||||
WLED_GLOBAL bool daytime _INIT(false);
|
||||
WLED_GLOBAL float longitude _INIT(0.0);
|
||||
WLED_GLOBAL float latitude _INIT(0.0);
|
||||
WLED_GLOBAL time_t sunrise _INIT(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user