Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

schedule to sched

roryclear753fd1b8e9d9
diff --git a/clearcam.py b/clearcam.py
index bb15b36..b3ce227 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -882,7 +882,7 @@ class HLSRequestHandler(BaseHTTPRequestHandler):
window = query.get("window", [None])[0]
max_count = query.get("max", [None])[0]
class_ids = query.get("class_ids", [None])[0]
- sched = json.loads(query.get("schedule", ["[[0,86400]]"])[0]) # todo, weekly
+ sched = json.loads(query.get("sched", ["[[0,86400]]"])[0]) # todo, weekly
window = int(window)
max_count = int(max_count)
classes = [int(c.strip()) for c in class_ids.split(",")]
@@ -2213,7 +2213,7 @@ class HLSRequestHandler(BaseHTTPRequestHandler):
window: windowSeconds,
max: formData.get('max'),
class_ids: classIds,
- schedule: JSON.stringify(schedArray),
+ sched: JSON.stringify(schedArray),
}});
fetch(`/edit_alert?${{params.toString()}}`)
.then(res => {{