Please help... I have been trying to get this camera to move in ZoneMinder now for over 2 months. I have tried using 3 different types of Ubuntu and numerious hours of looking for code to get the camera to move.
So here is what I settled on. Ubuntu 11.10 figured why not get the newest one and ZoneMinder 1.24.4
After following the setup instructions found here
http://www.zoneminder.com/wiki/index.php/Foscam_FI8918W
to the letter I am still stumped.
I have video and I have alarms no problem there but as soon as I try to Pan or Tilt I get an error for example.
Control response was status = undefined
message = /usr/bin/zmcontrol.pl --panspeed= --tiltspeed= --autostop --command=moveConUpRight --id=1=> // Usage: zmcontrol.pl --id <monitor_id> --command=<command> <various options>
What does this mean I ask you?
I have tried reinstalling ZoneMinder and also tried looking over the codes (my eyes started to go every direction )
Who ever can help me please do I am at wits end with this thing, I have considered having my old record player hold the camera all the time just to get it to move.
Thank You In Advance
Caleb.
Foscam FI8918W with ZoneMinder 1.24.4
Foscam FI8918W with ZoneMinder 1.24.4
Thanks
Caleb
Caleb
Re: Foscam FI8918W with ZoneMinder 1.24.4
Don't worry, it's not you, seems there is an issue (my guess) with Ubuntu 11 and ZM. At least me and one other person are having/had the same problem you are.
http://www.zoneminder.com/forums/viewto ... 21&t=18581
http://www.zoneminder.com/forums/viewto ... 21&t=18562
I'm sitting down now to install CentOS and ZM 1.25 to see if I can get everything working the way I want. In the mean time, I've just been using the FI8918s web interface to move the cam.
http://www.zoneminder.com/forums/viewto ... 21&t=18581
http://www.zoneminder.com/forums/viewto ... 21&t=18562
I'm sitting down now to install CentOS and ZM 1.25 to see if I can get everything working the way I want. In the mean time, I've just been using the FI8918s web interface to move the cam.
Re: Foscam FI8918W with ZoneMinder 1.24.4
I may have a fix for this...
I'll post soon!
I'll post soon!
Re: Foscam FI8918W with ZoneMinder 1.24.4
Any luck on this yet?
Re: Foscam FI8918W with ZoneMinder 1.24.4
I am successfully using this camera with Ubuntu 10.10 and zoneminder 1.24.2. I made sure that I setup the camera for pt by accessing the camera directly and also set a static ip. I added a user and gave that user a password and the status of operator. If I recall, a pt setting speed of 0 will disable.
Re: Foscam FI8918W with ZoneMinder 1.24.4
Okay I installed Ubuntu 10.10 Desktop and what would you know I can move the camera but now I have no video.
When I go on the camera's web access it works on there but in ZoneMinder it does not work. The source is red on the ZoneMinder home page. Any ideas?
When I go on the camera's web access it works on there but in ZoneMinder it does not work. The source is red on the ZoneMinder home page. Any ideas?
Thanks
Caleb
Caleb
Re: Foscam FI8918W with ZoneMinder 1.24.4
You don't list you're settings but I'd start with shmmax and shmall
You're setup might need to be different but this works for me:
You're setup might need to be different but this works for me:
Code: Select all
$ cat /etc/sysctl.conf | grep -i ^k
kernel.shmall = 134217728
kernel.shmmax = 805011456
-
- Posts: 8
- Joined: Tue Dec 06, 2011 2:26 pm
Re: Foscam FI8918W with ZoneMinder 1.24.4
Having the same issue here... trying to figure what cgi commands are supposed to make the camera work. The most difficult part is that I really am lost when it comes to perl.
One thing that is worth mentioning is that the camera I got did not need the firmware upgrade. The other is that the perl script used for this camera has STOP=1 for all movements. Though that may make no difference. I don't know enough about perl to see if the script there matches the calls made here so maybe someone who knows perl better can take a look at it.
The javascript is fairly strait fwd. Heres the code in the foscam camera web site thingy that makes the camera move.
Edit:sry for the bad formatting.. it just wouldn't cut and paste from firebug that well.
One thing that is worth mentioning is that the camera I got did not need the firmware upgrade. The other is that the perl script used for this camera has STOP=1 for all movements. Though that may make no difference. I don't know enough about perl to see if the script there matches the calls made here so maybe someone who knows perl better can take a look at it.
The javascript is fairly strait fwd. Heres the code in the foscam camera web site thingy that makes the camera move.
Edit:sry for the bad formatting.. it just wouldn't cut and paste from firebug that well.
Code: Select all
<script>
var R320_240=8;
var R640_480=32;
var ptz_type=0;
var PTZ_STOP=1;
var TILT_UP=0;
var TILT_UP_STOP=1;
var TILT_DOWN=2;
var TILT_DOWN_STOP=3;
var PAN_LEFT=6;
var PAN_LEFT_STOP=5;
var PAN_RIGHT=4;
var PAN_RIGHT_STOP=7;
var PTZ_LEFT_UP=91;
var PTZ_RIGHT_UP=90;
var PTZ_LEFT_DOWN=93;
var PTZ_RIGHT_DOWN=92;
var PTZ_CENTER=25;
var PTZ_VPATROL=26;
var PTZ_VPATROL_STOP=27;
var PTZ_HPATROL=28;
var PTZ_HPATROL_STOP=29;
var PTZ_PELCO_D_HPATROL=20;
var PTZ_PELCO_D_HPATROL_STOP=21;
var IO_ON=95;
var IO_OFF=94;
function decoder_control(command)
{
action_zone.location='decoder_control.cgi?command='+command;
}
function camera_control(param,value)
{
action_zone.location='camera_control.cgi?param='+param+'&value='+value;
}
function set_flip()
{
if (image_reversal.checked)
flip|=1;
else
flip&=2;
if (image_mirror.checked)
flip|=2;
else
flip&=1;
camera_control(5,flip);
}
function up_onmousedown()
{
(flip&0x01)?decoder_control(TILT_DOWN):decoder_control(TILT_UP);
}
function up_onmouseup()
{
if (!ptz_type)
decoder_control(PTZ_STOP);
else if (flip&0x01)
decoder_control(TILT_DOWN_STOP);
else
decoder_control(TILT_UP_STOP);
}
function down_onmousedown()
{
(flip&0x01)?decoder_control(TILT_UP):decoder_control(TILT_DOWN);
}
function down_onmouseup()
{
if (!ptz_type)
decoder_control(PTZ_STOP);
else if (flip&0x01)
decoder_control(TILT_UP_STOP);
else
decoder_control(TILT_DOWN_STOP);
}
function left_onmousedown()
{
(flip&0x02)?decoder_control(PAN_RIGHT):decoder_control(PAN_LEFT);
}
function left_onmouseup()
{
if (!ptz_type)
decoder_control(PTZ_STOP);
else if (flip&0x02)
decoder_control(PAN_RIGHT_STOP);
else
decoder_control(PAN_LEFT_STOP);
}
function right_onmousedown()
{
(flip&0x02)?decoder_control(PAN_LEFT):decoder_control(PAN_RIGHT);
}
function right_onmouseup()
{
if (!ptz_type)
decoder_control(PTZ_STOP);
else if (flip&0x02)
decoder_control(PAN_LEFT_STOP);
else
decoder_control(PAN_RIGHT_STOP);
}
function leftup_onmousedown()
{
if (ptz_type)
return;
if ((flip&0x03)==0x03)
decoder_control(PTZ_RIGHT_DOWN);
else if (flip&0x02)
decoder_control(PTZ_RIGHT_UP);
else if (flip&0x01)
decoder_control(PTZ_LEFT_DOWN);
else
decoder_control(PTZ_LEFT_UP);
}
function leftup_onmouseup()
{
if (!ptz_type) decoder_control(PTZ_STOP);
}
function rightup_onmousedown()
{
if (ptz_type)
return;
if ((flip&0x03)==0x03)
decoder_control(PTZ_LEFT_DOWN);
else if (flip&0x02)
decoder_control(PTZ_LEFT_UP);
else if (flip&0x01)
decoder_control(PTZ_RIGHT_DOWN);
else
decoder_control(PTZ_RIGHT_UP);
}
function rightup_onmouseup()
{
if (!ptz_type) decoder_control(PTZ_STOP);
}
function leftdown_onmousedown()
{
if (ptz_type)
return;
if ((flip&0x03)==0x03)
decoder_control(PTZ_RIGHT_UP);
else if (flip&0x02)
decoder_control(PTZ_RIGHT_DOWN);
else if (flip&0x01)
decoder_control(PTZ_LEFT_UP);
else
decoder_control(PTZ_LEFT_DOWN);
}
function leftdown_onmouseup()
{
if (!ptz_type) decoder_control(PTZ_STOP);
}
function rightdown_onmousedown()
{
if (ptz_type)
return;
if ((flip&0x03)==0x03)
decoder_control(PTZ_LEFT_UP);
else if (flip&0x02)
decoder_control(PTZ_LEFT_DOWN);
else if (flip&0x01)
decoder_control(PTZ_RIGHT_UP);
else
decoder_control(PTZ_RIGHT_DOWN);
}
function rightdown_onmouseup()
{
if (!ptz_type) decoder_control(PTZ_STOP);
}
function center_onclick()
{
if (!ptz_type) decoder_control(PTZ_CENTER);
}
function vpatrol_onclick()
{
if (!ptz_type) decoder_control(PTZ_VPATROL);
}
function vpatrolstop_onclick()
{
if (!ptz_type) decoder_control(PTZ_VPATROL_STOP);
}
function hpatrol_onclick()
{
ptz_type?decoder_control(PTZ_PELCO_D_HPATROL):decoder_control(PTZ_HPATROL);
}
function hpatrolstop_onclick()
{
ptz_type?decoder_control(PTZ_PELCO_D_HPATROL_STOP):decoder_control(PTZ_HPATROL_STOP);
}
function set_resolution()
{
camera_control(0,resolution_sel.value);
setTimeout('parent.parent.main.location.reload()',2000);
}
function plus_brightness()
{
val=brightness_input.value;
if (val++<15)
{
brightness_input.value=val;
camera_control(1,val*16);
}
}
function minus_brightness()
{
val=brightness_input.value;
if (val-->0)
{
brightness_input.value=val;
camera_control(1,val*16);
}
}
function plus_contrast()
{
val=contrast_input.value;
if (val++<6)
{
contrast_input.value=val;
camera_control(2,val);
}
}
function minus_contrast()
{
val=contrast_input.value;
if (val-->0)
{
contrast_input.value=val;
camera_control(2,val);
}
}
function setpreset()
{
decoder_control(parseInt(preset.value));
}
function gopreset()
{
decoder_control(parseInt(preset.value)+1);
}
function body_onload()
{
gocenter.title=top.str_center;
vpatrol.title=top.str_vertical_patrol;
vpatrolstop.title=top.str_stop_vertical_patrol;
hpatrol.title=top.str_horizon_patrol;
hpatrolstop.title=top.str_stop_horizon_patrol;
switchon.title=top.str_switchon;
switchoff.title=top.str_switchoff;
resolution_sel.value=resolution;
mode_sel.value=mode;
brightness_input.value=Math.round(brightness / 16);
contrast_input.value=contrast;
image_reversal.checked=(flip&0x01)?true:false;
image_mirror.checked=(flip&0x02)?true:false;
}
</script>