Hi,
I'm using ZoneMinder v1.28.2 from the iconnor PPA. When I try to control the camera (Axis P3364-LVE), I get an error logged, "Can't load ZoneMinder::Control::AxisV2", and a dialog box pops up with the message "Control response was status = undefined message = /usr/bin/zmcontrol.pl --step=8 --command=zoomRelTele --id=1=>". It doesn't matter which PTZ command I try to execute; I get a similar message and error posted.
Can anyone point me to a solution? The AxisV2.pm script was last updated in 2008. Is there a newer version of this script and, if so, where?
The only detailed example of creating a control script was for a Foscam camera. I'm not skilled at Perl and not sure how to apply this to Axis cameras. I've read the Axis API docs and the AxisV2.pm looks OK.
Thanks for any help.
Can't load ZoneMinder::Control::AxisV2
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can't load ZoneMinder::Control::AxisV2
The latest source code can always be found on our github site.
Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control
One way to verify a zoneminder ptz control script does not contain any errors is to call it from the command line:
It will return nothing at all if the script has no errors and is compatible with the version of zoneminder you currently have.
Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control
One way to verify a zoneminder ptz control script does not contain any errors is to call it from the command line:
Code: Select all
sudo perl /path/to/your/ptz/control/script/AxisV2.pm
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can't load ZoneMinder::Control::AxisV2
Thanks for your response. It was very helpful. However, I don't understand how passing the script through the perl interpreter can tell me that the script will work with any particular version of zoneminder. It appears that this would only verify that the script was syntactically correct with respect to perl.knnniggett wrote:The latest source code can always be found on our github site.
Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control
One way to verify a zoneminder ptz control script does not contain any errors is to call it from the command line:It will return nothing at all if the script has no errors and is compatible with the version of zoneminder you currently have.Code: Select all
sudo perl /path/to/your/ptz/control/script/AxisV2.pm
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Can't load ZoneMinder::Control::AxisV2
Because we've changed the way certain variables are handled, particularly Barewords.sgharp wrote:Thanks for your response. It was very helpful. However, I don't understand how passing the script through the perl interpreter can tell me that the script will work with any particular version of zoneminder. It appears that this would only verify that the script was syntactically correct with respect to perl.
If you run it through Perl, it will tell you exactly what needs to be updated.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Can't load ZoneMinder::Control::AxisV2
This GitHub link provided a script that solved the problem. Thanks very much.knnniggett wrote:The latest source code can always be found on our github site.
Specifically, the script you are looking for is here:
https://github.com/ZoneMinder/ZoneMinde ... er/Control