NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix frigate startup stats (#10887)
Nicolas Mowenc577361923a6
diff --git a/web/src/hooks/use-stats.ts b/web/src/hooks/use-stats.tsindex 3a5c6e9ab9..02db404f1f 100644--- a/web/src/hooks/use-stats.ts+++ b/web/src/hooks/use-stats.ts@@ -18,6 +18,12 @@ export default function useStats(stats: FrigateStats | undefined) {return problems;}+ // if frigate has just started+ // don't look for issues+ if (stats.service.uptime < 120) {+ return problems;+ }+// check detectors for high inference speedsObject.entries(stats["detectors"]).forEach(([key, det]) => {if (det["inference_speed"] > InferenceThreshold.error) {diff --git a/web/src/types/stats.ts b/web/src/types/stats.tsindex 3b293f76a9..59fb6f69d7 100644--- a/web/src/types/stats.ts+++ b/web/src/types/stats.ts@@ -47,7 +47,7 @@ export type ServiceStats = {last_updated: number;storage: { [path: string]: StorageStats };temperatures: { [apex: string]: number };- update: number;+ uptime: number;latest_version: string;version: string;};