Hi,
I’m trying to show a webview from a dynamic html-page (data from weather binding) when not connected to the local network (using myopenhab or HabDroid).
I tried to do it with a “wrapper” html which is reachable via the internet, but that does only work when connected to the local net. When trying to reach that page from the outside it reports that the underlying local adress is not rechable.
I guess what I did can only be regarded only as a poor workaround.
I am creating picture (jpg) of my html page via an external tool (tool is run via the exec binding) .
Also I am using a different sitemap for remote access.
In this sitemap I am using the image display capabilities of OH to show the picture of the html page.
The downside. All the interactivity of a custom html page is gone.
But atleast I can see my html dash board using myopenhab.
It would probably be possible to call the tool directly without the indirection via a batch file.
you can download the tool under http://wkhtmltopdf.org
It is also running under Linux. So principally this approach should also work with Linux and MacOS.
In OpenHAB2 I created anc String Item to hold the path to the picture
String WeatherPicture
and on the sitemap I have
Image refresh=60000 item=WeatherPicture
The picture is made via a rule which is triggered on each change of the ObservationTime.
I’m using the postUpdate for the String Item WeatherPicture to raise a refresh of the sitemap, but I’m not sure if that isworking.