I am lost in the configuration of zmeventnotification

Discussion topics related to mobile applications for ZoneMinder
titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

I am lost in the configuration of zmeventnotification

Post by titof2375 » Sat Mar 13, 2021 8:23 am

Hello and sorry for my English, as the title says I am lost in the configuration of I am lost in the configuration of zmeventnotification between the tutorials which are not up to date and the changes made in zmeventnotification. I tried to go through the https://github.com/pliablepixels/zmeventnotification
My, I don't understand a thing, if a charitable soul can help me.

tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 » Sat Mar 13, 2021 6:35 pm

Do you have a GPU or a TPU for object detection? This will change how its set up.

What don't you understand? What is the problem?
Have you installed the ES? Have you read the docs?

I installed everything needed for ES and GPU obj Det using the readthedocs docs.

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Sun Mar 14, 2021 7:24 am

how to say, my system does not detect any object and thus no notification in mqtt, I think that I have badly configured a parameter. My what I do not know precisely and I can not find a tutorial to install correctly with the last update.
I am french and I go through google translate.

Magic919
Posts: 489
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » Sun Mar 14, 2021 12:20 pm

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py  -c /etc/zm/objectconfig.ini -e 24524
Make sure the event number (24524) matches an alarm on your system. What does it do?

Check logs also.

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Mon Mar 15, 2021 11:32 am

zoneminder1.PNG
zoneminder1.PNG (6.3 KiB) Viewed 1265 times
nothing happens

Magic919
Posts: 489
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » Mon Mar 15, 2021 1:20 pm

Ok.

And the logs? Should be some zmesdetect***.log.

Code: Select all

egrep 'FAT|ERR|WAR' /var/log/zm/zmes*.log

Magic919
Posts: 489
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » Mon Mar 15, 2021 1:30 pm

Also please test

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh
Add the eventID and MonitorID.

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Mon Mar 15, 2021 5:38 pm

zoneminder erreur1.PNG
zoneminder erreur1.PNG (65.31 KiB) Viewed 1250 times
Magic919 wrote:
Mon Mar 15, 2021 1:20 pm
Ok.

And the logs? Should be some zmesdetect***.log.

Code: Select all

egrep 'FAT|ERR|WAR' /var/log/zm/zmes*.log

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Mon Mar 15, 2021 5:42 pm

Magic919 wrote:
Mon Mar 15, 2021 1:30 pm
Also please test

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh
Add the eventID and MonitorID.
zoneminder 5666.PNG
zoneminder 5666.PNG (8.09 KiB) Viewed 1250 times

Magic919
Posts: 489
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » Mon Mar 15, 2021 6:09 pm

Ok. The FAT error is FATAL, so it won't work.

It's throwing an exception and I'm not clever enough to know why.

Might be worth testing your config with this.

Code: Select all

sudo /usr/bin/zmeventnotification.pl --check-config
The author @asker might appear here if we are lucky.

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Mon Mar 15, 2021 7:40 pm

Magic919 wrote:
Mon Mar 15, 2021 6:09 pm
Ok. The FAT error is FATAL, so it won't work.

It's throwing an exception and I'm not clever enough to know why.

Might be worth testing your config with this.

Code: Select all

sudo /usr/bin/zmeventnotification.pl --check-config
The author @asker might appear here if we are lucky.
config1.PNG
config1.PNG (50.44 KiB) Viewed 1226 times
config2.PNG
config2.PNG (40.96 KiB) Viewed 1226 times
config3.PNG
config3.PNG (40.14 KiB) Viewed 1226 times

Magic919
Posts: 489
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » Tue Mar 16, 2021 8:16 am

That Picture URL is meant to point to your Zoneminder instance.

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Tue Mar 16, 2021 12:20 pm

Magic919 wrote:
Tue Mar 16, 2021 8:16 am
That Picture URL is meant to point to your Zoneminder instance.
zone3_LI.jpg
zone3_LI.jpg (557.84 KiB) Viewed 1195 times

hi, are you talking about what's surrounded.
After which it is in which file suddenly?

Magic919
Posts: 489
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » Tue Mar 16, 2021 1:36 pm

In secrets.ini. It's the first one, but you might as well check the other ones too.

Code: Select all

/etc/zm/secrets.ini:ZMES_PICTURE_URL=http://ZM_HOST/zm/index.php?view=image&eid=EVENTID&fid=alarm&width=600
/etc/zm/secrets.ini:ZM_PORTAL=http://ZM_HOST/zm
/etc/zm/secrets.ini:ZM_API_PORTAL=http://ZM_HOST/zm/api
ZM_HOST change to match your server.

titof2375
Posts: 61
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Tue Mar 16, 2021 6:12 pm

pas compris.PNG
pas compris.PNG (50 KiB) Viewed 1179 times
I don't understand how to do it

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests