set wce-0001 to store all records for 48 hours

This commit is contained in:
TheWanderingCrow 2025-10-18 09:53:11 -04:00
parent 8224dc17c1
commit 4e4489aa20

View file

@ -42,12 +42,12 @@ in
wce-0003_sub = [ wce-0003_sub = [
"rtsp://thingino:thingino@192.168.150.3:554/ch1" "rtsp://thingino:thingino@192.168.150.3:554/ch1"
]; ];
wce-0004 = [ #wce-0004 = [
"rtsp://192.168.0.210:554/media/live/1/1" # "rtsp://192.168.0.210:554/media/live/1/1"
]; # ];
wce-0004_sub = [ # wce-0004_sub = [
"rtsp://192.168.0.210:554/media/live/1/2" # "rtsp://192.168.0.210:554/media/live/1/2"
]; # ];
}; };
}; };
############# #############
@ -112,6 +112,12 @@ in
]; ];
}; };
detect.enabled = true; detect.enabled = true;
record = {
retain = {
days = 2;
mode = "all";
};
};
review = { review = {
alerts.labels = []; alerts.labels = [];
detections.labels = [ detections.labels = [
@ -164,24 +170,24 @@ in
}; };
detect.enabled = true; detect.enabled = true;
}; };
wce-0004 = { # wce-0004 = {
ffmpeg = { # ffmpeg = {
inputs = [ # inputs = [
{ # {
path = "rtsp://127.0.0.1:8554/wce-0004"; # path = "rtsp://127.0.0.1:8554/wce-0004";
roles = ["record"]; # roles = ["record"];
} # }
{ # {
path = "rtsp://127.0.0.1:8554/wce-0004_sub"; # path = "rtsp://127.0.0.1:8554/wce-0004_sub";
roles = ["detect"]; # roles = ["detect"];
} # }
]; # ];
}; # };
motion = { # motion = {
enabled = true; # enabled = true;
}; # };
detect.enabled = true; # detect.enabled = true;
}; # };
}; };
}); });
in { in {