Hello,
I have a Foscam 8918W. I can access the video stream from:
http://192.168.2.44/videostream.cgi
It prompts me for the login if it’s the first time logging in.
There is also a webpage interface that looks like this:
I followed the foscam configuration on my configuration.yaml:
camera:
- platform: foscam
ip: http://192.168.2.44
username: xxxxx
password: xxxxx
I’ve tried replacing the IP with the “videostream.cgi” at the end, but it didn’t help. I get an image not available place maker.
Is my foscam too old? Other people use foscams on here, but they seem to have newer version than I do. As far as I know, it’s just a motionjpg stream.
On grafana, I can add a webcam section by adding a html panel that points to the videostream.cgi. Is that possible on Home Assistant?
lolouk44
(lolouk44)
August 9, 2018, 6:49am
2
This is a good source of URLs for various cameras.
“Create” your url with the various parameters and enter it in VLC to test (Media > Open Network Stream)
When you can see the video, you’ve got your URL…
For ip:
you should just put the IP address, not an URL:
camera:
- platform: foscam
ip: 192.168.2.44
username: xxxxx
password: xxxxx
If you can use the Foscam platform you should only need the IP address and username/password - this works fine form me:
- platform: foscam
ip: 192.168.7.82
username: !secret cam_user82
password: !secret cam_pass82
name: OutdoorCam
I have a few cameras that I have to run as ‘generic’ ones and my config for them looks like this:
- platform: generic
still_image_url: http://192.168.7.81/img/snapshot.cgi
username: !secret cam_user81
password: !secret cam_pass81
name: PatioCam
The still_image_url
obviously depends on the camera model and the link @lolouk44 provided should give you that.
finity
August 10, 2018, 12:24am
5
I have an older Foscam camera that isn’t supported by the Foscam component. I use the following:
platform: mjpeg
mjpeg_url: http://192.168.1.ZZ :AAAA/videostream.cgi?user=XXXXX&pwd=YYYYY
username: !secret cam_user
password: !secret cam_pw
authentication: basic
name: Kitchen
you need to fill in your info for IP, port, user, pwd, username:, & password:
Not sure if yours is the same but it can’t hurt to give it a try unless you find better info.
1 Like
Thanks very much everyone. The config that finally worked for the Fi8918 is this one from @finity :
platform: mjpeg
mjpeg_url: http://192.168.1.ZZ :AAAA/videostream.cgi?user=XXXXX&pwd=YYYYY
username: !secret cam_user
password: !secret cam_pw
authentication: basic
name: Kitchen
platform: mjpeg
mjpeg_url: http://192.168.1.ZZ :AAAA/videostream.cgi?user=XXXXX&pwd=YYYYY
username: !secret cam_user
password: !secret cam_pw
authentication: basic
name: Kitchen
Just wanted to confirm this worked for me as well, with one small difference - authentication was set to digest instead of basic.
mig77angel
(Miguel Angel)
April 29, 2019, 11:52am
8
That way it works perfectly, thanks
Do you know if the turn of the camera can be controlled by commands?