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

A feature request involving timezone rather than an issue #414

Open
jds11111 opened this issue Nov 15, 2020 · 2 comments
Open

A feature request involving timezone rather than an issue #414

jds11111 opened this issue Nov 15, 2020 · 2 comments

Comments

@jds11111
Copy link

There are hundreds of different timezones, and these must change frequently given how often my linux machines update tzdata. Also, setting the timezone correctly in tasmota is more complicated than editing a crontab. I believe that the latter has a lot to do with the memory limitations in ESP devices. So, it sounds like an issue for a simple script outside of tasmota and tasmoadmin seems well suited for the purpose.

All of the necessary data are in tzdata, so it would seem straightforward to have a script that translates that data into the console command that sets the proper timezone for your device. One simply inputs the timezone, and the script calculates the correct timezone commands for the console. If you wanted to be even more fancy, it could take just your coordinates, find your timezone, and program your timezone correctly, and add your latitude and longitude as well. Since home assistant already knows you coordinates, it could even do the whole thing pretty automatically.

Just a suggestion that would be a real time saver for many people. If there is a better place to put this request, please me me know, or I can just delete this.

@inverse
Copy link
Collaborator

inverse commented Nov 14, 2022

Having something automated around this would be problematic since the application doesn't have any cron like functionality to update the TZ of the devices automatically.

We could expose an endpoint to send a command to all devices that could be called to do that?

Right now we can do that on a per device basis or to all devices via the UI - but no API.

@jds11111
Copy link
Author

The automation that seems most useful to me is one that converts the information in the tz data to the format used in Tasmota for setting the correct time with changes. This doesn't need to be done regularly, or maybe even more than once. That could probably be sent to all devices via MQTT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants