Camera Dlink DSC-930L with OpenHab

Hi there, I spent several hours testing and trying - still no success.

Has anyone working OpenHab´s config for this IP camera to share ?

My OH screen :

So far, I have in sitemap :

Try1 :
Frame label=“Camera” {
Video url=“http://192.168.1.108/video.cgi” height=3
}
output in browser : I have to login into, than I see picture

Try2 :
Frame label=“Camera” {
Video url=“http://192.168.1.108/video.cgi&user=user&pwd=psw” height=3
}
output in browser : The request is forbidden.

I’m using this:

For iOS you need to use a webview, at least I don’t get it to work without it. Also I have a DCS-2132L so might be different

  Group label="Camera Video - Android" icon="video" {
               Video url="http://user:password@ipadress:80/video2.mjpg?user=user&password=password" encoding="mjpeg"               
           }
           Group label="Camera Video - iPad/iPhone" icon="video" {
               Webview  icon="video" url="http://user:password@ipaddress:80/video2.mjpg?user=user&password=password" height=480
           }

Not sure you need user and password in both url and as query parameters, but that’s what worked for me.

SOLVED

in Sitemap :

Frame label="Camera" {

        Text label=Camera icon="camera" {

                Frame label="Camera" {

                      Webview url="http://192.168.1.113:8010/pepa.html" height=$
                                      }
                                        }

                        }


in external HTML page running at Apache server at Raspberry :


<!DOCTYPE html>
<html>
<meta http-equiv="refresh" content="60">
<body bgcolor="white">
<font face=arial>

CAM1 
<iframe src ="http://user:password@192.168.1.108/mjpeg.cgi" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>

CAM2 
<iframe src ="http://user:password@192.168.1.110/mjpeg.cgi" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>


</body>
</html>


2 Likes

I know this is an old post but nevertheless I’ d like to react.
First, thanks, this was very useful info. Nevertheless it didnt work for me, the sitemap crashed and disappeared from the sitemap list. Maybe something changed in what openhab accepts in the sitemap. The issue seemed to be in adding the port 8010 and/or the html file.

I am currently using a simple setup for my DCS-930. I use:
Webview url="http://user:pw@192.168.1.106/video.cgi" height=8
in my sitemap and that works without problems
(192.168.1.106 being the ip address of my camera)
Anyway, some months ago I was struggling with this as well, without result… and your post (and the one of @Seaside put me on the right track again.

It could very well be that my method will not work remotely (still need to test) but at least I have a start

1 Like

Hi, one question.

Do I have to setup the camera with the D-Link app and afterthat link to the openhab or I can link to openhab without any setup befor and avoid to use the D-Link app?

Thanks.

That I do not know as I setup my camera long before I ever heard of openhab. I don’t think I used the app for it, just my browser. Downloaded the app later.
But anyway you need to do some setup if only to put yr web credentials in the camera

Working fine but with some little issues with DCS-930L

I tried with:
Webview url=“192.168.2.108/video.cgi” height=8

This is working fine wthout authentication but:

  1. When I set a admin password, I can not login with usr and pwd in the address. So, It is requested to login everytime I load the sitemap. :confused:

  2. I do not get image thorugh myopenhab and iphone, I guess because of the authentication request. But even I do not get any authentication request. If I setup without autenthication, everything works fine.

With my iphone, it seems that after 30 minutes, the image disappear (through localhost still have it) … If I reconect the camera wroks fine, but after 20/30 minutes the conection is lost. This is strange.

Thank youu in advance!

How do you set up that apache server at the raspberry? Where do you put that code?

i managed to add the sever, but i get the error “request is forbidden”

when?

In the website when I try to look at the video feed

ok, so i got this to work in the sitemap when i am on the pc, however it will not work on my phone. i only get “the request is forbidden”

Thanks is advance for any help i may get

This is the code i used:

Apache server:

<!DOCTYPE html>
<html>
<meta http-equiv="refresh" content="60">
<body bgcolor="white">
<font face=arial>

CAM1 
<iframe src ="http://CAMERA_IP/mjpeg.cgi" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>

</body>
</html>

Sitemap:

Webview url="http://SERVER_IP/index.html" height=8

Here is the error i get on my phone: