IOS app does not show webview & image

Hello,
on either of my iphone or ipad app is webview and image working on sitemap. Via webpage it’s everything OK, but application is not showing anything.

For example I do have this section

	Frame label="Tests" {
		Text label="click me" {
			Text label="testing"
			Webview url="/static/shaddow.svg?{{itemValue('Sun_Azimuth')}}" icon="none"
			Image refresh=60000 url="http://10.10.1.11:3000/render/d-solo/2qN8-ZCZk/openhab?orgId=1&theme=dark&panelId=2&from=now-12h&to=now&refresh=30s&width=1000&height=100"
		}
	}

which produces this viewed in webbrowser

but on all of my mobile devices, i see only “testing” and rest of the page is not rendered.

Is that known behaviour I how I can debug it what’s going on?
Thanks

<< Ok, i read a little to fast, you are allready using webviews. then you are probably awhere of my solution. Still i think grafana graphs are easier in html file.>>

Hello Kriznik,

This is a known issue, try to show the graphs trough webview.
Like this:

Create a html file with url from grafana (or whatever image you want to get from the internet)

<html>
    <body>
<iframe src="http://openhab:3000/d-solo/lblvwWggz/openhab?orgId=1&from=now-7d&to=now&panelId=6" width="500" height="200" frameborder="1"></iframe>    </div>
    </body>
</html>

Then in sitemap put this:

Webview url="http://192.168.2.108:8080/static/weather.html" icon=none height=11

Ofcourse change weather.html to the name of your html file

Hope it works!

thanks for reply, anyway webview is not working on my app either way. :frowning:

He kriznik, just saw your reply,

did you try to use the embed option in grafana share settings?

well that’s iframe, not sure how to include it into the sitemap tho?

With the post i send earlier.

Put the iframe in a html file and save that in the html folder
like this:

<html>
    <body>
<iframe src="http://openhab:3000/d-solo/lblvwWggz/openhab?orgId=1&from=now-7d&to=now&panelId=6" width="500" height="200" frameborder="1"></iframe>    </div>
    </body>
</html>

and then this in your sitemap:

Webview url="http://192.168.2.108:8080/static/weather.html" icon=none height=11

I have actually setup a new openhab installation on Ubuntu LTS 20.04 with grafana 7.0. In Basic UI the grafana chart is shown. However, in the ios app not. I’m using the rendering option to display it as an image.

Text item=Wetter_Globalstrahlung label="Globalstrahlung [%.1f W/m²]" icon="none" {
	Image url="http://192.168.0.80:3000/render/dashboard-solo/db/openhab_globalstrahlung?orgId=1&panelId=2&from=NOW-120&to=NOW&width=800&height=500" refresh=300000
}

I still have my old openhab installation running with another local IP adress. If I change the settings in the ios app to the old installation the grafana charts still displayed. So I don’t think it’s related to the ios app. Any ideas on that topic?

yeah, not working either.