Page 1 of 1
Unable to control Foscam
Posted: Wed Dec 07, 2016 10:45 pm
by thelavender
I purchased a Foscam PT camera recently to test out integration with SmartThings. It was on sale. Then I got the idea to setup an NVR on our already high powered home built NAS. Perfect use for this. I can view video in ZM from the Foscam but I cannot seem to get control working.
Below are my settings:
- ZM_-_Monitor_-_FOSCAMOne.png (68.61 KiB) Viewed 3936 times
- ZM_-_Monitor_-_FOSCAMOne-One.png (107.12 KiB) Viewed 3936 times
The error that I am seeing repeated in the logs when I attempt to move the camera is as follows:
Code: Select all
Error check failed: '500 Can't connect to 192.168.1.274:54304'
I went through this document to set things up:
https://wiki.zoneminder.com/Foscam_FI8918W
My camera is actually a FI9821P
I am running ZoneMinder 1.29.0
Any help with this would be appreciated.
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 12:52 am
by bbunge
Control Device is the user name for the camera that has control authority. Usually the admin user or operator
Control address is the camera IP address. Do not think you need the port.
With this camera I use ffmpeg
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 4:44 am
by thelavender
Removing the port now throws this error
Code: Select all
Error check failed: '500 Can't connect to 192.168.1.274:80'
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 2:40 pm
by knight-of-ni
Where did port 54304 come from? My 9821 works fine exactly as bbunge described.
The 9821W is what I do my development with. Never had a problem with it. Pretty sure the firmware is the same as the 9821P.
If you just put in the password to the admin user in the control device field, zoneminder will assume a username of "admin".
Here are the instructions for your camera:
https://wiki.zoneminder.com/Foscam_FI8921P
These instructions probably apply too since both flavors likely have the same firmware.
https://wiki.zoneminder.com/Foscam_FI9821W_V2
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 3:45 pm
by thelavender
As far as the port number, I was using the Owlr iOS app and I think it changed the port to that. Ill try changing the port to 80 although any port should work, am I correct in that assumption?
EDIT
Changed settings based on those two articles.
Getting Error check failed: '500 Can't connect to 192.168.1.274:80' while using the FI9821W profile. If I switch to the FI9821P script (this was custom I believe) I get the following error:
Code: Select all
Control response was status = undefined
message = /usr/bin/zmcontrol.pl --panspeed=2 --autostop --command=moveConRight --id=2=>
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 4:07 pm
by thelavender
Is Amcrest any better in terms of out of the box control?
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 4:11 pm
by knight-of-ni
Forget the app.
Instead point a web browser to the camera, log in with the admin credentials, and then look for the port number.
On mine it is under Network -> Port
Of course, if the HTTP port isn't already set to 80, then your browser probably won't connect to it. You will need to determine the correct port number your camera is listening on for HTTP requests. Once you do that, confirm your settings with a web browser, then use the correct port in ZoneMinder.
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 5:48 pm
by thelavender
I had gone ahead and reset the port to 80. I updated ZoneMinder to use this port. I also made sure that I was just including the password in the Control Device field. I am just getting the error Error check failed: '500 Can't connect to 192.168.1.274:80' now.
Re: Unable to control Foscam
Posted: Thu Dec 08, 2016 6:21 pm
by knight-of-ni
But did you make that change from an app, or did you do that through a web browser?
If you can't connect to your camera's web portal using a web browser, then the ptz commands are not likely to work.