Foscam camera Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Foscam camera

Post by bing69 »

Does someone have experience with adding a Foscam camera? I can not manage to do it..
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Foscam camera

Post by HansieNL »

Maybe you can explain some more what you want.
Maybe you can also post an example what you already tried.
Blah blah blah
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Foscam camera

Post by waltervl »

Check the two wiki pages that popup here. https://www.domoticz.com/wiki/index.php ... arch&go=Go
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Re: Foscam camera

Post 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',
		},
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Re: Foscam camera

Post 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
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Foscam camera

Post 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
}
Blah blah blah
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Foscam camera

Post 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....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Foscam camera

Post by HansieNL »

This link will give you more info what url to use:
https://www.ispyconnect.com/camera/foscam
Blah blah blah
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Foscam camera

Post by Lokonli »

I started to update the camera section in the Dashticz documentation. See:
https://dashticz.readthedocs.io/en/beta ... leshooting
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Re: Foscam camera

Post 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.....
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Foscam camera

Post 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.
Blah blah blah
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: Foscam camera

Post 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 ;-)
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest