-
Notifications
You must be signed in to change notification settings - Fork 97
_timezoneName never getting set? #51
Comments
Thanks for your interests in the library and some good research to come across the not-yet-implementation feature. To enable TZ, you have to enable in sketch
as you can see in the first image at So, how it works? The I think you can get the data easily from the HTML script ESP_WiFiManager.h #L155-L159 by writing some code to interface with HTML. Check similar way at handleRequest() I'm currently busy and have no time to deal with this issue. If possible, you can help and write some code to do that, then make a PR to merge into the library. Best Regards, |
Thank you so much for the prompt and helpful reply. I'll look into putting together a PR :) |
Hi @increpare Did you come up with the way to retrieve If not, please let me know so that I'll do it as there is a new request for that It's a coincidence that there are more people interested in this, so that we have to implement the feature soon. Regards, |
Hi, I already add the new requested feature and will publish new release within tomorrow. Hereafter is the debug terminal
|
Very nice. I didn't get around to implementing it in the end - I ended up throwing in a dropdown box with timezones instead (actually maybe not using this library, but a different one for some reason I can't remember), which was good enough for me. |
The ESPAsync_WiFiManager Releases v1.8.0 has just been published to update _timezoneName and more. I'll update this ESP_WiFiManager to include the same features. Your enhancement request / bug report, leading to new v1.8.0, has also been noted in Contributions and Thanks Major Releases v1.8.0
|
The new feature will provide the complex TZ ( for example
The debug terminal outputs 1. ESP8266
2. ESP32
|
### Major Releases v1.7.0 1. Add auto-Timezone feature with variable `_timezoneName` (e.g. `America/New_York`) and function to retrieve TZ (e.g. `EST5EDT,M3.2.0,M11.1.0`) to use directly to configure ESP32/ESP8266 timezone. Check [How to retrieve timezone? #51](khoih-prog/ESPAsync_WiFiManager#51) for more info. 2. Store those `_timezoneName` and `TZ` in LittleFS or SPIFFS config file. 3. Using these new timezone feature is optional. 4. Add checksum in config file to validate data read from LittleFS or SPIFFS config file. 5. Update examples to show how to use the new TZ feature.
### Major Releases v1.7.0 1. Add auto-Timezone feature with variable `_timezoneName` (e.g. `America/New_York`) and function to retrieve TZ (e.g. `EST5EDT,M3.2.0,M11.1.0`) to use directly to configure ESP32/ESP8266 timezone. Check [How to retrieve timezone? #51](khoih-prog/ESPAsync_WiFiManager#51) for more info. 2. Store those `_timezoneName` and `TZ` in LittleFS or SPIFFS config file. 3. Using these new timezone feature is optional. 4. Add checksum in config file to validate data read from LittleFS or SPIFFS config file. 5. Update examples to show how to use the new TZ feature.
Hi, wonderful project! :)
Is it me or is the detected timezone never finding its way to the ESP, despite _timezoneName being defined but unused in https://github.com/khoih-prog/ESP_WiFiManager/blob/master/src_cpp/ESP_WiFiManager.h#L517 ?
(If the "bug" is that the line should just be deleted, if you could give me a hint as to if there's some way to access the timezone that I'm missing, I'd appreciate it :) ).
The text was updated successfully, but these errors were encountered: