NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
UI Tweaks (#12002)
Nicolas Mowenba6fc0fdb35c
diff --git a/frigate/api/app.py b/frigate/api/app.pyindex e97509998e..787a087844 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -481,7 +481,7 @@ def logs(service: str):for rawLine in contents.splitlines():cleanLine = rawLine.strip()- if len(cleanLine) < 10:+ if len(cleanLine) < 10 or " " not in cleanLine:continueif dateEnd == 0:diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsxindex 2b9a8d4fb4..80844e7495 100644--- a/web/src/components/player/MsePlayer.tsx+++ b/web/src/components/player/MsePlayer.tsx@@ -330,7 +330,7 @@ function MSEPlayer({setTimeout(() => {if (document.visibilityState === "visible" &&- wsRef.current != undefined+ wsRef.current != null) {onError("stalled");}diff --git a/web/src/types/review.ts b/web/src/types/review.tsindex ab1c2263b4..e9d6ce88d0 100644--- a/web/src/types/review.ts+++ b/web/src/types/review.ts@@ -60,4 +60,4 @@ export type MotionData = {camera: string;};-export const REVIEW_PADDING = 2;+export const REVIEW_PADDING = 4;diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsxindex a95524e022..dfcf0344da 100644--- a/web/src/views/events/EventView.tsx+++ b/web/src/views/events/EventView.tsx@@ -167,9 +167,13 @@ export default function EventView({return;}+ const endTime = review.end_time+ ? review.end_time + REVIEW_PADDING+ : Date.now() / 1000;+axios.post(- `export/${review.camera}/start/${review.start_time}/end/${review.end_time}`,+ `export/${review.camera}/start/${review.start_time - REVIEW_PADDING}/end/${endTime}`,{ playback: "realtime" },).then((response) => {diff --git a/web/src/views/system/GeneralMetrics.tsx b/web/src/views/system/GeneralMetrics.tsxindex 59b71cda91..76bf9a5374 100644--- a/web/src/views/system/GeneralMetrics.tsx+++ b/web/src/views/system/GeneralMetrics.tsx@@ -163,10 +163,14 @@ export default function GeneralMetrics({series[key] = { name: key, data: [] };}- series[key].data.push({- x: statsIdx + 1,- y: stats.cpu_usages[detStats.pid.toString()].cpu,- });+ const data = stats.cpu_usages[detStats.pid.toString()].cpu;++ if (data != undefined) {+ series[key].data.push({+ x: statsIdx + 1,+ y: data,+ });+ }});});return Object.values(series);@@ -300,10 +304,14 @@ export default function GeneralMetrics({series[key] = { name: key, data: [] };}- series[key].data.push({- x: statsIdx + 1,- y: stats.cpu_usages[procStats.pid.toString()].cpu,- });+ const data = stats.cpu_usages[procStats.pid.toString()].cpu;++ if (data != undefined) {+ series[key].data.push({+ x: statsIdx + 1,+ y: data,+ });+ }}});});