Help with PTZ on Vstarcam_C24S.pm needs updating for 1.34.23
Posted: Tue Mar 16, 2021 1:41 am
I used to use the PTZ on my ip cameras when I was using zoneminder 1.30.4 with the file I included (with a txt extension instead if the .pm so it would allow me to attach it here). I had issues with a bunch of things I wont go into but I am using Xubuntu 18.04 and Zoneminder 1.34.23 and Vstarcam_C24S.pm doesn't seem to function anymore. I think the onvif.pm made "some sort of contact" I got an error in a log somewhere and it showed the address it tried and failed on so I saw what it had "called". It was not the proper format for my cameras but I don't remember what it actually "called".
I do use a webpage that redirects to this address which can only be accessed through the local network of course:and
These also launch a page that I have to physically close that is a blank white page that says "var result="ok"; "
I use these to set the cam position to preset 1 and 2 but I would like to use Zoneminder and be able to have full control again
I also can tell you when I was using 1.30.4 I modified the webpage in zoneminder and added two shortcuts to control that camera with this:
of course since the Vstarcam_C24S.pm "talking" properly to version 1.34.23, zmcontrol.pl isn't going to understand or be able to execute the command.
I just don't understand scripting very much. I muddle through ... I find code and modify it to meet my needs but .. I just cant grasp this enough to figure it out. I need the Vstarcam_C24S.pm to give the right information to zmcontrol in the proper format for my camera so that the zmcontrol commands work Vstarcam_C24S.pm needs to supply zmcontrol with the format ...
I hope this is understandable to those looking here lol ... Not sure if I explained it well enough. I tried to give all the info that I have and that may be needed or helpful
Everything in the C24S.pm for the commands seem to be accurate but I think it doesn't log in properly. I notice that the commands show but it seems to need before I just don't know where to insert it in and where it gets the information from. I may be wrong but if I remember correctly, the onvif.pm I think made a call to . That fails .. it has to be the format I first listed
Any help would be greatly appreciated
I do use a webpage that redirects to this address which can only be accessed through the local network of course:
Code: Select all
http://192.168.0.xxx:port/decoder_control.cgi?loginuse=loginName&loginpas=loginPassword&command=33&onestep=0
Code: Select all
http://192.168.0.xxx:port/decoder_control.cgi?loginuse=loginName&loginpas=loginPassword&command=31&onestep=0
I use these to set the cam position to preset 1 and 2 but I would like to use Zoneminder and be able to have full control again
I also can tell you when I was using 1.30.4 I modified the webpage in zoneminder and added two shortcuts to control that camera with this:
Code: Select all
#!/usr/bin/perl
#my @command1 = ("/usr/bin/zmcontrol.pl", "--preset=2", "--command=presetGoto", "--id=3");
#print "Content-type: text/html\n\n";
#system(@command1);
#print qq!<script>
#window.close()
#</script>!;
I just don't understand scripting very much. I muddle through ... I find code and modify it to meet my needs but .. I just cant grasp this enough to figure it out. I need the Vstarcam_C24S.pm to give the right information to zmcontrol in the proper format for my camera so that the zmcontrol commands work Vstarcam_C24S.pm needs to supply zmcontrol with the format ...
Code: Select all
http://IP:PORT/decoder_control.cgi?loginuse=xx&loginpas=xx&command=xx&onestep=x
I hope this is understandable to those looking here lol ... Not sure if I explained it well enough. I tried to give all the info that I have and that may be needed or helpful

Code: Select all
my $cmd = "decoder_control.cgi?command=18&";
Code: Select all
loginuse=xx&loginpas=xx&
Code: Select all
command=18&
Code: Select all
http://loginName:loginPassword@IP:PORT/decoder_control.cgi?command=xx
Any help would be greatly appreciated