Added audio sensors to camera metrics and API stats (#8109)

* Added audio sensor to camera metrics and API stats

* Update types.py

* Update app.py
This commit is contained in:
tpjanssen
2023-10-13 13:17:41 +02:00
committed by GitHub
parent e19c0668e7
commit e32bd4ab15
4 changed files with 15 additions and 1 deletions

View File

@@ -163,6 +163,8 @@ class FrigateApp:
"frame_queue": mp.Queue(maxsize=2),
"capture_process": None,
"process": None,
"audio_rms": mp.Value("d", 0.0), # type: ignore[typeddict-item]
"audio_dBFS": mp.Value("d", 0.0), # type: ignore[typeddict-item]
}
self.ptz_metrics[camera_name] = {
"ptz_autotracker_enabled": mp.Value( # type: ignore[typeddict-item]
@@ -500,6 +502,7 @@ class FrigateApp:
args=(
self.config,
self.audio_recordings_info_queue,
self.camera_metrics,
self.feature_metrics,
self.inter_process_communicator,
),