mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +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,
|
"snapshots": self.config.cameras[camera].snapshots.enabled,
|
||||||
"record": self.config.cameras[camera].record.enabled,
|
"record": self.config.cameras[camera].record.enabled,
|
||||||
"audio": self.config.cameras[camera].audio.enabled,
|
"audio": self.config.cameras[camera].audio.enabled,
|
||||||
|
"notifications": self.config.cameras[camera].notifications.enabled,
|
||||||
"autotracking": self.config.cameras[
|
"autotracking": self.config.cameras[
|
||||||
camera
|
camera
|
||||||
].onvif.autotracking.enabled,
|
].onvif.autotracking.enabled,
|
||||||
|
|||||||
@ -118,7 +118,7 @@ class WebPushClient(Communicator): # type: ignore[misc]
|
|||||||
|
|
||||||
if topic == "reviews":
|
if topic == "reviews":
|
||||||
decoded = json.loads(payload)
|
decoded = json.loads(payload)
|
||||||
camera = payload["after"]["camera"]
|
camera = decoded["before"]["camera"]
|
||||||
if not self.config.cameras[camera].notifications.enabled:
|
if not self.config.cameras[camera].notifications.enabled:
|
||||||
return
|
return
|
||||||
self.send_alert(decoded)
|
self.send_alert(decoded)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user