I am lost in the configuration of zmeventnotification

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: I am lost in the configuration of zmeventnotification

Post by asker »

Magic919, thanks for helping here - but this thread is a challenge.

@titof2375: ES+hooks is well documented and updated. It is possible you are either facing issues due to translation to French, and/or, you may not be particularly hands on with the terminal and linux based configuration. The latter is particularly important for you to get started.

I frankly have a lack of time to help out at the level that I feel you need help looking at your responses. May I suggest you instead look at using pre-configured dockers of ES+Hooks? https://github.com/dlandon/zoneminder.machine.learning is one such docker.

I know you've been at it for a while, so I'm not knocking you for trying, but I do feel you may be better off with a dockerized image. The other alternate is to potentially see if someone is willing to just help you install and configure it for you for a fee (again, not me, but maybe someone else)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 »

Code: Select all

nano /etc/zm/secrets.ini
Then add the lines you need.

Then save and exit. Control X, Y

Make sure you don’t add ZM_HOST and use YOUR server details.

PS. the chief has arrived.
-
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

then on the tutorial followed I had to set the parameter in
cd /etc/zm

nano zmeventnotification.ini
it's always up to date
Last edited by titof2375 on Wed Mar 17, 2021 5:52 am, edited 1 time in total.
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

Magic919 wrote: Tue Mar 16, 2021 6:25 pm

Code: Select all

nano /etc/zm/secrets.ini
Then add the lines you need.

Then save and exit. Control X, Y
Make sure you don’t add ZM_HOST and use YOUR server details.

PS. the chief has arrived.
rereee.PNG
rereee.PNG (43.74 KiB) Viewed 16454 times
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

I also put you my configuration of zmeventnotification.ini
notification1.PNG
notification1.PNG (41.01 KiB) Viewed 16451 times
notification2.PNG
notification2.PNG (34.17 KiB) Viewed 16451 times
notification3.PNG
notification3.PNG (40.65 KiB) Viewed 16451 times
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

notification4.PNG
notification4.PNG (33.18 KiB) Viewed 16451 times
notification5.PNG
notification5.PNG (37.41 KiB) Viewed 16451 times
nitification6.PNG
nitification6.PNG (44.14 KiB) Viewed 16451 times
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

notification7.PNG
notification7.PNG (42.98 KiB) Viewed 16451 times
notification8.PNG
notification8.PNG (47.19 KiB) Viewed 16451 times
notification 9.PNG
notification 9.PNG (46.11 KiB) Viewed 16451 times
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 »

You have a typo in your secrets.ini file in your PICTURE line. There's a : where a / should be after your IP address.

Did you follow the docs and setup auth in zoneminder options with a hash passphrase and append IP off? Are those credentials correct for a user you created in the zoneminder options and that that user has access to the API?
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 »

Here is a picture of what I mean for the options. Where it has the big blur, you need to input a random string to use for hashing, doesnt matter what it is. Also are your ports forwarded for the websockets so that the ES can talk to zmNinja? port 9000 is default in the configs if your using zmNinja mobile. You can test using zmNinja on desktop on local network for now I think. IDK if pictures will work but you should at least get a desktop app notification?
Attachments
Screenshot from 2021-03-17 00-26-17.jpg
Screenshot from 2021-03-17 00-26-17.jpg (245.77 KiB) Viewed 16450 times
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 »

You also need to create a user and password for the ES to talk with zoneminder API's in the zoneminder webgui. Here is a picture of that screen it is in "Options > Users". I have "api_user" setup just for the ES. You could use the "admin" account but I think its good practice to create a regular account. Once you have the user and password created you need to place those in secrets.ini.

Did you follow the readthedocs and install the Perl modules needed? numpy, pillow and all that stuff for python? OpenCV and OpenCV contrib 4.3+ ?

Let me know if this is hard to understand and ill try and use google translate.
Attachments
"Users" in web GUI
"Users" in web GUI
Screenshot from 2021-03-17 00-35-40.jpg (210.22 KiB) Viewed 16450 times
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

tsp84 wrote: Wed Mar 17, 2021 6:06 am You have a typo in your secrets.ini file in your PICTURE line. There's a : where a / should be after your IP address.

Did you follow the docs and setup auth in zoneminder options with a hash passphrase and append IP off? Are those credentials correct for a user you created in the zoneminder options and that that user has access to the API?
Are you talking about this line ZMES_PICTURE_URL = http: //192.168.1.5: zm / portal / zm / index.php? view = image & eid = EVENTID & fid = objdetect & width = 600
no ip is http://192.168.1.5:zm to have zoneminder
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

tsp84 wrote: Wed Mar 17, 2021 6:41 am You also need to create a user and password for the ES to talk with zoneminder API's in the zoneminder webgui. Here is a picture of that screen it is in "Options > Users". I have "api_user" setup just for the ES. You could use the "admin" account but I think its good practice to create a regular account. Once you have the user and password created you need to place those in secrets.ini.

Did you follow the readthedocs and install the Perl modules needed? numpy, pillow and all that stuff for python? OpenCV and OpenCV contrib 4.3+ ?

Let me know if this is hard to understand and ill try and use google translate.
I just made a user and I put it in secret.ini
c'est bon.PNG
c'est bon.PNG (21.65 KiB) Viewed 16436 times
something else the ip of zm replaces in secret.ini the words portal?
titof2375
Posts: 66
Joined: Sat Dec 12, 2020 2:32 pm

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 »

tsp84 wrote: Wed Mar 17, 2021 6:41 am You also need to create a user and password for the ES to talk with zoneminder API's in the zoneminder webgui. Here is a picture of that screen it is in "Options > Users". I have "api_user" setup just for the ES. You could use the "admin" account but I think its good practice to create a regular account. Once you have the user and password created you need to place those in secrets.ini.

Did you follow the readthedocs and install the Perl modules needed? numpy, pillow and all that stuff for python? OpenCV and OpenCV contrib 4.3+ ?

Let me know if this is hard to understand and ill try and use google translate.
Did you follow the readthedocs and install the Perl modules needed? numpy, pillow and all that stuff for python? OpenCV and OpenCV contrib 4.3+ ?

on this point I no longer know, we see how?
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 »

You have a few typos in your secrets.ini file

Code: Select all

ZM_PORTAL=http://192.168.1.5:zm/portal/zm
should be

Code: Select all

ZM_PORTAL=http://192.168.1.5/zm
ZM_API_PORTAL=http://192.168.1.5/zm/api
I see in your zmeventnotification.ini that you have ssl enabled and certs set up with the default settings;

Code: Select all

[ssl]
enable = yes
cert = /etc/zm/apache2/ssl/zoneminder.crt
key = /etc/zm/apache2/ssl/zoneminder.key


Did you get ssl certs and name them like that and place them in your /etc/apache2/ssl/ dir? If not, you need to get LetsEncrypt certs or make some self signed ones. If you do have those certs set up and working you should also use those for ES. To check if you have those certs copy and paste the output of

Code: Select all

ls -al /etc/apache2/ssl
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 »

The dependancies section of the readthedocs is what I mean for the perl modules and numpy and stuff.

https://zmeventnotification.readthedocs ... pendencies
Post Reply