I have been using my raspberrypi & camera as a security camera monitoring front drive.
For storage I use a large capacity USB memory stick.
After several days I receive an error as the stick is full and I have to delete files to make room.
So one question is - can i code for this? detect memory is nearly full and then have old files deleted automatically using code so that program doesn't come to a end?
I have a couple of external hard drives that I could use for storage instead.
Rather than connect a hard drive and have that running all day everyday I like the idea of using code to detect when my USB stick storage is full (about four days) then power up the hard drive using remote controlled power sockets; perform USB stick backup to hard drive, then wipe USB stick files, and power down hard drive.
unfortunately by the time I have worked out how to do this my Pi may be obsolete (slow learner)
or is there an easier way?