Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webview element not seen on app #84

Closed
xefil opened this issue Sep 6, 2016 · 6 comments
Closed

Webview element not seen on app #84

xefil opened this issue Sep 6, 2016 · 6 comments

Comments

@xefil
Copy link

xefil commented Sep 6, 2016

Hello!
I'm using the app to show the content of my openHAB installation.
Now I've implemented a graph using Google Charts via javascript.
It works without problems on the Safaro browser of my iPhone iOS 9.3, but it's not showing up on the app. Strange is that there is a button in the page that's correctly shown. Only the graph is not shown.
Also the sitemap is configured correctly and the page opened. Only the graph is not drawn.
Bug?

Thanks!

Simon

@TorstenRoessler
Copy link

Hallo,
i am using the Openhab-2 Beta-4, the AndroidClient HABDroid 1.8.05 with Android 6.01 and the iOS App 1.7.3.1 with iOS 10.1.1. in my Sitemap i have the Weather App with Settings for OpenWeatherMap. The Layout for is configured per html File

Webview url="https://192.168.9.4:8443/weather?locationId=heide&layout=heide&iconset=colorful"

In Webclient (i.e Noteboo/PC) it looks good. In HABDroid all is fine. But the iOS App shows nothing, no Image, no Item, simple nothing.
Another Webview with a simple URL to a php File, that creates a Graph wit JPGraph works on Android and iOS, but not in the WebClient.
This must be a bug ?!

Thanks
Torsten

@TorstenRoessler
Copy link

Now i have make some Tests.
in the local Network the AndroidClient does work good and show the weather correctly.
From extern (mobilNetwork) the Android does not show the weather. > HTTP404 ... not found.
The Source from the Webview in Sitemap:
Webview url="http://192.168.9.4:8080/weather?locationId=heide&layout=heide&iconset=colorful"

Another ImageItem:
Image url="http://192.168.9.1/graph/aussen.png"
This works in local Net and mobile Network with Android and iOS App thery good.
I'm confused!!!

@NickWaterton
Copy link

NickWaterton commented Nov 20, 2016

The weather binding "weather" applet is a 1.9 binding, and uses the old OH1 directory structure, not the new OH2 structure, so it is looking for the weather-data files in the wrong location.

This is not a problem with the iOS app, but the weather 1.9 binding. I have posted elsewhere where to put the weather-data files to fix this problem, then the page loads just fine.

@TorstenRoessler
Copy link

Hi Nick,
Yes, it is'nt a Bug in the iOS APP. i think, this must be a Problem with the Openhab2 WebView Item.
I know, for the Android and iOS App the WeatherData must locatet in .../userdata/webapps/weather-data/...
For the Webclient the Weather Data must locatet under ..../conf/html/weather-data. Is this correct?

@NickWaterton
Copy link

Yes that's right. I did write it up somewhere.

@timbms
Copy link
Contributor

timbms commented May 15, 2019

Closed

@timbms timbms closed this as completed May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants