OpenScanEu/OpenScan

SD card corruption and possible workouts

Closed this issue · 1 comments

Hi, lately I have had a lot of SD card (trashing) corruption using Openscan. I use Sandisk Ultra SD cards. Looking for recommendations, anyone?

HW problems apart, I think it goes by:

  • Having Openscan making preview capturing all the time, even when the web frontpage is not loaded. A more conservative approach could be only capture preview on demand or whenever web page is active (via ping/pong, websocket)
  • Using Zip files to store the captures. Maybe a configurable output folder AND choosing if compressed or not would let using regular USB key/sdd to store the photos
  • Using ramdisk instead FS, for preview or to stream contents as a queue to an external server (Google Drive, S3, another host) (https://iotassistant.io/raspberry-pi/writing-to-file-on-ram-disk-on-raspberry-pi/)

Close issue as is already documented on pull request