-
Notifications
You must be signed in to change notification settings - Fork 139
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
Comments
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. |
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? |
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.
The text was updated successfully, but these errors were encountered: