Any way to open a camera software application from domoticz? Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
beounet
Posts: 7
Joined: Wednesday 16 November 2016 20:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Any way to open a camera software application from domoticz?

Post by beounet » Wednesday 06 September 2017 15:58

Hello to all and sorry if i am in a wrong place!!
As we all know domotics doesn't support live stream from a camera.

Lets assume that someone is playing with domoticz from an android tablet (switching on and off different devices and all these cool staff).
i was wondering if there is a way to, by pressing something like a virtual switch on, to launch an ip camera viewer application that it is already installed in the android device. The ip camera application will pop up in front of domoticz.

In a future version of domoticz, is it easy or possible to combine domoticz with an ip camera application in a way that ,a screen window in the dashboard is directly connected to the ip camera app software in order to have real time video???

Thanks

oliviers
Posts: 78
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Any way to open a camera software application from domoticz?

Post by oliviers » Wednesday 06 September 2017 17:02

Hi,
This is how I did it:
1. Make sure that the "custom" tab is visible in Domoticz

2. Then go into ~/domoticz/www/templates and edit index.html

3. Insert in the file the URL for your Webcam:
For me, it looks like : (depending on your camera, the URL might look differently!)

Code: Select all

<div id="cam1">
<h2>Webcam 1</h2>
<iframe src="http://<My camera IP address>/videostream.cgi?user=<user>&pwd=<password>" height="480" width="640"></iframe>
</div>
4. Now in Domotics, under "Custom", you have an "Index" button that will start the streaming of your camera ...

Is this what you wanted to achieve ?
Rgds,
Oliviers
Paris area
Raspberry Pi 2B - RFXComm 433 - IrTrans - Zwave

Fleshi
Posts: 12
Joined: Tuesday 23 May 2017 21:18
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Any way to open a camera software application from domoticz?

Post by Fleshi » Thursday 07 September 2017 20:37

When I open the URL with my password and username included in Chrome I still need to re-enter my password en Username. How did you solve this problem?

oliviers
Posts: 78
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Any way to open a camera software application from domoticz?

Post by oliviers » Friday 08 September 2017 8:07

Hello,
@Fleshi: The syntax of the URL may vary, depending on the brand and model. Make sure you're using the right one.
There's a page on the topic on the Wiki:

https://www.domoticz.com/wiki/Hardware# ... orkcameras

Oliviers
Paris area
Raspberry Pi 2B - RFXComm 433 - IrTrans - Zwave

beounet
Posts: 7
Joined: Wednesday 16 November 2016 20:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Any way to open a camera software application from domoticz?

Post by beounet » Monday 11 September 2017 16:06

oliviers wrote:
Wednesday 06 September 2017 17:02
Hi,
This is how I did it:
1. Make sure that the "custom" tab is visible in Domoticz

2. Then go into ~/domoticz/www/templates and edit index.html

3. Insert in the file the URL for your Webcam:
For me, it looks like : (depending on your camera, the URL might look differently!)

Code: Select all

<div id="cam1">
<h2>Webcam 1</h2>
<iframe src="http://<My camera IP address>/videostream.cgi?user=<user>&pwd=<password>" height="480" width="640"></iframe>
</div>
4. Now in Domotics, under "Custom", you have an "Index" button that will start the streaming of your camera ...

Is this what you wanted to achieve ?
Rgds,
Oliviers
Hello Oliviers and thank you for your reply!!
I followed your instructions but with no result!
Here is the URL of my TP-LINK SC-2020N ip camera: http://admin:[email protected]/video.mjpg
I have also tried the still image URL : http://admin:[email protected]/jpg/image.jpg?size=3 with no results too.
I am using the default username and password.

Here is the code in the html file that you suggest:
<div id="cam1">
<h2>Webcam 1</h2>
<iframe src="http://admin:[email protected]/video.mjpg" height="480" width="640"></iframe>
</div>

Is something that i am missing??
Thanks again!!

oliviers
Posts: 78
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Any way to open a camera software application from domoticz?

Post by oliviers » Saturday 16 September 2017 11:23

Hello,
When you try that same URL in a browser, does it work ??? Not sure your URL is correct, sounds weird...
No other ideas...
Oliviers
Paris area
Raspberry Pi 2B - RFXComm 433 - IrTrans - Zwave

beounet
Posts: 7
Joined: Wednesday 16 November 2016 20:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Any way to open a camera software application from domoticz?

Post by beounet » Saturday 30 September 2017 17:44

oliviers wrote:
Saturday 16 September 2017 11:23
Hello,
When you try that same URL in a browser, does it work ??? Not sure your URL is correct, sounds weird...
No other ideas...
Oliviers
Hello oliviers and thanks again for your help!!

When i am trying that URL in any browser, i have clear video for 1 second and then no image! The same behaviour in domoticz too!
Today i tried something completelly randomly!!
I got myself in the configuration page of the TP Link camera. As any pages like this, there is a preview area that you can see real time video.
If you right click in that area there is an option "open picture in new tab".
A new tab opens with the following URL "http://192.168.1.12/video.mjpg?mute"
Copied that in the file you suggested and i now have clear real time video!!! :)
I hope that this will help other guys too!!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests