Page 1 of 1

Foscam camera

Posted: Sunday 14 March 2021 14:18
by bing69
Does someone have experience with adding a Foscam camera? I can not manage to do it..

Re: Foscam camera

Posted: Sunday 14 March 2021 16:01
by HansieNL
Maybe you can explain some more what you want.
Maybe you can also post an example what you already tried.

Re: Foscam camera

Posted: Sunday 14 March 2021 16:18
by waltervl
Check the two wiki pages that popup here. https://www.domoticz.com/wiki/index.php ... arch&go=Go

Re: Foscam camera

Posted: Sunday 14 March 2021 17:54
by bing69
HansieNL wrote: Sunday 14 March 2021 16:01 Maybe you can explain some more what you want.
Maybe you can also post an example what you already tried.
i try 't on different ways, but no result

Code: Select all

blocks['all_ip_cameras'] = {
    cameras : [
		{
			title: "Voordeur",
			imageUrl: 'http://username:[email protected]:85/cgi-bin/currentpic.cgi',
			videoUrl: 'http://username:[email protected]:85/cgi-bin/currentpic.cgi',
		},
		{
			title: "Schuur",
			imageUrl: 'https://username:[email protected]:84/ec2/cameraThumbnail?cameraId=3',
			videoUrl: 'https://username:[email protected]:84/media/1.mpjpeg?resolution=1080p',
		},

Re: Foscam camera

Posted: Sunday 14 March 2021 17:55
by bing69
waltervl wrote: Sunday 14 March 2021 16:18 Check the two wiki pages that popup here. https://www.domoticz.com/wiki/index.php ... arch&go=Go
i mean in Dashticz not in Domoticz :o

Re: Foscam camera

Posted: Sunday 14 March 2021 18:38
by HansieNL
I use the following code to show my camera. Change the info between < > with your own settings. URL with http://username:password/... is not allowed anymore for browsers. Maybe it's easier to get first the cameras working one by one.

Code: Select all

blocks['fi9816p'] = {
   type: 'camera',
   imageUrl: 'http://<ip-address-camera>:<port>/CGIProxy.fcgi?cmd=snapPicture2&usr=<username>&pwd=<password>',
   refresh: 2,
   forcerefresh: 1,
   width: 6,
   height: 300
}

Re: Foscam camera

Posted: Sunday 14 March 2021 18:58
by waltervl
bing69 wrote: Sunday 14 March 2021 17:55
waltervl wrote: Sunday 14 March 2021 16:18 Check the two wiki pages that popup here. https://www.domoticz.com/wiki/index.php ... arch&go=Go
i mean in Dashticz not in Domoticz :o
Sorry, didn't notice the Dashticz forum....

Re: Foscam camera

Posted: Sunday 14 March 2021 19:19
by HansieNL
This link will give you more info what url to use:
https://www.ispyconnect.com/camera/foscam

Re: Foscam camera

Posted: Sunday 14 March 2021 20:30
by Lokonli
I started to update the camera section in the Dashticz documentation. See:
https://dashticz.readthedocs.io/en/beta ... leshooting

Re: Foscam camera

Posted: Monday 15 March 2021 10:48
by bing69
HansieNL wrote: Sunday 14 March 2021 18:38 I use the following code to show my camera. Change the info between < > with your own settings. URL with http://username:password/... is not allowed anymore for browsers. Maybe it's easier to get first the cameras working one by one.

Code: Select all

blocks['fi9816p'] = {
   type: 'camera',
   imageUrl: 'http://<ip-address-camera>:<port>/CGIProxy.fcgi?cmd=snapPicture2&usr=<username>&pwd=<password>',
   refresh: 2,
   forcerefresh: 1,
   width: 6,
   height: 300
}
Thanks, i did this morning (copy and paste from Domoticz) the same and it works!!
Now the video.....

Re: Foscam camera

Posted: Monday 15 March 2021 17:57
by HansieNL
bing69 wrote: Monday 15 March 2021 10:48
Spoiler: show
HansieNL wrote: Sunday 14 March 2021 18:38 I use the following code to show my camera. Change the info between < > with your own settings. URL with http://username:password/... is not allowed anymore for browsers. Maybe it's easier to get first the cameras working one by one.

Code: Select all

blocks['fi9816p'] = {
   type: 'camera',
   imageUrl: 'http://<ip-address-camera>:<port>/CGIProxy.fcgi?cmd=snapPicture2&usr=<username>&pwd=<password>',
   refresh: 2,
   forcerefresh: 1,
   width: 6,
   height: 300
}
Thanks, i did this morning (copy and paste from Domoticz) the same and it works!!
Now the video.....
You can find on this page https://www.ispyconnect.com/camera/foscam if your camera can send MJPEG and what URL to use. If your camera can't send MJPEG you have to create a MJPEG stream yourself.
Check https://dashticz.readthedocs.io/en/beta ... leshooting for more information.

Re: Foscam camera

Posted: Thursday 18 March 2021 13:17
by TroisSix
Hi,
Which foscam camera do you have?
On ispyconnect, you can easily find the good urls ;-)

I have different one, for the video, try these url:
- videoUrl: 'http://192.168.XXX.XXX:XXXX/tmpfs/auto.jpg?usr=USER&pwd=PASSWORD&fps=15'
- videoUrl: 'http://192.168.XXX.XXX:XXXX/videostream.cgi?user=USER&pwd=PASSWORD&resolution=640X480&fps=15'
- videoUrl: 'http://192.168.XXX.XXX:XXXX/video.cgi?usr=USER&pwd=PASSWORD'
Hope you'll find the good one for you ;-)