Search found 73 matches

by marcolino7
Mon Sep 21, 2015 4:10 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi bbunge,
I'm on Ubuntu 15.04, for now I discarded Debian until it will be fully supported.

Marco
by marcolino7
Mon Sep 21, 2015 3:30 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Did you follow this part of the guide at Edit /usr/share/zoneminder/www/api/app/Config/core.php Around line 218 you will see this: Configure::write('Session', array( 'defaults' => 'php' )); change it to Configure::write('Session', array( 'defaults' => 'php', 'cookie'=>'ZMSESSID' )); Sure, i did thi...
by marcolino7
Mon Sep 21, 2015 2:15 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi,
I ported all of my camera to new installation. I enabled ZM authentication, but seems API page still without authentication.
I have to publish on internet my ZM installation, and I need to enable authentication.

Thanks for help.

Regards

Marco
by marcolino7
Fri Sep 18, 2015 9:52 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi bbunge, grat job. I got ZM and API working on Ubuntu 15.04. In next days, i move all my config to new version. I have a question about native authentication with API. I call API with curl command from another server. Is there a way to authenticate, or grant access only to this server's IP? Reagrds
by marcolino7
Fri Sep 18, 2015 3:39 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

I did a fresh Install of Ubuntu 15.04 and following guide from bbunge without any kind of error I installed Zoneminder. ZM works, but API not. Error is the same: Not Found The requested URL /zm/api/host/getVersion.json was not found on this server. Apache/2.4.10 (Ubuntu) Server at 192.168.1.224 Port...
by marcolino7
Fri Sep 18, 2015 2:45 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

bbunge wrote:I got the API to work on Debian 8.2. Write up to follow.

bb
Hi bbunge,
do you provide a step to step guide? Ubuntu is too heavy for my virtual enviroment, Devian is lighter.
Many Thanks
by marcolino7
Fri Sep 18, 2015 11:59 am
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi,
I followed tutorial by bbunge, and now ZoneMinder start and it work. But calling the API test Page, I get this:


Not Found
The requested URL /zm/api/host/getVersion.json was not found on this server.
Apache/2.4.10 (Ubuntu) Server at 192.168.1.224 Port 80

Thanks
by marcolino7
Thu Sep 17, 2015 12:45 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi, It seems that the installation of ZM have not created the database inside mysql: mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | +--------------------+ 3 rows in set (0.00 sec) Can anyone help me? Regards
by marcolino7
Thu Sep 17, 2015 12:19 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Running systemctl status zoneminder.service I got this: â zoneminder.service - ZoneMinder CCTV recording and surveillance system Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2015-09-17 10:33:55 CEST; 3h 44min ag...
by marcolino7
Thu Sep 17, 2015 8:35 am
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi, I installed an Ubuntu 15.04 Server. I followed step to install zoneminder with api from GitHub. When i fire this command: systemctl restart zoneminder I got this error: Job for zoneminder.service failed. See "systemctl status zoneminder.service" and "journalctl -xe" for detai...
by marcolino7
Wed Sep 16, 2015 3:33 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

Hi asker, i tried to install a new server with latest version of the ZM and API using instruction on link you sent, but i did it on Debian not on Ubuntu, and I'm stuck, because ZM does not start, and I'm not able to go forward on this. If you are able to help me, I can try to go ahead on this instal...
by marcolino7
Wed Sep 16, 2015 2:17 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Re: Set function from API does not work

The Controller for this is MonitorsController.php inside the API directory. If I recall correctly, the monitor is not restarted when you edit the mode. Take a look at daemonControl inside that file - you will probably need to restart that monitor. Once you test and have it working, consider doing a...
by marcolino7
Wed Sep 16, 2015 12:55 pm
Forum: ZoneMinder 1.28.x
Topic: Set function from API does not work
Replies: 50
Views: 23524

Set function from API does not work

Hi, I have Zoneminder 1.28.100, and I have installed the API to remote control ZM function from an home automation software. I use this command to switch from Modect to Monitor: curl -XPOST htetp://zoneminder/zm/api/monitors/1.json -d "Monitor[Function]=Monitor" On ZoneMinder web interface...