MikeGawi / ePiframe

ePiframe is an e-Paper (or HDMI, Composite display) Raspberry Pi Photo Frame with Google Photos and more
GNU General Public License v3.0
63 stars 10 forks source link

Losing settings on power loss #65

Closed motoxcrazy closed 2 years ago

motoxcrazy commented 2 years ago

Not sure if an issue or something up with my rPi, but we live rurally and have had a number of failures recently. When the rPi reboots it seems to retain the Google credentials but not any of the other settings (Randomize, filtered album, telegram bot etc.) Any ideas on what I should do to troubleshoot? My current fix is to reload the config file after renabling Web interface via ssh.

MikeGawi commented 2 years ago

Thanks for the issue! I will check that as that can happen when file is inaccessible or blocked (concurrency?) and then the default settings are loaded. I will get back to you.

MikeGawi commented 2 years ago

I think I've found the issue: with WebUI working the config file is frequently checked for changes and during entries load it (preventively) saves it as some conversions/changes could occur. This saving and frequent loading may block the file so it will load just default values.