mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 00:54:27 +03:00
initial onconnect
This commit is contained in:
parent
c4d59f7a43
commit
642cadbb77
@ -181,6 +181,7 @@ class Dispatcher:
|
||||
"snapshots": self.config.cameras[camera].snapshots.enabled,
|
||||
"record": self.config.cameras[camera].record.enabled,
|
||||
"audio": self.config.cameras[camera].audio.enabled,
|
||||
"notifications": self.config.cameras[camera].notifications.enabled,
|
||||
"autotracking": self.config.cameras[
|
||||
camera
|
||||
].onvif.autotracking.enabled,
|
||||
|
||||
@ -118,7 +118,7 @@ class WebPushClient(Communicator): # type: ignore[misc]
|
||||
|
||||
if topic == "reviews":
|
||||
decoded = json.loads(payload)
|
||||
camera = payload["after"]["camera"]
|
||||
camera = decoded["before"]["camera"]
|
||||
if not self.config.cameras[camera].notifications.enabled:
|
||||
return
|
||||
self.send_alert(decoded)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user