mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Get events working
This commit is contained in:
parent
cc0cb3a78d
commit
5c230ee0f5
@ -393,9 +393,7 @@ class FrigateApp:
|
||||
|
||||
def start_audio_processors(self) -> None:
|
||||
audio_process = mp.Process(
|
||||
target=listen_to_audio,
|
||||
name=f"audio_capture",
|
||||
args=(self.config)
|
||||
target=listen_to_audio, name=f"audio_capture", args=(self.config,)
|
||||
)
|
||||
audio_process.daemon = True
|
||||
audio_process.start()
|
||||
|
||||
@ -163,9 +163,10 @@ class AudioEventMaintainer(threading.Thread):
|
||||
)
|
||||
|
||||
if resp.status_code == 200:
|
||||
event_id = resp.json["event_id"]
|
||||
event_id = resp.json()[0]["event_id"]
|
||||
self.detections[label] = {
|
||||
"id": event_id,
|
||||
"label": label,
|
||||
"last_detection": datetime.datetime.now().timestamp(),
|
||||
}
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ class EventProcessor(threading.Thread):
|
||||
except queue.Empty:
|
||||
continue
|
||||
|
||||
logger.error(
|
||||
logger.debug(
|
||||
f"Event received: {source_type} {event_type} {camera} {event_data['id']}"
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user