Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic DST switching #29

Open
flcu opened this issue Mar 28, 2021 · 4 comments
Open

Automatic DST switching #29

flcu opened this issue Mar 28, 2021 · 4 comments
Labels
Blocked Progress is blocked by a different issue. SW Enhancement New feature or request for software.

Comments

@flcu
Copy link
Contributor

flcu commented Mar 28, 2021

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:

  • Using an external service

  • Reimplement: Putting a timezone JSON on the clock and allow selection of current TZ

  • Using a library to implement the switch

  • ?

  • Check once an hour if DST has changed

@BlueAndi
Copy link
Owner

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 BlueAndi added the SW Enhancement New feature or request for software. label Mar 28, 2021
@BlueAndi
Copy link
Owner

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
Copy link
Owner

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: espressif/newlib-esp32#8

@BlueAndi BlueAndi added the Blocked Progress is blocked by a different issue. label May 2, 2021
@BlueAndi
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Progress is blocked by a different issue. SW Enhancement New feature or request for software.
Projects
None yet
Development

No branches or pull requests

2 participants