Page 3 of 4

Posted: Fri Sep 25, 2009 9:21 pm
by namwons
Update. On a whim I deleted the camera and remade it and it seems to be working.

Very nice work! thanks.









So I have the cs130A and can get images but not control it with this module.

tail -f /var/log/syslog

Sep 25 15:19:45 icu zmcontrol[28678]: ERR [Error check failed: '500 No Host option provided']


I have the authentication (same as image) setup but when I click control arrows I get the above message.


Thanks

Posted: Sat Jan 09, 2010 4:13 am
by newlinux
I've got the aicn747w working fine, but no PTZ. I've followed the instructions - but I don't get any movement when pressing arrows, even after pressing one of the preset buttons. I looked at the running processes and I don't see a zmcontrol - any trick to making that run? I think that's my issue.

Thanks!

Re: Audio dump script

Posted: Thu Jan 14, 2010 8:25 am
by c0mputerking
Kind of curious but where/how do i use the audio dump/push scripts???
knnniggett wrote:
Setarcos wrote:For those so inclined, I also hacked together an audio dump script for this camera for capturing audio from the built-in microphone.

You can grab it here.

An accompanying audio push script is also available here.
I see that incorporating audio into Zoneminder is on the official To-Do list. However, in the meantime can you describe how to add these scripts to an existing Zoneminder 1.24.2 system? Or is it not that simple?

ERRORS

Posted: Fri Feb 05, 2010 8:23 am
by c0mputerking
I just setup an airlink101 on a ubuntu 9.04 server running zoneminder 1.24.2 followed the intructions in this post but seem to be getting errors anyone know how to fix these

I get this when press a pan or a tilt button

Code: Select all

Control response was status = undefined
message = /usr/bin/zmcontrol.pl --panstep=0 --command=moveRelRight --id=1=>
I get this when i press the home button

Code: Select all

Control response was status = undefined
message = /usr/bin/zmcontrol.pl --command=presetHome --id=1=>
I get this in the logs looks fine

Feb 5 01:18:10 home zmcontrol[15037]: INF [Starting control server 1/SkyIPCam7xx ]
Feb 5 01:18:10 home zmcontrol[15039]: INF [Control server 1/SkyIPCam7xx starting at 10/02/05 01:18:10]

Posted: Sat Feb 27, 2010 2:59 am
by urge4vert
I'd just like to update this thread since I'm having the same problem. My best guess is this is something to do with the latest version of Zoneminder. Is there anyway to bump this out so someone else outside of the thread might recognize this problem?

02/26/10 18:55:16.797840 zmcontrol[20784].ERR [Error check failed: '500 No Host option provided']

I've had this cam working for quite some time. I recently upgraded my system and Zoneminder. Everything is workin EXCEPT for the movement. This is what I see

02/26/10 18:55:05.154601 zmcontrol[20781].INF [Starting control server 6/SkyIPCam7xx]
02/26/10 18:55:05.157158 zmcontrol[20784].INF [Control server 6/SkyIPCam7xx starting at 10/02/26 18:55:05]
02/26/10 18:55:06.194639 zmcontrol[20784].ERR [Error check failed: '500 No Host option provided']

namwons wrote:Update. On a whim I deleted the camera and remade it and it seems to be working.

Very nice work! thanks.

So I have the cs130A and can get images but not control it with this module.

tail -f /var/log/syslog

Sep 25 15:19:45 icu zmcontrol[28678]: ERR [Error check failed: '500 No Host option provided']

I have the authentication (same as image) setup but when I click control arrows I get the above message.


Thanks

Re: Audio dump script

Posted: Wed Mar 24, 2010 10:14 pm
by Setarcos
c0mputerking wrote:Kind of curious but where/how do i use the audio dump/push scripts???
knnniggett wrote:
Setarcos wrote:For those so inclined, I also hacked together an audio dump script for this camera for capturing audio from the built-in microphone.

You can grab it here.

An accompanying audio push script is also available here.
I see that incorporating audio into Zoneminder is on the official To-Do list. However, in the meantime can you describe how to add these scripts to an existing Zoneminder 1.24.2 system? Or is it not that simple?
These scripts are nothing more than a proof of concept for getting audio in and out of the camera, and not specifically targeted towards ZM. I wrote them before published specs were available for the protocols, and some of my assumptions were just plain wrong. That being said, the original scripts do work, but could be improved by incorporating the info from the protocol documentation.

Edit: I found a more recent CGI spec that incorporates the 'True server push MJPEG' feature (/cgi/mjpg/mjpg.cgi) added in 1.0.0-24 firmware for the Airlink101 AIC747W and later versions of Trendnet cameras. I also spent some time incorporating the specs into the scripts and managed to clean things up a bit in the process.

Posted: Sat Mar 27, 2010 8:23 am
by Setarcos
I finally manged to get my ZM setup upgraded to 1.24.2 and confirmed the control module works properly with the 1.24.x branch as well as 1.23.x.

Posted: Sun Mar 28, 2010 7:33 am
by Setarcos
urge4vert wrote:I'd just like to update this thread since I'm having the same problem. My best guess is this is something to do with the latest version of Zoneminder. Is there anyway to bump this out so someone else outside of the thread might recognize this problem?

02/26/10 18:55:16.797840 zmcontrol[20784].ERR [Error check failed: '500 No Host option provided']

I've had this cam working for quite some time. I recently upgraded my system and Zoneminder. Everything is workin EXCEPT for the movement. This is what I see

