From d9e576c35c845e6c289e7dc3df3be23cefa6fccb Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Mon, 14 Aug 2023 22:56:58 +0200 Subject: [PATCH] Semi adjustable NTP polling interval. Fixes #3285 --- wled00/cfg.cpp | 1 + wled00/data/settings_time.htm | 7 + wled00/html_settings.h | 1505 +++++++++++++++++---------------- wled00/ntp.cpp | 3 +- wled00/set.cpp | 1 + wled00/wled.h | 5 +- wled00/xml.cpp | 9 + 7 files changed, 777 insertions(+), 754 deletions(-) diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index cafba6a0..aac084d6 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -481,6 +481,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { JsonObject if_ntp = interfaces[F("ntp")]; CJSON(ntpEnabled, if_ntp["en"]); getStringFromJson(ntpServerName, if_ntp[F("host")], 33); // "1.wled.pool.ntp.org" + CJSON(ntpSyncInterval, if_ntp[F("int")]); CJSON(currentTimezone, if_ntp[F("tz")]); CJSON(utcOffsetSecs, if_ntp[F("offset")]); CJSON(useAMPM, if_ntp[F("ampm")]); diff --git a/wled00/data/settings_time.htm b/wled00/data/settings_time.htm index 19316f7d..a5550098 100644 --- a/wled00/data/settings_time.htm +++ b/wled00/data/settings_time.htm @@ -171,6 +171,13 @@ Get time from NTP server:

Use 24h format:
+ NTP refresh: per day
Time zone: