diff --git a/machines/frigate/frigate/config.yml b/machines/frigate/frigate/config/config.yml similarity index 92% rename from machines/frigate/frigate/config.yml rename to machines/frigate/frigate/config/config.yml index cc79743..076025f 100644 --- a/machines/frigate/frigate/config.yml +++ b/machines/frigate/frigate/config/config.yml @@ -4,6 +4,9 @@ mqtt: user: frigate password: "{FRIGATE_MQTT_PASSWORD}" +database: + path: /media/frigate/frigate.db + logger: default: info @@ -28,10 +31,6 @@ detect: width: 640 height: 480 -# motion: -# mask: -# - 0,180,76,189,215,149,372,128,375,222,194,224,145,311,0,296 - objects: track: - person @@ -55,6 +54,7 @@ go2rtc: - ffmpeg:reolink#audio=opus reolink_sub: - rtsp://hass:{FRIGATE_DOORBELL_PASSWORD}@10.0.0.31/h264Preview_01_sub + - ffmpeg:reolink_sub#audio=opus # - http://10.0.0.31/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=hass&password={FRIGATE_DOORBELL_PASSWORD} webrtc: candidates: @@ -73,9 +73,12 @@ cameras: - path: rtsp://127.0.0.1:8554/reolink_sub?video=copy input_args: preset-rtsp-restream roles: + - audio - detect live: stream_name: reolink + audio: + enabled: True record: events: required_zones: @@ -93,3 +96,7 @@ cameras: coordinates: 28,279,0,282,0,325,91,324 objects: - car + +ui: + live_mode: webrtc + diff --git a/machines/frigate/frigate/default.nix b/machines/frigate/frigate/default.nix index cca8721..8af1dfd 100644 --- a/machines/frigate/frigate/default.nix +++ b/machines/frigate/frigate/default.nix @@ -4,7 +4,7 @@ with lib; virtualisation.oci-containers.containers = { frigate = { autoStart = true; - image = "ghcr.io/blakeblackshear/frigate:0.12.1"; + image = "ghcr.io/blakeblackshear/frigate:0.13.0"; ports = [ "1984:1984" # go2rtc "5000:5000" # Frigate @@ -14,7 +14,7 @@ with lib; ]; volumes = [ "/etc/localtime:/etc/localtime:ro" - "${./config.yml}:/config/config.yml:ro" + "${./config/config.yml}:/config/config.yml:ro" "${pkgs.go2rtc}/bin/go2rtc:/config/go2rtc" "/data/frigate:/media/frigate" ];