02/26/10 18:55:05.154601 zmcontrol[20781].INF [Starting control server 6/SkyIPCam7xx]
02/26/10 18:55:05.157158 zmcontrol[20784].INF [Control server 6/SkyIPCam7xx starting at 10/02/26 18:55:05]
02/26/10 18:55:06.194639 zmcontrol[20784].ERR [Error check failed: '500 No Host option provided']

namwons wrote:Update. On a whim I deleted the camera and remade it and it seems to be working.

Very nice work! thanks.

So I have the cs130A and can get images but not control it with this module.

tail -f /var/log/syslog

Sep 25 15:19:45 icu zmcontrol[28678]: ERR [Error check failed: '500 No Host option provided']

I have the authentication (same as image) setup but when I click control arrows I get the above message.


Thanks
It sounds like something is amiss with what is getting passed to the underlying Net::HTTP module via zmcontrol.pl. Can you provide a screenshot/text dump of your Control Tab?

Posted: Sun Apr 25, 2010 8:31 pm
by shinomen
I am getting this same error message when trying to use any of the controls

Code: Select all

Control response was status = undefined 
message = /usr/bin/zmcontrol.pl --panstep=0 --command=moveRelRight --id=1=>
When looking at the httpd/error_log this mesage shows up

Code: Select all

Can't locate Module/Load.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) at /usr/local/bin/zmcontrol.pl line 47.
BEGIN failed--compilation aborted at /usr/local/bin/zmcontrol.pl line 47.
[Sun Apr 25 16:30:57 2010] [error] [client 192.168.1.81] /usr/local/bin/zmcontrol.pl --panstep=0 --command=moveRelRight --id=1=>, referer: http://192.168.1.198/zm/index.php?view=watch&mid=1
[Sun Apr 25 16:30:57 2010] [error] [client 192.168.1.81] array (\n  0 => \n  array (\n    'file' => '/var/www/html/zm/ajax/control.php',\n    'line' => 1000,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => '/usr/local/bin/zmcontrol.pl --panstep=0 --command=moveRelRight --id=1=>',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/html/zm/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/html/zm/ajax/control.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.1.198/zm/index.php?view=watch&mid=1
Anyone have an idea on how to fix this?

Posted: Mon Apr 26, 2010 4:05 am
by Setarcos
shinomen wrote:I am getting this same error message when trying to use any of the controls

Code: Select all

Can't locate Module/Load.pm in @INC
Check out the thread here: http://www.zoneminder.com/forums/viewtopic.php?t=12916

Posted: Mon Apr 26, 2010 12:40 pm
by shinomen
I saw that thread but I'm not good with linux so I had trouble trying to install the libmodule-load-perl. What I did was downloaded the .pm file from the link that was provided in that topic. http://sear.cpan.org/dist/Module-Load/

Then I created the Load.pm file under /usr/lib/perl5/site_perl/5.8.8/Module/

I rebooted the machine and now when I go to edit settings on my camera or look at my camera I get a blank screen. I removed the file but I still get the error with loading my camera.

So I guess my question is: What do I need to do to install this Load.pm module under CentOS 5.3?

Thanks.

Posted: Mon Apr 26, 2010 8:28 pm
by knight-of-ni
This should do it:

Code: Select all

sudo yum install perl-Module-Load
If you have not already, I recommend you read the installation instructions for Zoneminder on CentOS in the wiki and verify you are not missing additional prerequisites. Simplest thing to do would be to just copy and paste the "yum install" lines of code into a command prompt after adding the rpmforge repository.

Posted: Mon Apr 26, 2010 10:52 pm
by shinomen
Thank you that did work. I feel like an idiot because I did do something similar but i think I didn't use capitalization in the right place or mis-typed something.

Thanks again.

patch for SkyIPCam7xx.pm

Posted: Sun May 09, 2010 10:45 pm
by logicos94
Can I suggest a little patch for "SkyIPCam7xx.pm" with ZoneMinder 1.24.2 ?

Code: Select all

--- SkyIPCam7xx.pm      2008-09-16 00:40:04.000000000 +0200
+++ /usr/local/share/perl/5.10.0/ZoneMinder/Control/SkyIPCam7xx.pm      2010-05-09 23:49:32.000000000 +0200
@@ -126,6 +126,12 @@

 sub reset
 {
+   my $self = shift;
+   $self->cameraReset();
+}
+
+sub cameraReset
+{
     my $self = shift;
     Debug( "Camera Reset" );
     my $cmd = "/admin/ptctl.cgi?move=reset";
Kind regards

Re: patch for SkyIPCam7xx.pm

Posted: Mon May 10, 2010 2:09 pm
by Setarcos
logicos94 wrote:Can I suggest a little patch for "SkyIPCam7xx.pm" with ZoneMinder 1.24.2 ?

Code: Select all

--- SkyIPCam7xx.pm      2008-09-16 00:40:04.000000000 +0200
+++ /usr/local/share/perl/5.10.0/ZoneMinder/Control/SkyIPCam7xx.pm      2010-05-09 23:49:32.000000000 +0200
@@ -126,6 +126,12 @@

 sub reset
 {
+   my $self = shift;
+   $self->cameraReset();
+}
+
+sub cameraReset
+{
     my $self = shift;
     Debug( "Camera Reset" );
     my $cmd = "/admin/ptctl.cgi?move=reset";
Kind regards
Hi logicos94,

The PTZ reset function seems to work fine as-is in 1.24.2 with the 9/15/2008 version of the control module here. It looks like you may have grabbed an old version from somewhere.