Setting up Alerts with Webhooks
Posted: Mon Mar 09, 2020 2:06 pm
Hi
I am brand new to Zoneminder and I have managed to get a good install working on an Ubuntu server with the latest version of Zoneminder.
My camera is connect to an Rpi in my garage and streaming using ffmpeg via an rtsp stream and all is working fine.
I am now setting up alerting for when an event or alarm is triggered and this is what I have so far.
1) set up anapplet in IFTTT using webhooks and Telegram
2) configured a small script on my Ubuntu server that triggers the IFTTT webhook when run as a .py file
3) When this is triggered IFTTT sends a message to my Telegram messeging account which gives me an alert.
This all works perctly so far.
4) in Zoneminder, i have created a filter that monitors alarm frames with a threshold of 50. This will then Execute command on all matches and i out the path to my script that triggers the web hook.
This still all works perfectly.
Now, my problem is when i get an alert I get loads of alerts. I get my lad to walk in front fo the camera for a few minutes and I recieve around 50 to 60 alerts
What I want to achieve is that I get one alert when the "event" happens, I want it to then record for 5 mins or 300ms withou any more alerts being triggered.
On the settings for my camera I have section length set to 300 which I assume is 300ms, but this doesnt seem to make any difference, I still get loads of alerts and also varying size recordings.
Can someone help me to
a) set up so when motion is detected I will get a 5 minute recording every time
b) only one alert ( or run of the script ) per recording
Thank you
I am brand new to Zoneminder and I have managed to get a good install working on an Ubuntu server with the latest version of Zoneminder.
My camera is connect to an Rpi in my garage and streaming using ffmpeg via an rtsp stream and all is working fine.
I am now setting up alerting for when an event or alarm is triggered and this is what I have so far.
1) set up anapplet in IFTTT using webhooks and Telegram
2) configured a small script on my Ubuntu server that triggers the IFTTT webhook when run as a .py file
3) When this is triggered IFTTT sends a message to my Telegram messeging account which gives me an alert.
This all works perctly so far.
4) in Zoneminder, i have created a filter that monitors alarm frames with a threshold of 50. This will then Execute command on all matches and i out the path to my script that triggers the web hook.
This still all works perfectly.
Now, my problem is when i get an alert I get loads of alerts. I get my lad to walk in front fo the camera for a few minutes and I recieve around 50 to 60 alerts
What I want to achieve is that I get one alert when the "event" happens, I want it to then record for 5 mins or 300ms withou any more alerts being triggered.
On the settings for my camera I have section length set to 300 which I assume is 300ms, but this doesnt seem to make any difference, I still get loads of alerts and also varying size recordings.
Can someone help me to
a) set up so when motion is detected I will get a 5 minute recording every time
b) only one alert ( or run of the script ) per recording
Thank you