Andreas Motl
Andreas Motl
Oh, nevermind, it's my fault. `cat frigate-event.json | mosquitto_pub -t 'frigate/events' -l` will not publish the message correctly, as it will publish individual lines of that file. Apologies for the...
I've fixed the example with de00c85d85. Now, it seems to process the event perfectly well. ``` 2023-04-12 20:10:56,576 DEBUG [mqttwarn.core ] Message received on frigate/events: {"before":{"id":"1680791459.255384-abcdef","camera":"camera","frame_time":1680791459.255384,"snapshot_time":0,"label":"car","sub_label":null,"top_score":0,"false_positive":true,"start_time":1680791459.255384,"end_time":null,"score":0.7,"box":[0,20,0,20],"area":400,"ratio":1,"region":[0,0,320,320],"stationary":false,"motionless_count":0,"position_changes":0,"current_zones":[],"entered_zones":[],"has_clip":false,"has_snapshot":false},"after":{"id":"1680791459.255384-abcdef","camera":"camera","frame_time":1680791506.638857,"snapshot_time":1680791506.638857,"label":"car","sub_label":null,"top_score":0.75,"false_positive":false,"start_time":1680791459.255384,"end_time":null,"score":0.8,"box":[1,21,1,21],"area":400,"ratio":1,"region":[0,0,320,320],"stationary":false,"motionless_count":1,"position_changes":2,"current_zones":[],"entered_zones":["zone1"],"has_clip":true,"has_snapshot":true},"type":"new"} 2023-04-12 20:10:56,576 DEBUG [mqttwarn.core...
> You can do any of the following [to create an event message which should be ignored] [...] Thanks. With f35ccd16022, I've added corresponding minified example messages, and adjusted the...
> Regrettably, I don't think this will work. Frigate only writes thumbnail to disk. So I will have to use the initial solution of relying on the `snapshots` endpoint. Thanks...
> [Regarding the image snaphost transport,] so be it. I will add corresponding code, attempting to... May I ask in which order the messages are published to the broker? Does...
>> Does the event message come first, and the image snapshot message afterwards? > > That's what I was trying to figure out Oh, it's really easy to find out....
> Here's my new filter function. Thanks for sharing. I will add it to the feature branch. However, currently it skips both `frigate-event-new.json` and `frigate-event-full.json` samples. I think it will...
> However, currently it skips both `frigate-event-new.json` and `frigate-event-full.json` samples. This code will always return `True`. ```python try: message = json.loads(message) except: pass else: # can't parse the message return...
> To confirm the change I made to the `pushover.py` for image decoding. Please note that af3288b also includes a fix in that area. > So should I merge that...
Hi @psyciknz, all outstanding patches have been integrated into the `main` branch. Happy hacking and with kind regards, Andreas.