Search found 1552 matches

by asker
Sat Feb 06, 2016 2:03 pm
Forum: ZoneMinder 1.29.x
Topic: Clean Install API Permission Issues
Replies: 24
Views: 38929

Re: Clean Install API Permission Issues

To be clear we are on the same page: a) The API ties into ZM auth. If you have ZM auth (OPT_USE_AUTH) enabled in ZM, the APIs will require you to logging into ZM first and will work only from the same browser instance b) If you have ZM auth disabled (which is default when you install a fresh package...
by asker
Sat Feb 06, 2016 1:55 pm
Forum: ZoneMinder 1.29.x
Topic: Clean Install API Permission Issues
Replies: 24
Views: 38929

Re: Clean Install API Permission Issues

What do you mean by built in authentication? OPT_USE_AUTH in ZM or something else?

I have OPT_USE_AUTH enabled too. I installed on a clean Ubuntu 15 system
by asker
Sat Feb 06, 2016 1:17 pm
Forum: ZoneMinder 1.29.x
Topic: Clean Install API Permission Issues
Replies: 24
Views: 38929

Re: Clean Install API Permission Issues

I just installed iconnors new 1.29 PPA Please follow these instructions exactly https://github.com/pliablepixels/zmNinja/wiki/Easy-Way:-Ubuntu-15,-Install-ZoneMinder-API-from-Package I had no problems getting APIs to work (and as it turns out, I did have the chown instructions as part of my instruct...
by asker
Sat Feb 06, 2016 1:00 pm
Forum: ZoneMinder 1.29.x
Topic: Clean Install API Permission Issues
Replies: 24
Views: 38929

Re: Clean Install API Permission Issues

Okay, this problem is more fundamental.Looks like you are using the most recent 1.29-stable ppa that iconnor just released right?
I haven't tried it yet so I'm going to have to try this myself, which I'll do later today.
by asker
Sat Feb 06, 2016 12:52 pm
Forum: Mobile Apps and Event Server
Topic: Important Note: Please upgrade ZM to 1.29, zmNinja to 1.0.6, zmEventServer to 0.7
Replies: 0
Views: 2388

Important Note: Please upgrade ZM to 1.29, zmNinja to 1.0.6, zmEventServer to 0.7

Hi folks, For those who have been running zmNinja for a while, an important request: a) Please upgrade ZM to 1.29 stable - it was released on Feb 05 by knnnigget (Fedora/CentOS) and iconnor (Ubuntu). It includes some important fixes that zmNinja needs. zmNinja will not work with older versions - I'v...
by asker
Sat Feb 06, 2016 12:45 pm
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl Interface Issue

I'm glad it worked for you, but I don't see the changes in your code at https://github.com/waynieack/HikvisionZM/blob/master/motionstream.pl --> have you uploaded it? Specifically, my theory (based on limited testing is) 1. if zmMemRead for mon $x fails for shared_data:valid, you need to invalidate ...
by asker
Sat Feb 06, 2016 12:34 pm
Forum: ZoneMinder 1.29.x
Topic: Clean Install API Permission Issues
Replies: 24
Views: 38929

Re: Clean Install API Permission Issues

Code: Select all

sudo chown -R www-data:www-data /usr/share/zoneminder/api
I'm a little surprised why the package did not do this, since you are following the package instructions
by asker
Sat Feb 06, 2016 12:29 pm
Forum: Mobile Apps and Event Server
Topic: open source ZM client: ZmNinja (uses ZoneMinder APIs)
Replies: 100
Views: 85757

Re: open source ZM client: ZmNinja (uses ZoneMinder APIs)

Hey thanks Biloxi! Always good to hear nice things :D
by asker
Fri Feb 05, 2016 1:02 am
Forum: Mobile Apps and Event Server
Topic: zmNinja: exit live view vs exit event view option, ergonomy
Replies: 1
Views: 2539

Re: zmNinja: exit live view vs exit event view option, ergonomy

True, UI consistency is important. Someone else also suggested this but I forgot about it.
Would you mind creating github issues so I can tag/track them when I release?

I already added your issue here https://github.com/pliablepixels/zmNinja/issues/158 (and fixed it)

thx
by asker
Thu Feb 04, 2016 5:16 pm
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl Interface Issue

Right, I should plough this into zmeventserver as soon as I get time to test it more. As it stands today, zmeventserver also likely misses events between the reload_monitor interval if a zmc crashes in between (but not if zm restarts thanks to zmdc). With respect to not changing zmdc.pl, I guess tha...
by asker
Thu Feb 04, 2016 4:16 pm
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl Interface Issue

I did a bit of experimentation (and took a hint from zmwatch.pl) a) You detect your handle is invalid when zmMemRead fails (tip of the hat to zmwatch) b) if above fails, you invalidate your current handle and do zmMemVerify. On looking at the code for zmMemRead, it already calls zmMemVerify, so I gu...
by asker
Thu Feb 04, 2016 3:08 pm
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl Interface Issue

I got what you meant, all 3 times. I don't happen to agree with the approach. Our difference in perspective is that you are attaching the same relevance to zmc and his script. I'm not. I actually think doing this inside functions.php is doing things at a more low-level because one can, not because o...
by asker
Thu Feb 04, 2016 2:38 pm
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl Interface Issue

Right, that is how the flow works, but I really don't think one should put in a personal perl script restart inside functions.php - that's too core a file. His function ideally should be restarted when communication to mapped memory fails. I don't think he needs to get a trigger when a zmc fails - i...
by asker
Thu Feb 04, 2016 12:58 pm
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl API Issue

Actually, a better place to put it is in the array list of zmdc.pl - so that if the process crashes, it will be automatically restarted as ZM watches all daemons in this list. Specifically, there are two places to put in (which is what I do in zmeventserver) https://github.com/pliablepixels/zmevents...
by asker
Wed Feb 03, 2016 1:26 am
Forum: ZoneMinder 1.28.x
Topic: ZM Perl Interface Issue
Replies: 21
Views: 9617

Re: ZM Perl API Issue

Zm perl modules use shared memory to communicate with zm core processes. After Zm restarts those handles are invalid. One solution is to start an stop your script along with zm. Google for zmeventserver and see how I've attached it to zmdc.pl -- in addition to being in sync it will also be restarted...