Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different retention policies for the same camera based on zone #3487

Open
ediguidedog opened this issue Jul 18, 2022 · 7 comments
Open

Different retention policies for the same camera based on zone #3487

ediguidedog opened this issue Jul 18, 2022 · 7 comments
Labels
enhancement New feature or request pinned

Comments

@ediguidedog
Copy link

Describe what you are trying to accomplish and why in non technical terms
I want to be able to have different retention policies for the same camera based on zone. In other words my front camera covers both my front garden and the street and I want to retain any activity in my garden for 21 days. However being a nosey good neighbour I want to keep an eye on the street but only want to retain the recordings for say 3 days.

Describe the solution you'd like
Additional configuration options to define the retention period based on zone & object rather than just object types

    record:
        events:
            required_zones:
                - the roadway
                - my path
            objects:
                - person
                - car
            retain:
                zones: 
                    the roadway:
                         objects:
                             car: 2
                             person: 3
                    my path:
                          objects:
                            person: 21

Or another way if better as this may well lead to an exponential growth of the config files

Describe alternatives you've considered
I can do this with a second camera utilising the rtmp feed from the first camera but it's messy and increases the processing load

Additional context
Hopefully this helps if I haven't explained. I want to retain events in my property for one period and outside retain for a different period
Untitled-1

@ediguidedog ediguidedog added the enhancement New feature or request label Jul 18, 2022
@NickM-27
Copy link
Sponsor Collaborator

How do you suggest this works if an object is detected in multiple zones?

I agree that exponentially growing config file is a concern, the request makes sense though

@ediguidedog
Copy link
Author

How do you suggest this works if an object is detected in multiple zones?

I agree that exponentially growing config file is a concern, the request makes sense though

I guess the longest zone retention policy would win. So to use my examples
If someone was just in the roadway it would be 3 days but if they then stepped foot onto my path it would increase to 21

@stale
Copy link

stale bot commented Aug 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 31, 2022
@eagleco
Copy link

eagleco commented Jan 18, 2024

Found this after searching for the same feature, here's another vote in support of zone specific retention configuration.

@nwish
Copy link

nwish commented Jan 24, 2024

For what it's worth, I would like to see this implemented as well, with pretty much the same use case as the OP.

@ctml91
Copy link

ctml91 commented Mar 9, 2024

Also interested in this for the same reason. Would like to retain events from the street for a shorter duration than events that take place on my property. Currently I don't create a zone off property like the blue region in OPs screenshot as I don't have enough storage to retain events for a long period as they are much more frequent due to cars, etc.

I would also like to set different pre_capture/post_capture per zone.

@bubba925
Copy link

I would be interested in this as well for the same reason. Currently only retain about 10 days of events but would probably keep the street retention even less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

7 participants