Add object detection, tracking, mobile notifications, and search to any security camera.
1 min to 10 mins
roryclear1e72f58a4dca
diff --git a/clearcam.py b/clearcam.pyindex 9ec1033..58de3cb 100644--- a/clearcam.py+++ b/clearcam.py@@ -3025,7 +3025,7 @@ class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):self._check_and_cleanup_storage()except Exception as e:print(f"Cleanup error: {e}")- self.cleanup_stop_event.wait(timeout=60) # Check every 10 min+ self.cleanup_stop_event.wait(timeout=600) # Check every 10 mindef _check_and_cleanup_storage(self):total_size = sum(f.stat().st_size for f in CAMERA_BASE_DIR.glob('**/*') if f.is_file())