EliasKotlyar / Xiaomi-Dafang-Hacks

4.16k stars 1k forks source link

Minimize writes to SD card #1834

Open carefulcomputer opened 1 year ago

carefulcomputer commented 1 year ago

Currently I turn on and off my wyze cams using home automation (i.e. turn on cams when I am out of home). I use smart switches to turn cameras on/off. However this causes a problem since dafang hacks crashes when it is turned off without proper shutdown and makes the sd card go in read-only mode. I am wondering if you can make sure to minimize the writes to SD card (i.e. no logs/images etc) are written ? That way even when system is restarted abruptly, it won't make card into read-only mode ? One additional benefit will be , sd cards will last lot longer.