NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Don't allow backwards recordings (#12477)
Nicolas Mowene9da4531906d
diff --git a/web/src/components/overlay/ExportDialog.tsx b/web/src/components/overlay/ExportDialog.tsxindex 952e00c178..b1360aa365 100644--- a/web/src/components/overlay/ExportDialog.tsx+++ b/web/src/components/overlay/ExportDialog.tsx@@ -63,6 +63,13 @@ export default function ExportDialog({return;}+ if (range.before < range.after) {+ toast.error("End time must be after start time", {+ position: "top-center",+ });+ return;+ }+axios.post(`export/${camera}/start/${Math.round(range.after)}/end/${Math.round(range.before)}`,diff --git a/web/src/components/overlay/MobileReviewSettingsDrawer.tsx b/web/src/components/overlay/MobileReviewSettingsDrawer.tsxindex 7c9cdb93e3..a8a21ebd21 100644--- a/web/src/components/overlay/MobileReviewSettingsDrawer.tsx+++ b/web/src/components/overlay/MobileReviewSettingsDrawer.tsx@@ -68,6 +68,13 @@ export default function MobileReviewSettingsDrawer({return;}+ if (range.before < range.after) {+ toast.error("End time must be after start time", {+ position: "top-center",+ });+ return;+ }+axios.post(`export/${camera}/start/${Math.round(range.after)}/end/${Math.round(range.before)}`,