BlueAndi / esp-rgb-led-matrix

Full RGB LED matrix, based on an ESP32 and WS2812B LEDs.
MIT License
293 stars 59 forks source link

Automatic DST switching #29

Open flcu opened 3 years ago

flcu commented 3 years ago

In order to be able to leave the clock running 24x7x365 without any maintenance, I suggest to implement automatic DST detection and switching.

Several options exist:

BlueAndi commented 3 years ago

Will have a look what's the best here. I know that e.g. https://github.com/nayarsystems/posix_tz_db provides a json file with all necessary data, which could be used via configTzTime() in the ClockDrv module.

BlueAndi commented 3 years ago

Implemented the possibility to use the POSIX timezone string. Currently there is no drop-down where to choose the timezone, but may come in the future. Currently the settings are generic, without exceptions in the corresponding HTML code. Have to think about how to integrate it there.

BlueAndi commented 3 years ago

Unfortunately the usage of timezone strings causes now in the SunrisePlugin a problem with the conversion from gmt to localtime. The problem is in the newlib, where localtime() is located. Issue opened: https://github.com/espressif/newlib-esp32/issues/8

BlueAndi commented 2 years ago

Fixed in https://github.com/espressif/crosstool-NG/releases/tag/esp-2022r1-RC1