-
Notifications
You must be signed in to change notification settings - Fork 98
Feature Request! Firmware and Data (SPIFFS) update OTA and NTP Timezone #5
Comments
Hi Sam,
Regards, |
|
|
Yes please. About the jstz, is that possible to use the one from: https://github.com/pellepim/jstimezonedetect Your screen design is so impressive. |
Do you plan to use file system or embed the html in the code (progmem)? I think it is easier serving html from FS. I don't know if you want to touch wifimanager part which have embedded html. Or we can have html serving from spiffs after wifi connected. Then you dont have to intergrate jstz in the code. |
I think we'll embed the html in the code progmem. This way it's easier for user to use and modify. We'll also provide option to have We'll include both and configurable by user. Anyway, these htmls are just String or const char[], and we can have them directly from progmem or read from SPIFFS. Some issues for SPIFFS
What do you think? |
I thought leaving HTML out would be better for library. User can edit their own web interface without update code in library. FSBrowser, in the code there is route for REST api ( |
But the con is that user later has to manually and inconveniently upload files for each board. The TZ script is also very short, progmem is a good choice.
So, we'll go with embedded option for TZ now. Later we will add optional FSBrowser feature to let user add / modify config files and/or html / scripts for other purpose, not for TZ. Cheers, |
Dear @khoih-prog Thanks and Best Regards, |
Dear @mikekgr
Can you point to some OTA library code you're using reliably? Regards, |
Thanks and Best Regards, |
Dear @mikekgr Got the OTA sample codes for ESP32 and ESP8266. Compiled OK. Will test and find a way to include into the library. You did a great work there for the community. Thanks and Regards, |
Could you have a look at the new library https://github.com/yknivag/ESP_OTA_GitHub
it permits safe OTA from GitHub and let me know your thought which one we'll like to go
Regards, |
Hi KH, I would like ESP to be able to turn on/off at specific local time ie turn on at 6am everyday (no need to change even when it is Daylight Saving Time). Timezone setting page could be at the same as Wifi setting or page after successfully connect to wifi where OTA update should be. Cheers, EDIT: Here is stripped down version of example NTP-TZ_DST.ino
Here js to create dropdown list of timezone:
BTW, I don't run js to auto detect timezone in case user already set timezone for it. |
Hi Khoi,
It would be great if you include OTA update as well.
I think it should be separate from Wifi page.
So, after connected to local network, show different page for update and/or custom config.
I think it will be most complete starter library for ESP. Who doesn't want to be able to update over the air :) when you have wifi.
Maybe include ntp like NTP-TZ-DST.ino too. I think it should be basic features needed for every esp.
Cheers,
Sam
The text was updated successfully, but these errors were encountered: