Frigate - How to limit the number of Events Photos and clean the history

Hi

I’m using HASSOS with Frigate Add-on on a Proxmox
I noriced that my Local-Lvm storage is getting full and I think it’s due to the high number of Frigate Events (Photo visible in Frigate event list or in MediaBowser in Frigate/ folder)
I searched but didn’t find a solution to limit the number of events in Frigate and also how to delete the previous events to clean the database and get back more free space

Any idea how to proceed there ?

Thanks

I’m new to Frigate (2 days in) so not experienced this yet. But have you set your retain for clips and snapshots

The docs mention retain for clips, which by default is 10 (days). I would assume that setting this lower would purge older clips then.
Although the docs don’t mention it, I’ve set retain for snapshots too which I must have seen in the tutorial I used during setup.

Hi
Nothing was configured for snapshot and record in my Frigate.yaml file
I cut and paste the Snapshot code from the documentation to force Retention limit, but same result

I searched also for /media/frigate/clips folder but there is no JPG file there
I also searched for frigate.db file, but I cannot find it

Where are store the Snapshot files (I mean the Frigate EVENT snapshot) ?

P.S :

  • I look also into the MEDIA BROWSER (folder Frigate) : I have 2 folders CLIPS and RECORDING but both are empty
  • I look also into the MEDIA BROWSER (folder LOCAL MEDIA): I have 1 folder FRIGATE wirth Subfolder CLIPS and RECORDING. If I click on CLIPS, I can find all my snapshots jpg files, but cannot delete them from there. Where can I found those file on my storage ? I search *.jpg file but nothing present there.

Any idea ?

1 Like

As I said previously, im new to Frigate so sorry if I have you barking up the wrong tree.

How low did you set the retention limit? I think 10 was a default anyway so unless set lower than this you wouldnt see a difference?

When you talk about searching for JPG files and being unable to find them. How are you searching?

I can view my files at

Media Browser > Local Media > Frigate > Clips
and also
Media Browser > Frigate > Clips

Im unsure as just quickly checked if they are showing the same files.

I can locate files at
/hassio/media/frigate/clips - mine is taking about 800mb

/hassio/ will be the folder that contains your homeassistant folder too.

Same thing with me. It’s the one in Local Media. My problem is Frigate is so forgiving with the YAML, I don’t know where to put things like clips so I’ve been putting it under the camera to try to make it per camera, that didn’t work, I just moved it to base of the yaml and it succeeded. Now I just need a person to walk by…

Hi guys, any updates on this one?
I’m running Frigate on Ubuntu and my LVM is getting full each time (that’s the second time I extended the logical drive, what is filling this up? can’t we run some sort of cleanup to reclaim that storage again?

Thanks,
Didi