Unable to control Foscam

Forum for questions and support relating to the 1.29.x releases only.
Locked
thelavender
Posts: 5
Joined: Wed Dec 07, 2016 10:32 pm

Unable to control Foscam

Post 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
ZM_-_Monitor_-_FOSCAMOne.png (68.61 KiB) Viewed 3939 times
ZM_-_Monitor_-_FOSCAMOne-One.png
ZM_-_Monitor_-_FOSCAMOne-One.png (107.12 KiB) Viewed 3939 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.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Unable to control Foscam

Post 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
thelavender
Posts: 5
Joined: Wed Dec 07, 2016 10:32 pm

Re: Unable to control Foscam

Post 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'
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Unable to control Foscam

Post 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
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
thelavender
Posts: 5
Joined: Wed Dec 07, 2016 10:32 pm

Re: Unable to control Foscam

Post 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=>
thelavender
Posts: 5
Joined: Wed Dec 07, 2016 10:32 pm

Re: Unable to control Foscam

Post by thelavender »

Is Amcrest any better in terms of out of the box control?
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Unable to control Foscam

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
thelavender
Posts: 5
Joined: Wed Dec 07, 2016 10:32 pm

Re: Unable to control Foscam

Post 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.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Unable to control Foscam

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked