Search found 1552 matches

by asker
Thu Feb 18, 2016 3:37 pm
Forum: ZoneMinder 1.29.x
Topic: API: Can someone tell me why this doesn't work?
Replies: 9
Views: 6253

Re: API: Can someone tell me why this doesn't work?

Code: Select all

http://localhost/zm/api/events/711.json
by asker
Tue Feb 16, 2016 8:38 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Ok, i've tried to comment the following lines in api/config/app.php: //'Security' => [ // 'salt' => '__SALT__', //], Security.salt error is vanished but when i try to connect ZM with zm-ninja i get an api error. You can't comment those lines - add a random value instead. And I'd recommend you don't...
by asker
Tue Feb 16, 2016 2:18 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Are you familiar with using cakephp upgrade tool?
http://book.cakephp.org/3.0/en/upgrade-tool.html

I don't know how to use it - just throwing it out there - I need to get a PHP7 env
by asker
Mon Feb 15, 2016 11:47 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: zm-ninja monitor error

Okay, so I don't have a PHP7 environment, but give this a try (I don't know if it will work) cd /usr/share/zoneminder/api/lib mv Cake Cake_old git clone -b 2.x git://github.com/cakephp/cakephp.git ln -s cakephp/lib/Cake/ . Then try the API If it doesn't work, we may have to upgrade the cakephp versi...
by asker
Mon Feb 15, 2016 11:29 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: zm-ninja monitor error

So it looks like ZM packages Cake 2.5 while PHP7 needs 2.8. the version that is packaged with ZM lies in www/api/lib
by asker
Mon Feb 15, 2016 11:23 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: zm-ninja monitor error

I'm not sure I understand. What exactly did you change when installing the APIs and why?
by asker
Mon Feb 15, 2016 11:09 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: zm-ninja monitor error

Okay, so this confirms your problem is the APIs, not zmNinja - the APIs seem to be incompatible with PHP7. I see this "Cannot use X because the name is already in use" to be a common PHP 7 issue (see https://github.com/osTicket/osTicket-1.8/issues/2819 for example) I don't have a solution ...
by asker
Mon Feb 15, 2016 11:05 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: zm-ninja monitor error

I think the problem is PHP 7. Please post the output of http://server/zm/api/monitors.json
by asker
Mon Feb 15, 2016 10:57 pm
Forum: ZoneMinder 1.29.x
Topic: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Replies: 19
Views: 36558

Re: zm-ninja monitor error

Hi there, please post zmNinja questions in the mobile forum (even if its the desktop port). This is only for ZM 1.29 Having said that, your post seems to indicate the problem is not with zmNinja - its with the APIs in ZM. So from that perspective, this post is fine to stay here. Let's step back a bi...
by asker
Mon Feb 15, 2016 7:57 pm
Forum: ZoneMinder 1.28.x
Topic: API Howto for Debian 1.28
Replies: 9
Views: 6772

Re: API Howto for Debian 1.28

No, it is an existing installation v1.28.100. I would be happy to upgrade to 1.29, but as far as I understood there is no proved upgrade path known at the moment. The link you posted for instructions does a git clone https://github.com/ZoneMinder/ZoneMinder.git from the master branch - thats 1.29 t...
by asker
Mon Feb 15, 2016 4:12 pm
Forum: ZoneMinder 1.28.x
Topic: API Howto for Debian 1.28
Replies: 9
Views: 6772

Re: API Howto for Debian 1.28

Can you use Jessie/8 instead? Wheezy/7 uses an older version of apache and the instructions you are using are actually for 1.28 but you are building 1.29, so its a bit of a mess.
by asker
Mon Feb 15, 2016 2:00 pm
Forum: ZoneMinder 1.29.x
Topic: Is there a way to only create an event if x number of consecutive alarm frames?
Replies: 4
Views: 2738

Re: Is there a way to only create an event if x number of consecutive alarm frames?

As far as I remember, no, this is linked to a monitor, not a state. However, you could do this: 1. Create two copies of the same monitor, one with AlarmFrames = 1 and the other with AlarmFrames = X (whatever that X is) 2. In sunrise state, keep the one with 1 enabled and the one with X disabled 3. I...
by asker
Mon Feb 15, 2016 1:00 am
Forum: ZoneMinder 1.29.x
Topic: No streams; unsure if cams are working. Debian SID
Replies: 10
Views: 4764

Re: No streams; unsure if cams are working. Debian SID

There is no ScriptAlias line in /etc/apache2/conf-enabled/zoneminder.conf. I made zoneminder.conf a ln -s to the target /etc/zm/zm.conf, as per the wiki, and it does not have such a line. This is completely wrong. zm.conf and zoneminder.conf are two different files for different purposes. Which wik...
by asker
Mon Feb 15, 2016 12:13 am
Forum: ZoneMinder 1.29.x
Topic: No streams; unsure if cams are working. Debian SID
Replies: 10
Views: 4764

Re: No streams; unsure if cams are working. Debian SID

For PATH_ZMS, I have /usr/lib/zoneminder/cgi-bin/nph-zms Does Debian have a 1.29 package now? How did you install it? The line above is likely incorrect. Try changing it to /zm/cgi-bin/nph-zms You should also have a ScriptAlias line in /etc/apache.d/conf-enabled/zoneminder.conf what is that value?
by asker
Sun Feb 14, 2016 8:54 pm
Forum: ZoneMinder 1.29.x
Topic: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.
Replies: 8
Views: 6714

Re: ZM_SERVER_HOST set to localhost in config, but not found in Servers table.

Which OS are you running? A big change from 1.28 to 1.29 is the PATH_ZMS has changed. You need to change it. There are instructions for every OS. For example Step 7 here for Ubuntu http://zoneminder.readthedocs.org/en/stable/installationguide/ubuntu.html#easy-way-install-zoneminder-from-a-package-ub...