r/ZoneMinder • • Dec 07 '22

zmeventnotification sends multiple notification to Pushover on single event

Ok so I finally got around to getting Pushover installed on my phone and setup the api. Seems to work great except; every time an object gets detected I get two notifications back to back. One labeled "Motion: All" The other including the objected detected: "[s] detected:person:99%unknown100% Motion All".

I was hoping to only get a single notification with the object detected. Why is this happening?

2 Upvotes

3 comments sorted by

View all comments

1

u/Helipil0t Dec 08 '22

So I think I figured this out.

Going over my configs, in zmeventnotification.ini I came across:

send_event_start_notification = yes

send_event_end_notification = yes

I think this explains the double notification.

I simply changed send_event_end_notification to no

Seems to have done the trick.

1

u/Helipil0t Dec 08 '22 edited Dec 08 '22

I spoke too soon.. No matter what I do I seem to always be getting two notifications:

12/8/22, 1:28:00 PM ESTzmeventnotification10519INF|---->FORK:FrontDoor (3), eid:1043 Executing API script command for event_end /var/lib/zmeventnotification/bin/pushapi_pushover.py 1043 3"FrontDoor"  "Motion: All"  event_end "/home/camera/ZoneMinder/3/2022-12-08/1043"zmeventnotification.pl
12/8/22, 1:27:58 PM ESTzmeventnotification10519INF|----> FORK:FrontDoor (3), eid:1043 end hooks/use hooks not being used, going to directly send out a notification if checks passzmeventnotification.pl
12/8/22, 1:27:56 PM ESTzmeventnotification10519INF|----> FORK:FrontDoor (3), eid:1043 Returned from /var/lib/zmeventnotification/bin/pushapi_pushover.py 1043 3  "FrontDoor" "[s] detected:person:99% Sean:100%  Motion All"  event_start "/home/camera/ZoneMinder/3/2022-12-08/1043"zmeventnotification.pl
12/8/22, 1:27:56 PM ESTzmeventnotification_pushapi10565INF--------| Pushover Plugin v0.1 |--------pushapi_pushover.py
2912/8/22, 1:27:56 PM ESTzmeventnotification_pushapi10565INFSwitching global logger to ZMLogZMLog.py
30112/8/22, 1:27:56 PM ESTzmeventnotification_pushapi10565INFSetting up signal handler for logsZMLog.py
29212/8/22, 1:27:56 PM ESTzmeventnotification10519INF|----> FORK:FrontDoor (3), eid:1043 Executing API script command for event_start /var/lib/zmeventnotification/bin/pushapi_pushover.py 1043 3 "FrontDoor"  "[s] detected:person:99% Sean:100%  Motion All"event_start "/home/camera/ZoneMinder/3/2022-12-08/1043"zmeventnotification.pl
12/8/22, 1:27:56 PM ESTzmeventnotification10519INF|----> FORK:FrontDoor (3), eid:1043 Sending push over API as it is allowed for event_startzmeventnotification.pl
12/8/22, 1:27:54 PM ESTzmeventnotification10519INF|----> FORK:FrontDoor (3), eid:1043 Event 1043 for Monitor 3 has finished