From 1f4b30628507ffee7992496e63f43b4d03430beb Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 30 Apr 2024 16:02:06 -0600 Subject: [PATCH] Formatting --- frigate/object_processing.py | 5 +---- web/src/hooks/use-camera-activity.ts | 1 + web/src/utils/iconUtil.tsx | 1 + web/vite.config.ts | 12 ++++++------ 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index bece3720a..6dd70781e 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -740,15 +740,12 @@ class CameraState: if not obj.false_positive: label = object_type - if ( - obj.obj_data.get("sub_label") - ): + if obj.obj_data.get("sub_label"): if obj.obj_data.get("sub_label")[0] in ALL_ATTRIBUTE_LABELS: label = obj.obj_data["sub_label"][0] else: label = f"{object_type}-verified" - camera_activity["objects"].append( {"id": obj.obj_data["id"], "label": label, "stationary": not active} ) diff --git a/web/src/hooks/use-camera-activity.ts b/web/src/hooks/use-camera-activity.ts index c6f0f06ec..4e3b8b4be 100644 --- a/web/src/hooks/use-camera-activity.ts +++ b/web/src/hooks/use-camera-activity.ts @@ -29,6 +29,7 @@ export function useCameraActivity( useEffect(() => { if (updatedCameraState) { + console.log(`the initial objects are ${JSON.stringify(updatedCameraState.objects)}`) setObjects(updatedCameraState.objects); } }, [updatedCameraState]); diff --git a/web/src/utils/iconUtil.tsx b/web/src/utils/iconUtil.tsx index bc9f74a8b..ef1e38cfe 100644 --- a/web/src/utils/iconUtil.tsx +++ b/web/src/utils/iconUtil.tsx @@ -35,6 +35,7 @@ export function getIconForGroup(icon: string, className: string = "size-4") { } export function getIconForLabel(label: string, className?: string) { + console.log(`the label is ${label}`) if (label.endsWith("-verified")) { return getVerifiedIcon(label, className); } diff --git a/web/vite.config.ts b/web/vite.config.ts index 5afefa331..cc3ead707 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -12,24 +12,24 @@ export default defineConfig({ server: { proxy: { "/api": { - target: "http://localhost:5000", + target: "http://192.168.50.106:5000", ws: true, }, "/vod": { - target: "http://localhost:5000", + target: "http://192.168.50.106:5000", }, "/clips": { - target: "http://localhost:5000", + target: "http://192.168.50.106:5000", }, "/exports": { - target: "http://localhost:5000", + target: "http://192.168.50.106:5000", }, "/ws": { - target: "ws://localhost:5000", + target: "ws://192.168.50.106:5000", ws: true, }, "/live": { - target: "ws://localhost:5000", + target: "ws://192.168.50.106:5000", changeOrigin: true, ws: true, },