Hey folks, hope you can help me out with this one, been trying a number of things over the last 3 days to no avail. Hopefully it’s something simple that I missed or a small update somewhere that’s required.
-
Platform information:
- Hardware: Intel Atom CPU Z3740D @ 1.33Ghz, 2GB RAM, 64GB
- OS: 32-bit Windows 10 Home
- Java Runtime Environment: jdk-8u152-windows-i586 | jre1.8.0_152
- openHAB version: 2.1.0
- Browser: Chrome ver 62
-
Issue:
-
I’m trying to get the feed from my D-link 2332L security camera to show up in openHAB. I first tried directly in HABpanel with no luck due to inability to send HTTP Basic Auth in the url as
http://user:password@ip/ipcam/stream.cgi?nowprofileid=2
andhttp://user:password@ip/video/mjpg.cgi
andhttp://user:password@ip/video2.mjpg
, since browsers have recently blocked Basic Auth as part of the URL in this format, so none of these worked. Other variations with username and password as query parameters aren’t accepted by the camera (ex.http://ip/ipcam/stream.cgi?user=USERNAME&password=password&nowprofileid=2
) -
I then thought to first get it working on Basic UI after seeing HTTP Binding allowing for encoded auth header. However, when using it in an item and putting it on a Sitemap it doesn’t override the URL values of Image, Video or Webview, which it was noted should happen - unless it’s got to do with “some clients may not yet consider item”?
-
I’ve read through the following links but didn’t seem to find any working solutions: 1, 2
-
Is there a way I could use either of these two posts to make it work: 3, 4?
-
Additionally, there’s no way for me to either remove HTTP Auth requirement to view the security camera IP feed or create a guest user with no username/password. I disabled HTTPS to get this far, just in case.
-
-
Current configuration attempts:
-
Item configuration:
String Network_Device_CameraStream "Camera Stream" { http="<[http://192.168.1.112/ipcam/stream.cgi?nowprofileid=2{Authorization=Basic Base64encodedauth}]" }
-
Sitemap configurations:
-
Image/Video/Webview url="https://www.base64encode.org/assets/images/logo.png" item=Network_Device_CameraStream
- item doesn’t override Image/Video/Webview url -
Video url="http://192.168.1.112/ipcam/stream.cgi?nowprofileid=2{Authorization=Basic Base64encodedauth}"
- Status code 500, Not a valid URI -
http://192.168.1.112/ipcam/stream.cgi?nowprofileid=2{Authorization=Basic Base64encodedauth}
- Status Code 403, Request is forbidden (considers it as no auth sent at all)
-
-
HTTP Binding version 1.10.0:
timeout - 5000
granularity - 1000
format - true
-
No issues showed up in logs, just the browser console responses included above against each attempt.