Page 1 of 5

I am lost in the configuration of zmeventnotification

Posted: Sat Mar 13, 2021 8:23 am
by titof2375
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.

Re: I am lost in the configuration of zmeventnotification

Posted: Sat Mar 13, 2021 6:35 pm
by tsp84
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.

Re: I am lost in the configuration of zmeventnotification

Posted: Sun Mar 14, 2021 7:24 am
by titof2375
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.

Re: I am lost in the configuration of zmeventnotification

Posted: Sun Mar 14, 2021 12:20 pm
by Magic919

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.

Re: I am lost in the configuration of zmeventnotification

Posted: Mon Mar 15, 2021 11:32 am
by titof2375
zoneminder1.PNG
zoneminder1.PNG (6.3 KiB) Viewed 22717 times
nothing happens

Re: I am lost in the configuration of zmeventnotification

Posted: Mon Mar 15, 2021 1:20 pm
by Magic919
Ok.

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

Code: Select all

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

Re: I am lost in the configuration of zmeventnotification

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

Code: Select all

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

Re: I am lost in the configuration of zmeventnotification

Posted: Mon Mar 15, 2021 5:38 pm
by titof2375
zoneminder erreur1.PNG
zoneminder erreur1.PNG (65.31 KiB) Viewed 22702 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

Re: I am lost in the configuration of zmeventnotification

Posted: Mon Mar 15, 2021 5:42 pm
by titof2375
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 22702 times

Re: I am lost in the configuration of zmeventnotification

Posted: Mon Mar 15, 2021 6:09 pm
by Magic919
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.

Re: I am lost in the configuration of zmeventnotification

Posted: Mon Mar 15, 2021 7:40 pm
by titof2375
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 22678 times
config2.PNG
config2.PNG (40.96 KiB) Viewed 22678 times
config3.PNG
config3.PNG (40.14 KiB) Viewed 22678 times

Re: I am lost in the configuration of zmeventnotification

Posted: Tue Mar 16, 2021 8:16 am
by Magic919
That Picture URL is meant to point to your Zoneminder instance.

Re: I am lost in the configuration of zmeventnotification

Posted: Tue Mar 16, 2021 12:20 pm
by titof2375
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 22647 times

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

Re: I am lost in the configuration of zmeventnotification

Posted: Tue Mar 16, 2021 1:36 pm
by Magic919
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.

Re: I am lost in the configuration of zmeventnotification

Posted: Tue Mar 16, 2021 6:12 pm
by titof2375
pas compris.PNG
pas compris.PNG (50 KiB) Viewed 22631 times
I don't understand how to do it