"set control preset" window is empty (bug corecte

Forum for questions and support relating to the 1.24.x releases only.
Locked
bokusouchi
Posts: 13
Joined: Sat Jan 31, 2009 10:36 pm

"set control preset" window is empty (bug corecte

Post by bokusouchi »

hello all

As i am in the process of writing a control module for the quickcam sphere ,
I noticed that the "set control preset" window comes up empty ,
when one clicks on the control "set" button .

I noticed some php errors in the apache error log and
traced this to the files :
/var/www/html/includes/actions.php
and
/var/www/html/skins/classic/views/controlpreset.php

(the version i use is 3740)

here are the diffs:

Code: Select all

[root@venus includes]# diff /usr/software/ZoneMinder-1.24.0/web/includes/actions.php  /var/www/html/includes/actions.php
857,858c857,858
<                 }
<                 $sockFile = ZM_PATH_SOCKS.'/zmcontrol-'.$monitor[Id].'.sock';
---
>               }
>                 $sockFile = ZM_PATH_SOCKS.'/zmcontrol-'.$monitor['Id'].'.sock';

Code: Select all

[root@venus includes]# diff /usr/software/ZoneMinder-1.24.0/web/skins/classic/views/controlpreset.php /var/www/html/skins/cla
ssic/views/controlpreset.php
39c39,40
<     $presets[$i] = "$SLANG['Preset'] $i";
---
>     $presets[$i] = $SLANG['Preset']." ".$i ;
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

If you are using the DVD install disk, do the following. You error looks familiar but I'm not around my notes right now to check.

http://newvisionantenna.com/br549/controlcap.tgz

Move it to the correct directory and delete the old controlcap.php file. Then run tar xfvz controlcap.tgz and it will fix it. I have already got the Orbit control script for mjpg_Streamer and it's now included in all new builds of 1.24.0. It's called mjpgStreamer.PM and was written by a fellow Zoneminder user.

You should be able to run "locate mjpgStreamer.pm" from the command line to see if you have the file. You can also install mjpg_streamer on the DVD edition as it's available for Kubuntu 8.04. You then start up a stream and point Zoneminder to the local server. If you need any further help let me know.

Disregard, upon reading again it looks like you might have something else wrong. I figured I would leave what I typed so you would know there is a control script for the Orbit using mjpg_streamer.
bokusouchi
Posts: 13
Joined: Sat Jan 31, 2009 10:36 pm

Post by bokusouchi »

Thanks , i know there is a script for the orbit with using mjpg_streamer.
(it works fine for remote cameras ).
the one i am working on , is for orbit cam running locally (without mjp streamer) .

As for the bug and fix i mentioned . it is not in the controlcap windows , but
in the small window that appear after clicking the set button in the controls
of the monitor window .

To get that , one needs to have checked "has preset" and "can set preset"
in the controlcap window you mentionned .
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for taking the time to track that down. I have done a fix here which will be in the next SVN.
Phil
Locked