From b852cbdc809f48b03d20006040e6c17c3f65e4f3 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sun, 26 Sep 2021 17:12:13 +0200 Subject: [PATCH] Novosibirsk time-zone. --- wled00/data/settings_time.htm | 1 + wled00/html_settings.h | 49 ++++++++++++++++++----------------- wled00/ntp.cpp | 6 +++++ wled00/wled.h | 2 +- 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/wled00/data/settings_time.htm b/wled00/data/settings_time.htm index c01d948b..8005cdbf 100644 --- a/wled00/data/settings_time.htm +++ b/wled00/data/settings_time.htm @@ -130,6 +130,7 @@ +
UTC offset: seconds (max. 18 hours)
Current local time is unknown.
diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 92dd74f1..5bbb9093 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -352,30 +352,31 @@ US-MST/MDT
UTC offset: seconds (max. 18 hours)
Current local time is unknown.
Latitude (N): Longitude (E):

Clock

Clock Overlay:
First LED: Last LED:
12h LED:
Show 5min marks:
-
Seconds (as trail):
Cronixie Display:
-Cronixie Backlight:
Countdown Mode: -
Countdown Goal:
Year: 20 Month: Day:
Hour: Minute: Second:

-Macro presets

Macros have moved!
+
UTC offset: + + seconds (max. 18 hours)
Current local time is unknown +.
Latitude (N): Longitude (E):
+

Clock

Clock Overlay:
First LED: + Last LED:
12h LED: +
Show 5min marks: +
Seconds (as trail):
Cronixie Display:
Cronixie Backlight:
Countdown Mode:
+Countdown Goal:
Year: 20 Month: Day:
Hour: Minute: Second:

Macro presets

+Macros have moved!
Presets now also can be used as macros to save both JSON and HTTP API commands.
Just enter the preset id below!
Use 0 for the default action instead of a preset
Alexa On/Off Preset: diff --git a/wled00/ntp.cpp b/wled00/ntp.cpp index fc0f5511..f5298044 100644 --- a/wled00/ntp.cpp +++ b/wled00/ntp.cpp @@ -40,6 +40,7 @@ Timezone* tz; #define TZ_AUSTRALIA_NORTHERN 16 #define TZ_AUSTRALIA_SOUTHERN 17 #define TZ_HAWAII 18 +#define TZ_NOVOSIBIRSK 19 #define TZ_INIT 255 byte tzCurrent = TZ_INIT; //uninitialized @@ -140,6 +141,11 @@ void updateTimezone() { tcrStandard = tcrDaylight; break; } + case TZ_NOVOSIBIRSK : { + tcrDaylight = {Last, Sun, Mar, 1, 420}; //CST = UTC + 7 hours + tcrStandard = tcrDaylight; + break; + } } tzCurrent = currentTimezone; diff --git a/wled00/wled.h b/wled00/wled.h index 20602c00..2b792426 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2109241 +#define VERSION 2109261 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG