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 c79ff2c1..045da956 100644
--- a/wled00/ntp.cpp
+++ b/wled00/ntp.cpp
@@ -30,6 +30,7 @@ Timezone* tz;
#define TZ_AUSTRALIA_SOUTHERN 17
#define TZ_HAWAII 18
#define TZ_NOVOSIBIRSK 19
+#define TZ_ANCHORAGE 20
#define TZ_INIT 255
byte tzCurrent = TZ_INIT; //uninitialized
@@ -135,6 +136,11 @@ void updateTimezone() {
tcrStandard = tcrDaylight;
break;
}
+ case TZ_ANCHORAGE : {
+ tcrDaylight = {Second, Sun, Mar, 2, -480}; //AKDT = UTC - 8 hours
+ tcrStandard = {First, Sun, Nov, 2, -540}; //AKST = UTC - 9 hours
+ break;
+ }
}
tzCurrent = currentTimezone;