NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Add types to date preview & vod api (#13636)
Nicolas Mowenf5dbcd546569
diff --git a/frigate/api/media.py b/frigate/api/media.pyindex 092958581e..8604b557bb 100644--- a/frigate/api/media.py+++ b/frigate/api/media.py@@ -597,7 +597,8 @@ def vod_ts(camera_name, start_ts, end_ts):)[email protected]("/vod/<year_month>/<day>/<hour>/<camera_name>")[email protected]("/vod/<year_month>/<int:day>/<int:hour>/<camera_name>")[email protected]("/vod/<year_month>/<float:day>/<float:hour>/<camera_name>")def vod_hour_no_timezone(year_month, day, hour, camera_name):return vod_hour(year_month, day, hour, camera_name, get_localzone_name().replace("/", ",")diff --git a/frigate/api/preview.py b/frigate/api/preview.pyindex 46d3d0e828..7b50d8cbfc 100644--- a/frigate/api/preview.py+++ b/frigate/api/preview.py@@ -75,7 +75,10 @@ def preview_ts(camera_name, start_ts, end_ts):return make_response(jsonify(clips), 200)[email protected]("/preview/<year_month>/<day>/<hour>/<camera_name>/<tz_name>")[email protected]("/preview/<year_month>/<int:day>/<int:hour>/<camera_name>/<tz_name>")+ "/preview/<year_month>/<float:day>/<float:hour>/<camera_name>/<tz_name>"+)def preview_hour(year_month, day, hour, camera_name, tz_name):parts = year_month.split("-")start_date = (