I am lost in the configuration of zmeventnotification

Discussion topics related to mobile applications for ZoneMinder
User avatar
asker
Posts: 1477
Joined: Sun Mar 01, 2015 12:12 pm

Re: I am lost in the configuration of zmeventnotification

Post by asker » Tue Mar 16, 2021 6:23 pm

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)
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

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

Re: I am lost in the configuration of zmeventnotification

Post by Magic919 » 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.

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

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Wed Mar 17, 2021 5:44 am

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 » Wed Mar 17, 2021 5:46 am

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 1365 times

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

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Wed Mar 17, 2021 6:03 am

I also put you my configuration of zmeventnotification.ini
notification1.PNG
notification1.PNG (41.01 KiB) Viewed 1362 times
notification2.PNG
notification2.PNG (34.17 KiB) Viewed 1362 times
notification3.PNG
notification3.PNG (40.65 KiB) Viewed 1362 times

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

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Wed Mar 17, 2021 6:04 am

notification4.PNG
notification4.PNG (33.18 KiB) Viewed 1362 times
notification5.PNG
notification5.PNG (37.41 KiB) Viewed 1362 times
nitification6.PNG
nitification6.PNG (44.14 KiB) Viewed 1362 times

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

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Wed Mar 17, 2021 6:05 am

notification7.PNG
notification7.PNG (42.98 KiB) Viewed 1362 times
notification8.PNG
notification8.PNG (47.19 KiB) Viewed 1362 times
notification 9.PNG
notification 9.PNG (46.11 KiB) Viewed 1362 times

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

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 » 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?

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

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 » Wed Mar 17, 2021 6:31 am

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 1361 times

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

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 » 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.
Attachments
Screenshot from 2021-03-17 00-35-40.jpg
"Users" in web GUI
Screenshot from 2021-03-17 00-35-40.jpg (210.22 KiB) Viewed 1361 times

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

Re: I am lost in the configuration of zmeventnotification

Post by titof2375 » Wed Mar 17, 2021 11:00 am

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 » Wed Mar 17, 2021 11:13 am

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 1347 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 » Wed Mar 17, 2021 11:18 am

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: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 » Wed Mar 17, 2021 6:02 pm

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: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: I am lost in the configuration of zmeventnotification

Post by tsp84 » Wed Mar 17, 2021 6:03 pm

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

https://zmeventnotification.readthedocs ... pendencies

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests