I am running OH v2 on a Windows Host. Everything is working. I have changed my camera control. So these are now collected from a surveillance software and I can show them on a good and fast way via item URL in the sitemap.
This is only possible if I am accessing the OH sitemap internally. Externally without VPN the images will not showed in this way. If I change the IP from the local surveillance station to the local IPs of the cameras directly I can see them also via internet in the sitemap.
The question is now if there is an easy way to store the image (maybe every second) in an item and publish this item aswell so that I can have access to it also from outside?
It shows nothing from outside. The difference in the IP address is, that the 0.85 points directly to the camera. The 0.165 is the device where Openhab is running on (localhost).
And there is a port number involved. That shouldn’t make any difference, of course. In both cases the viewer should be trying to fetch an image from a proxy servlet in openHAB using a URL something like http://youropenhab:8080/proxy?sitemap=default.sitemap&widgetId=01020000&t=1633686921137
and the URL you put in your widget completely hidden.
Well, in reality both those links are surely ‘reachable’ but you don’t get the return picture you expect. What do you get when pasting hem directly in browser address bar? It’s going to be one of those silly things like jpg/jpeg difference. The images have been supplied from different sources.
If that really means the station image widget works on local internet, then the proxy servlet is happy with it. What is different remotely? The browser that you are using, or the content allowed to pass through a firewall or reverse proxy?
I am accessing with the OpenHAB App from iOS. In this app the local IP and the OpenHAB credentials are inserted.
If the local one is not reachable the app changes to the myopenhab access. Every item, widget and so on is working with this way except these camera pictures!
Anyone has another idea what I can check? I have still the error that the pictures only shows up if I am using the webcam IP adresses instead of the IP adress of the OH system where my iSpy is also running.
In local network everything is working absolut fine and with speed. I am now thinking about to implement a rule which saves the pictures every second in a local jpg file which is stored on the OH server but I think that this can be a problem with the OH performance if the rule is triggered every second isn’t it?
So, did another test: have installed my surveillance system on another device than the OH system itself to ensure that not this is the issue.
Also in the local network everything is working but outside the image still not showing. So this is not the issue…
Yes I know…but this is the only difference in this two links. The link with https where the port is dedicated specified at the end is not working. The other link is working because I can see the picture from outside my homework without issues.
Or is there anything else I can check or configure so that this is working?
that is the question…I have no idea how…the both URL are read out through the developer tools in my browser when I am accessing my basic ui sitemap. This is the only differense I see in the both pictures, that one is not working but the other one is working.
I have no idea why “:443” is part of the one link which is not workin and I don’t know how to prevent this!?
If I am internally at my home network everything is fine. If I disable my WiFi on my phone and connect over myopenhab its not showing the picture anymore!