From aa51e224f882202e89b12c8583539795c6d8d6ad Mon Sep 17 00:00:00 2001 From: Chris King Date: Tue, 4 Feb 2025 02:22:38 -0800 Subject: [PATCH] Add network bandwidth monitoring for frigate Add Frigate+ API key to enable image annotation/upload Adjust doorbell motion parameters Adjust detect stationary threshold Enable recording retention for all 3 days and 30 days for motion --- frigate/config/config.yaml | 22 ++++++++++++++++++---- frigate/docker-compose.yml | 9 +++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/frigate/config/config.yaml b/frigate/config/config.yaml index b00985c..744ca9e 100644 --- a/frigate/config/config.yaml +++ b/frigate/config/config.yaml @@ -119,8 +119,8 @@ cameras: - 0.79,0.003,0.79,0.035,0.82,0.035,0.82,0.003 - 0.828,0.003,0.828,0.035,0.858,0.035,0.858,0.003 - 0.866,0.003,0.866,0.035,0.896,0.035,0.896,0.003 - threshold: 35 - contour_area: 15 + threshold: 30 + contour_area: 18 improve_contrast: true version: 0.14 camera_groups: @@ -139,9 +139,23 @@ camera_groups: detect: stationary: interval: 50 - threshold: 40 + threshold: 50 snapshots: enabled: True retain: - default: 30 \ No newline at end of file + default: 30 + +record: + enabled: True + retain: + days: 3 + mode: all + events: + retain: + default: 30 + mode: motion + +telemetry: + stats: + network_bandwidth: True \ No newline at end of file diff --git a/frigate/docker-compose.yml b/frigate/docker-compose.yml index 0fd3361..ef8b73c 100644 --- a/frigate/docker-compose.yml +++ b/frigate/docker-compose.yml @@ -4,6 +4,9 @@ services: restart: unless-stopped #image: ghcr.io/blakeblackshear/frigate:stable image: gitea.tremendousturtle.tools/chris/frigate:v0.14.1-web-admin-088ff992 + cap_add: + - NET_ADMIN + - NET_RAW shm_size: "250mb" devices: - /dev/apex_0:/dev/apex_0 # Passes a PCIe Coral @@ -28,6 +31,8 @@ services: - "5000:5000" # VS Code schema validation allowed expose: - "8971" + secrets: + - PLUS_API_KEY environment: LIBVA_DRIVER_NAME: "radeonsi" # FRIGATE_RTSP_PASSWORD: "69$nC*6$jADbc!" labels: @@ -43,3 +48,7 @@ services: networks: proxy-net: external: true + +secrets: + PLUS_API_KEY: + file: ./secrets/PLUS_API_KEY \ No newline at end of file