mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
disable autotracking if onvif init fails
This commit is contained in:
parent
70e4ee9fea
commit
4f2624022a
@ -147,7 +147,12 @@ class PtzAutoTracker:
|
|||||||
if not self.onvif._init_onvif(camera_name):
|
if not self.onvif._init_onvif(camera_name):
|
||||||
logger.warning(f"Unable to initialize onvif for {camera_name}")
|
logger.warning(f"Unable to initialize onvif for {camera_name}")
|
||||||
cam.onvif.autotracking.enabled = False
|
cam.onvif.autotracking.enabled = False
|
||||||
|
self.camera_metrics[camera_name][
|
||||||
|
"ptz_autotracker_enabled"
|
||||||
|
].value = False
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if not self.onvif.cams[camera_name]["relative_fov_supported"]:
|
if not self.onvif.cams[camera_name]["relative_fov_supported"]:
|
||||||
cam.onvif.autotracking.enabled = False
|
cam.onvif.autotracking.enabled = False
|
||||||
self.camera_metrics[camera_name][
|
self.camera_metrics[camera_name][
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user