PTZ zmcontrol - no such file or directory

Forum for questions and support relating to the 1.24.x releases only.
Locked
karimba
Posts: 9
Joined: Mon Feb 16, 2009 10:12 am

PTZ zmcontrol - no such file or directory

Post by karimba »

Hi,
I've had to un-install and then re-install zoneminder on my box for some upgrade issues, debian lenny to squeeze.
Now i can't get the PTZ control to work anymore.
I have my control file located in the control folder, setup the camera for control etc, but whenever i issue a command by clicking on the icon, i get errors along the lines of:

zmcontrol[803]: FAT [Can't connect: No such file or directory]
apache2: /usr/bin/zmcontrol.pl --command=focusAuto --id=2=>
apache2: array (#012 0 => #012 array (#012 'file' => '/usr/share/zoneminder/ajax/control.php',#012 'line' => 1000,#012 'function' => 'ajaxError',#012 'args' => #012 array (#012 0 => '/usr/bin/zmcontrol.pl --command=focusAuto --id=2=>',#012 ),#012 ),#012 1 => #012 array (#012 'file' => '/usr/share/zoneminder/index.php',#012 'line' => 116,#012 'args' => #012 array (#012 0 => '/usr/share/zoneminder/ajax/control.php',#012 ),#012 'function' => 'require_once',#012 ),#012)

Any ideas please as it worked fine until i had to reinstall.

Cheers
jacknunyo
Posts: 9
Joined: Wed Dec 07, 2011 12:09 am

Re: PTZ zmcontrol - no such file or directory

Post by jacknunyo »

Hey, I've seen "zmcontrol[803]: FAT [Can't connect: No such file or directory]" when my .pm file had a package name that differs from the actual .pm file name.

Ie:
in /usr/share/perl5/ZoneMinder/Control/ I renamed my pm file from FoscamFI8918W.pm to Foscam.pm, I then had to change this line in the file to match the new file name:
package ZoneMinder::Control::FoscamFI8918w;
changed to
package ZoneMinder::Control::Foscam;

Hope that helps :)
karimba
Posts: 9
Joined: Mon Feb 16, 2009 10:12 am

Re: PTZ zmcontrol - no such file or directory

Post by karimba »

Hi,
That helped with the file not found error, but now getting loads of other errors
PHP Notice: Undefined variable: speed in /usr/share/zoneminder/ajax/control.php on line 47

when trying to move or use zoom, iris etc.

Cheers
jacknunyo
Posts: 9
Joined: Wed Dec 07, 2011 12:09 am

Re: PTZ zmcontrol - no such file or directory

Post by jacknunyo »

So when you configured the monitor for control in the ZM web console, did you select a pre-existing Control Type, or add one of your own? If you added one of your own, go back and check the Control Capabilities and make sure you have values for in the zoom, iris, etc, tabs.
(Open the cam monitor config, go to control tab, edit Control type, select yours from the Control Capabilities list, click through the tabs. If there a blanks for min and max speed, try 0)
I'm guessing this is where ZM is getting those values from in control.php.
Good luck!
karimba
Posts: 9
Joined: Mon Feb 16, 2009 10:12 am

Re: PTZ zmcontrol - no such file or directory

Post by karimba »

Hi,
Yeah, they had initially 0's in there, that's when the errors occurred. I put some numbers in there just to see, that stopped some of the errors.
Thing is, this worked fine in 1.24.2 but not at all in 1.24.4. I see there's a few other posts with similar issues regarding .4 and ptz cameras.

zmcontrol[30012]: FAT [Missing mandatory parameter 'panspeed']

Cheers
Locked