diff --git a/modules/users/overseer/services/frigate.nix b/modules/users/overseer/services/frigate.nix index 6609d65..c33c64a 100644 --- a/modules/users/overseer/services/frigate.nix +++ b/modules/users/overseer/services/frigate.nix @@ -29,6 +29,12 @@ in wce-0001_sub = [ "rtsp://thingino:thingino@192.168.150.1:554/ch1" ]; + wce-0002 = [ + "rtsp://thingino:thingino@192.168.150.2:554/ch0" + ]; + wce-0002_sub = [ + "rtsp://thingino:thingino@192.168.150.2:554/ch1" + ]; }; }; ############# @@ -104,6 +110,29 @@ in }; detect.enabled = true; }; + wce-0002 = { + ffmpeg = { + inputs = [ + { + path = "rtsp://127.0.0.1:8554/wce-0002"; + roles = ["record"]; + } + { + path = "rtsp://127.0.0.1:8554/wce-0002_sub"; + roles = ["detect"]; + } + ]; + }; + live.stream_name = "wce-0002_sub"; + motion = { + enabled = true; + mask = [ + "0,0,0.196,0.002,0.195,0.045,0,0.043" # timestamp + "0.898,0,0.896,0.045,1,0.048,0.999,0.002" # uptime + ]; + }; + detect.enabled = true; + }; }; }); in