From 10c730501aa2ce03481418ba94192a0fcba924dc Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 13 Apr 2025 12:31:04 -0500 Subject: [PATCH] ensure license_plate is added to filter list for dedicated lpr cameras --- web/src/components/filter/SearchFilterGroup.tsx | 4 ++++ web/src/types/frigateConfig.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/web/src/components/filter/SearchFilterGroup.tsx b/web/src/components/filter/SearchFilterGroup.tsx index e6a8214c38..77cd95db0f 100644 --- a/web/src/components/filter/SearchFilterGroup.tsx +++ b/web/src/components/filter/SearchFilterGroup.tsx @@ -69,6 +69,10 @@ export default function SearchFilterGroup({ } }); + if (cameraConfig.type == "lpr") { + labels.add("license_plate"); + } + if (cameraConfig.audio.enabled_in_config) { cameraConfig.audio.listen.forEach((label) => { labels.add(label); diff --git a/web/src/types/frigateConfig.ts b/web/src/types/frigateConfig.ts index d66d5edcbf..4ed9318610 100644 --- a/web/src/types/frigateConfig.ts +++ b/web/src/types/frigateConfig.ts @@ -241,6 +241,7 @@ export interface CameraConfig { position: string; thickness: number; }; + type: string; ui: UiConfig; webui_url: string | null; zones: {