feat: several updates

This commit is contained in:
Xavier Morel
2025-12-09 14:35:20 +01:00
parent aec2e5bf63
commit a78704f30f
36 changed files with 826 additions and 150 deletions

View File

@@ -2,7 +2,7 @@
let
hostname = tools.build_hostname "frigate";
mask_cidr = tools.mask_cidr;
camera = tools.build_ip "camera";
camera = tools.build_ip "camera-entree-4";
user = "admin"; # use yours
pass = "admin"; # use yours
in
@@ -13,6 +13,7 @@ in
checkConfig = false;
settings = {
auth = {
enabled = false;
trusted_proxies = [
mask_cidr
];
@@ -25,6 +26,56 @@ in
separator = "|";
default_role = "admin";
};
# database.path => postgres ??
mqtt = {
enabled = true;
host = tools.build_hostname "mqtt";
user = "frigate";
password = "pouet";
# Auth ???
};
detect = {
enabled = true;
fps = 5;
};
detectors.cpu.type = "cpu";
objects.track = [
"person"
"car"
"bird"
"cat"
"dog"
];
motion.enabled = true;
# genai => ollama
semantic_search = {
enabled = true;
model_size = "small";
};
review.detections = {
enabled = true;
labels = [
"car"
"person"
"cat"
"dog"
];
};
record = {
enabled = true;
retain.days = 2;
preview.quality = "medium";
};
snapshots = {
enabled = true;
retain.default = 7;
};
# face_recognition = {
# enabled = true;
# model_size = "small";
# };
# lpr.enabled = true;
# classification.bird.enabled = true;
cameras = {
front = {
enabled = true;
@@ -45,6 +96,21 @@ in
user = user;
password = pass;
};
zones = {
ZoneA = {
coordinates = "0,0.036,0.985,0.041,0.985,0.494,0.01,0.496";
loitering_time = 0;
};
ZoneB = {
coordinates = "0,0.502,0,1,1,1,1,0.501";
inertia = 3;
loitering_time = 0;
};
};
# review.alerts.required_zones = [
# "ZoneA"
# "ZoneB"
# ];
};
};
};