Utility to send Frigate event notifications to other messengers #5233
Replies: 3 comments
-
Very cool thanks for sharing!
yes, for example if you want to notify when a car has entered the driveway ( |
Beta Was this translation helpful? Give feedback.
-
I saw that too late ahah, i also wrote a Golang notification script but it leverages a database for tracking and not the already existing MQTT If anyone needs another way of sending notifications to Telegram this is my quick hack: |
Beta Was this translation helpful? Give feedback.
-
Why not use nodered docker, it has mqtt. You can not only send message to all messengers supported by nodered addons but also you can make some smart conditions for that messages (like motion, time, date etc.). I use that and get message on telegram with snapshot :) You can make inputs and combine them with home assistant. I think mqtt support in frigate is enough and make so many possibilities. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone!
For us uninitiated that do not run a HA instance, I have created a dead-simple utility that will poll MQTT for new detections and pipe them through to a messenger of choice. Currently, only discord and slack are supported but I plan on adding more in the future.
https://github.com/andreasavg/Frigatier
So the utility can and will send messages to all enabled messengers. It will construct a message like the following:
A <detection label> was detected by <camera name>
And it will also make a request to
/api/events/<event id>/thumbnail.jpg
to get a thumbnail to send.The repo README explains what you need to run it but here's an overview:
You need to either download or compile the binary and then create a config.yml file next to the binary:
I've already published pre-compiled binaries for linux and windows (God I hope I've done the release correctly) or you can just compile your own:
Now I do have a question, I've noticed that the MQTT message in
frigate/events
contains both abefore
andafter
entry. For the moment, I always read thebefore
entry and just sit idle untilfalse_positive
is set tofalse
. Once that's true, I trigger a message. When subsequent events with the same ID come in, I just ignore them untilend_date
is set and that's when I discard the event completely.Is there any point where I should be paying attention to the
after
event?This is a very VERY early release without much testing. I just wanted to get your opinion on how useful something like this would be. Expect wormholes consuming your cat.
Beta Was this translation helpful? Give feedback.
All reactions