NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Add low shm warning to bottom bar (#19824)
Josh Hawkins92555eb83585
diff --git a/web/public/locales/en/views/system.json b/web/public/locales/en/views/system.jsonindex 1357000c97..2732112cdb 100644--- a/web/public/locales/en/views/system.json+++ b/web/public/locales/en/views/system.json@@ -162,7 +162,8 @@"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)","cameraIsOffline": "{{camera}} is offline","detectIsSlow": "{{detect}} is slow ({{speed}} ms)",- "detectIsVerySlow": "{{detect}} is very slow ({{speed}} ms)"+ "detectIsVerySlow": "{{detect}} is very slow ({{speed}} ms)",+ "shmTooLow": "/dev/shm allocation ({{total}} MB) should be increased to at least {{min}} MB."},"enrichments": {"title": "Enrichments",diff --git a/web/src/hooks/use-stats.ts b/web/src/hooks/use-stats.tsindex 566020b057..040dd7b1af 100644--- a/web/src/hooks/use-stats.ts+++ b/web/src/hooks/use-stats.ts@@ -32,6 +32,19 @@ export default function useStats(stats: FrigateStats | undefined) {return problems;}+ // check shm level+ const shm = memoizedStats.service.storage["/dev/shm"];+ if (shm?.total && shm?.min_shm && shm.total < shm.min_shm) {+ problems.push({+ text: t("stats.shmTooLow", {+ total: shm.total,+ min: shm.min_shm,+ }),+ color: "text-danger",+ relevantLink: "/system#storage",+ });+ }+// check detectors for high inference speedsObject.entries(memoizedStats["detectors"]).forEach(([key, det]) => {if (det["inference_speed"] > InferenceThreshold.error) {