kjmapr26
Posts: 1
Joined: Sat Nov 26, 2016 4:53 pm

Create a FIFO Directory

Sat Nov 26, 2016 5:03 pm

Hello,

I am working on creating a security camera using a Pi Zero, a PIR motion sensor, and the PiCam. I'm using python to run the motion sensor and the camera but I want to save the images captured in a first in first out FIFO folder or directory and I am not sure the best way to go about this. The goal is that when the SD card is full of images, the newest image taken by the camera replaces the oldest image so I do not have to monitor the status of the memory on the card while the camera is in operation. If anyone could point me in the right direction that would be great!

Thanks!

User avatar
karrika
Posts: 1125
Joined: Mon Oct 19, 2015 6:21 am
Location: Finland

Re: Create a FIFO Directory

Sat Nov 26, 2016 6:53 pm

I am not aware of any automatic fifo directories. One way to deal with this could be to list the files by creation time and remove the oldest one.

Return to “Beginners”