Foscam FI8919W Control

Forum for questions and support relating to the 1.25.x releases only.
Locked
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Foscam FI8919W Control

Post by MKEbrew »

I've tried the Foscam script from the Wiki for the 8908W for this camera, but when I try to control it I receive this error:

Code: Select all

Control response was status = undefined
message = /usr/bin/zmcontrol.pl --autostop --command=moveConLeft --id=3=>
Need some direction on this. Even links to past posts might be helpful as I'm not finding info or I'm not searching very well on here.

Thanks!
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Foscam FI8919W Control

Post by bb99 »

Should get you started in the right direction: http://www.zoneminder.com/wiki/index.php/Foscam
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

bb99 wrote:Should get you started in the right direction: http://www.zoneminder.com/wiki/index.php/Foscam

Thanks, but that is exactly what I was referring to when I said wiki. What do I need to tweak?
Black_64
Posts: 5
Joined: Sat Feb 09, 2013 9:52 pm

Re: Foscam FI8919W Control

Post by Black_64 »

I get the same error message when i try to control the Foscam FI8919W.
Is there in the mean time a solution?

When sending the commands from a browser then it works.
Here a example to move the Foscam to preset 1.

Code: Select all

h**p://ip_cam/decoder_control.cgi?command=31
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

Hi Black,

Looking at the FoscamFI8908W.pm file form the Wiki, command=31 is not even in there. It ends at 25. It shouldn't be too hard to add, but I can't tell how it's supposed to be added.

That said, I can't get any of the other movements to work either.
Black_64
Posts: 5
Joined: Sat Feb 09, 2013 9:52 pm

Re: Foscam FI8919W Control

Post by Black_64 »

Hi,

I use a newer control file that is more fitting my cam:

Code: Select all

# ZoneMinder Foscam FI8918W IP Control Protocol Module, $Date: 2009-11-25 09:20:00 +0000 (Wed, 04 Nov 2009) $, $Revision: 0001 $
# Copyright (C) 2001-2008 Philip Coombes
# Modified for use with Foscam FI8918W IP Camera by Dave Harris
# Modified Feb 2011 by Howard Durdle (h**p://durdl.es/x) to:
#      fix horizontal panning, add presets and IR on/off
#      use Control Device field to pass username and password
There are the preset's already included.

But i still get the message, so no way to control my cam. :cry:
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

Thanks. Now I can switch to that one, but it still doesn't get us anywhere. Someone has to be able to toss out ideas... :(
joako
Posts: 30
Joined: Mon Nov 01, 2010 7:10 am

Re: Foscam FI8919W Control

Post by joako »

Check the .pm file and find the section like:

sub moveConLeft {
LOOK HERE
}

There will be a line like: my $cmd = "ptzctrl?act=zoomin";

If you access http://ip of camera/ptzctrl?act=zoomin in your web browser what happens? Of course yours will not say "ptzctrl?act=zoomin" but something else.
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

joako wrote:Check the .pm file and find the section like:
If you access http://ip of camera/ptzctrl?act=zoomin in your web browser what happens?
Well, that works as expected, however when attempting to control from within Zoneminder it does not work.

Thanks for your reply.
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

Taking a look at the log directory, web_php.log shows a little more info about the error:

Code: Select all

10/29/13 07:53:21.717398 web_php[21938].ERR [/usr/bin/zmcontrol.pl --autostop --command=moveConRight --id=3=>] at /usr/share/zoneminder/includes/functions.php line 2323
Line 2323 is part of this function (line 2323 begins at "Error"):

Code: Select all

function ajaxError( $message, $code=HTTP_STATUS_OK )
{
    Error( $message );
    if ( function_exists( 'ajaxCleanup' ) )
        ajaxCleanup();
    if ( $code == HTTP_STATUS_OK )
    {
        $response = array( 'result'=>'Error', 'message'=>$message );
        header( "Content-type: text/plain" );
        exit( jsonEncode( $response ) );
    }
    header( "HTTP/1.0 $code $message" );
    exit();
}
Is any of this helpful?
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

Ok, I am reviving this thread because I am back at this project and never resolved the control issue for this camera.

The control file is correct -- the commands all check out and work when I plug them into the address bar.

The problem seems to be related to the ajaxError function in functions.php as per the post right above this one.

Using PHP 5.4 - output of php -v:

Code: Select all

PHP 5.4.4-14+deb7u2 (cli) (built: Jun  5 2013 07:56:44)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Not sure where to go with this next. Is there a way to get more verbose logging? What should I be doing to figure this out?

Thanks.
al_mello
Posts: 2
Joined: Wed Apr 20, 2016 12:15 am

Re: Foscam FI8919W Control

Post by al_mello »

Guys,

Just got Zoneminder installed and am trying to play and learn how to use it (pretty nice application I must say).

I got all my cameras working and recording when movement is detected, was able to link cameras to get another recording when movement in the area is detected, etc. Very interesting.

Now I'm playing with the PTZs and one of my cameras is exactly the FI8919W that I bought hoping it would work with ZM, using the 8918w controls. Unfortunately it doesn't or I'm doing something wrong.

Looking at the forum I found this thread, but last post was years ago, so no hope from this.

Did anyone got the FI8919W PTZ controls to work? If so could share?

Thanks!
MKEbrew
Posts: 31
Joined: Fri Jun 28, 2013 2:49 pm

Re: Foscam FI8919W Control

Post by MKEbrew »

I did not, but I did give up at some point. If you figure it out, I'd love to have it working here.
Locked