Misc fixes (#14064)

* Add loading indicator when explore view is revalidating

* Portal tooltip in object lifecycle pane

* Better config file handling

* Only manually set aspect ratio when using alert videos
This commit is contained in:
Josh Hawkins
2024-09-30 08:32:54 -05:00
committed by GitHub
parent 775a3a1c22
commit 3688a3bc67
5 changed files with 37 additions and 9 deletions

View File

@@ -325,6 +325,12 @@ class PtzAutoTracker:
def _write_config(self, camera):
config_file = os.environ.get("CONFIG_FILE", f"{CONFIG_DIR}/config.yml")
# Check if we can use .yaml instead of .yml
config_file_yaml = config_file.replace(".yml", ".yaml")
if os.path.isfile(config_file_yaml):
config_file = config_file_yaml
logger.debug(
f"{camera}: Writing new config with autotracker motion coefficients: {self.config.cameras[camera].onvif.autotracking.movement_weights}"
)