Nick Mowen
0a623bbb41
Incorrect boolean logic
2022-10-08 18:47:05 -06:00
Nick Mowen
aab5d28f8a
Fix test
2022-10-08 18:47:05 -06:00
Nick Mowen
08d5cd38a5
Add test to cover zero bandwidth migration case
2022-10-08 18:47:05 -06:00
Nick Mowen
0d4118f590
Catch case where camera has 0 nonzero segment durations
2022-10-08 18:47:05 -06:00
Nick Mowen
3af9929e1d
Only include segments that have a nonzero size
2022-10-08 18:47:05 -06:00
Nick Mowen
573c840ec6
Update comment
2022-10-08 18:47:05 -06:00
Nick Mowen
c8eb85b7c6
Update name
2022-10-08 18:47:05 -06:00
Nick Mowen
870e09e0da
Set back correct loop time
2022-10-08 18:47:05 -06:00
Nick Mowen
3411f47ca1
Formatting
2022-10-08 18:47:05 -06:00
Nick Mowen
0ebd678ac3
Improve logging
2022-10-08 18:47:05 -06:00
Nick Mowen
94ce11e162
Add another test
2022-10-08 18:47:05 -06:00
Nick Mowen
ce87afc027
Fix bugs from tests
2022-10-08 18:47:04 -06:00
Nick Mowen
797f3a57d3
Fix existing tests
2022-10-08 18:47:04 -06:00
Nick Mowen
8a32071790
Rewrite storage cleanup logic to be much more efficient
2022-10-08 18:47:04 -06:00
Nick Mowen
dfb9d9ce70
Remove total and other inefficencies
2022-10-08 18:47:04 -06:00
Nick Mowen
71f2bb042b
Rework camera stats to be more efficient
2022-10-08 18:47:04 -06:00
Nick Mowen
1dbe02cbd0
Get size of file from cache
2022-10-08 18:47:02 -06:00
Nick Mowen
132274579c
Don't run for a camera with no recording segments
2022-10-08 18:44:56 -06:00
Nick Mowen
ac03e842bc
Format tests
2022-10-08 18:44:56 -06:00
Nick Mowen
f310b2a931
Add tests for storage maintenance calculation and cleanup
2022-10-08 18:44:56 -06:00
Nick Mowen
6d40c8492a
Add note about storage based retention to recording docs
2022-10-08 18:44:56 -06:00
Nick Mowen
9f2faa0c1b
Remove warning about not supported storage based retention
2022-10-08 18:44:56 -06:00
Nick Mowen
d6d2fb848b
Increase definition of part time recorder
2022-10-08 18:44:56 -06:00
Nick Mowen
4d9040b49f
Handle edge case for cameras that only record part time
2022-10-08 18:44:56 -06:00
Nick Mowen
959c648ac9
Specifically define sort
2022-10-08 18:44:56 -06:00
Nick Mowen
6502a52225
Catch case where no recordings exist for camera
2022-10-08 18:44:56 -06:00
Nick Mowen
310aa0d3f0
Fix typo and improve logging
2022-10-08 18:44:56 -06:00
Nick Mowen
1396cd7b44
Formatting
2022-10-08 18:44:56 -06:00
Nick Mowen
1743823e3e
Improve cleanup log
2022-10-08 18:44:56 -06:00
Nick Mowen
fce03ec90e
Handle case where segments are not deleted on initial run or is only retained segments
2022-10-08 18:44:56 -06:00
Nick Mowen
4895e69a28
Cleanup some comments
2022-10-08 18:44:56 -06:00
Nick Mowen
d7ef31d05e
Round segment size
2022-10-08 18:44:54 -06:00
Nick Mowen
aa48e7f054
Fix bug
2022-10-08 18:44:33 -06:00
Nick Mowen
46ec2c77dd
Formatting
2022-10-08 18:44:33 -06:00
Nick Mowen
9d4aef0e03
Cleanup 2 hours of recordings at a time
2022-10-08 18:44:33 -06:00
Nick Mowen
4b41842aae
Remove unused files
2022-10-08 18:44:33 -06:00
Nick Mowen
1284e3edaa
Keep track of total segment and hour averages
2022-10-08 18:44:31 -06:00
Nick Mowen
384595f5e6
Formatting
2022-10-08 18:43:38 -06:00
Nick Mowen
c3387effe0
Store segment and hour avg sizes per camera
2022-10-08 18:43:38 -06:00
Nick Mowen
ad9227e0e6
Update comment
2022-10-08 18:43:38 -06:00
Nick Mowen
ddf35495f5
Add storage maintainer and calculate average sizes
2022-10-08 18:43:38 -06:00
Nick Mowen
3186046d45
Start adding storage maintainer
2022-10-08 18:43:36 -06:00
Nick Mowen
476d011c55
Include segment size in recordings endpoint
2022-10-08 18:42:34 -06:00
Nick Mowen
23a32f9898
Fix size parsing
2022-10-08 18:42:31 -06:00
Nick Mowen
a50534ebc6
Add default
2022-10-08 18:41:18 -06:00
Nick Mowen
4f41e7df86
Add comment
2022-10-08 18:41:18 -06:00
Nick Mowen
52b9614db2
Store the segment size in db
2022-10-08 18:41:11 -06:00
Nick Mowen
bb3aee3698
Add field and migration for segment size
2022-10-08 18:38:20 -06:00
Blake Blackshear
3c01dbed7d
increment version
2022-10-08 19:32:45 -05:00
Jörg Menke
2eada219cd
Restructured camera specific documentation ( #4005 )
...
* Restructured camera specific documentation
* Make room for manufacture specific docs
* Added initial (more or less) working setup for Annke C800 camera
* Update docs/docs/configuration/camera_specific.md
remove tracking settings from example
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
* Moved unify and blue iris cams examples
* headline cleanup
* removed doubled headline in advanced options
* changed headline level for camera specific setup to make headlines
show up in toc
* removed specific optimizations not related to cam
* more generic phrasing
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2022-10-07 21:15:12 -05:00