Hi, I have recently upgraded to 1.23.2 and cannot seem to get my controls to work. I have panasonic BCL10 and gadgetspot ptz ip cameras and have converted my script to the new perl module format. No arrows appear for the gadgetspot camera in the control frame, only the stop button. On the panasonic control frame the buttons are there but do not move the camera.
I used the zmcontrol.pl script from the command line and found that it needed the Module-Load perl module, so I installed that. The script now controls the cameras as expected from the command line, however the problems still persist in the web interface.
Any ideas on what has gone wrong?
PTZ not working through web interface.
Question. . .
where was your script located? Was it zmcontrol-panasonic-ip.pl?
I controlled them from the command line with the /usr/bin/zmcontrol.pl script. The modules for the protocols are now in /usr/lib64/site_perl/5.8.8/Zoneminder/Control as PanasonicIP.pm and GadgetspotIP.pm. The database lists the Protocols correctly for the cameras, and since the zmcontrol.pl script works from the command line, I assume this is some issue with the web interface.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
controls name change
I am trying to make a few new perl libs for camera control. I can see my current problem is the webpage is calling the Up / Down functions as Up / Down but in the axis/panasonic lib I used as a template it calls them moveConUp/moveConDown
To ensure future compatibility should I edit the name in my lib, or in the php?
(Clean install of 1.23.2)
03/05/08 14:22:56.943050 zmcontrol[30104].FAT [Can't access Down member of object of class ZoneMinder::Control::level1]
But running by hand works with these object names...
zmcontrol.pl --id 4 --command=moveConDown
zmcontrol.pl --id 4 --command=moveConUp
To ensure future compatibility should I edit the name in my lib, or in the php?
(Clean install of 1.23.2)
03/05/08 14:22:56.943050 zmcontrol[30104].FAT [Can't access Down member of object of class ZoneMinder::Control::level1]
But running by hand works with these object names...
zmcontrol.pl --id 4 --command=moveConDown
zmcontrol.pl --id 4 --command=moveConUp
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: controls name change
There is more than one kind of Up and Downcms wrote:I am trying to make a few new perl libs for camera control. I can see my current problem is the webpage is calling the Up / Down functions as Up / Down but in the axis/panasonic lib I used as a template it calls them moveConUp/moveConDown
To ensure future compatibility should I edit the name in my lib, or in the php?
(Clean install of 1.23.2)
03/05/08 14:22:56.943050 zmcontrol[30104].FAT [Can't access Down member of object of class ZoneMinder::Control::level1]
But running by hand works with these object names...
zmcontrol.pl --id 4 --command=moveConDown
zmcontrol.pl --id 4 --command=moveConUp
The moveConDown indicates the method for continuous movement down. There can also be absolute and relative versions of this. If your cam gets a move instruction and just keeps moving until you tell it to stop then it is continuous. You need to make sure the control capability you define via the GUI has 'Can Move Continuous' checked. If it also supports absolute or other types of movements then you need to add methods for those as well.
Phil