mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-07 03:11:15 +03:00
Bugfixes and docs tweaks (#17307)
* ensure config file is updated with booleans instead of strings * catch onvif error * ensure object type is available as a ptz tracker * update live view docs
This commit is contained in:
@@ -86,7 +86,11 @@ class OnvifController:
|
||||
|
||||
async def _init_onvif(self, camera_name: str) -> bool:
|
||||
onvif: ONVIFCamera = self.cams[camera_name]["onvif"]
|
||||
await onvif.update_xaddrs()
|
||||
try:
|
||||
await onvif.update_xaddrs()
|
||||
except Exception as e:
|
||||
logger.error(f"Onvif connection failed for {camera_name}: {e}")
|
||||
return False
|
||||
|
||||
# create init services
|
||||
media: ONVIFService = await onvif.create_media_service()
|
||||
|
||||
@@ -246,6 +246,7 @@ class NorfairTracker(ObjectTracker):
|
||||
"ptz"
|
||||
if self.camera_config.onvif.autotracking.enabled_in_config
|
||||
and object_type in self.camera_config.onvif.autotracking.track
|
||||
and object_type in self.ptz_object_type_configs.keys()
|
||||
else "static"
|
||||
)
|
||||
if object_type in self.trackers:
|
||||
|
||||
Reference in New Issue
Block a user