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

Feature discussion: save/restore all settings via browser #124

Open
datenheim opened this issue Jun 1, 2022 · 7 comments
Open

Feature discussion: save/restore all settings via browser #124

datenheim opened this issue Jun 1, 2022 · 7 comments

Comments

@datenheim
Copy link

While playing around with the system (Release-2022-05-24-08-14) and starting to modify some code lines (related to MQTT) I noted that all settings (module settings, rules, integrations etc.) are gone if a new firmware is uploaded to the controller (D1 mini in my case).

While this might be unavoidable due to ESP8266 and likely ESP32 it came to my mind that it would be great to just "download" the settings to some kind of file (maybe JSON).
Than after flashing the new binary one could restore all settings by "uploading" the formerly mentioned file.

Is there another way or workaround to achieve this?
How could that be implemented?

@atanisoft
Copy link

The esp32 controller has support for storage of configuration data on an SD card which is checked upon startup to load configuration data from.

@sglux
Copy link

sglux commented Jun 2, 2022

Thanks for that hint. I'll take a look, maybe it could be implemented here too.
Couldn't SPIFFS (or whatever it's called today) used for that?

@atanisoft
Copy link

SPIFFS is stored in flash, when flashing via the single binary method it will wipe flash prior to writing the new image so the SPIFFS data would be lost.

@sglux
Copy link

sglux commented Jun 2, 2022

Ok, then a SD-shield is mandatory. Maybe some code from the ESP32 implementation could be pulled over here... :)

@stuartpittaway
Copy link
Owner

stuartpittaway commented Jun 8, 2022

You could simply download the file via a web browser and then upload after the upgrade. No SD card required then.

@datenheim
Copy link
Author

datenheim commented Jun 9, 2022

You could simply download the file via a web browser and then upload after the upgrade. No SD card required then.

Hi Stuart,
I did not find any option in the GUI of the ESP8266 controller (Release-2022-05-24-08-14).
Do I miss something?

@stuartpittaway
Copy link
Owner

No you didn't miss anything, I was just mentioning that an SD card wasn't mandatory, other methods could be written.

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

No branches or pull requests

4 participants