ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.02k stars 271 forks source link

Having issues setting up Real Time Notifications with ZM ninja and ZM server #295

Closed lobo2714 closed 8 years ago

lobo2714 commented 8 years ago

Platform & OS Version -Server:Ubuntu 16.04 Phone:Iphone 6s -ZMninja version:1.1.96

Device details: I am trying to set up Real time alerts, but I am getting some errors

Step1: I follow these steps below

"Copy zmeventnotification.pl to /usr/bin
Edit /usr/bin/zmdc.pl and in the array @daemons (starting line 80) add 'zmeventnotification.pl' like this
Edit /usr/bin/zmpkg.pl and around line 260, right after the comment that says #this is now started unconditionally and right before the line that says runCommand( "zmdc.pl start zmfilter.pl" ); start zmeventnotification.pl by adding runCommand( "zmdc.pl start zmeventnotification.pl" ); like this
Make sure you restart ZM. Rebooting the server is better - sometimes zmdc hangs around and you'll be wondering why your new daemon hasn't started
To check if its running do a zmdc.pl status zmeventnotification.pl"

link: https://github.com/pliablepixels/zmeventserver

Step 2: Once I executed this line zmdc.pl status zmeventnotification.pl, below you can see the errors I am getting

"Can't open config file '/etc/zm/zm.conf': Permission denied at /usr/share/perl5/ZoneMinder/Config.pm line 119. BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 119. Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33. BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33. Compilation failed in require at /usr/bin/zmdc.pl line 65. BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 65."

Details I am just having issues configuring real time alerts. I am not sure what I need to do next. It seems that I have a permission problem, but I don't know what to do next or where to start.. need step by step help.

I also need confirmation that the steps ( step1 instructions) I am following are correct for this set up. I may be doing this all wrong.

Note: My system is working and operational as we speak. I just need to enable real time notifications so I can receive them on my phone while alerts pop up.

Thanks! Robert

pliablepixels commented 8 years ago

Hi, can you please post this issue @ https://github.com/pliablepixels/zmeventserver ? I'm closing this as this issue list is only for zmNinja