Possibility to show grafana graph in sitemap via remote access?

To be able to access it from myopenhab.org

Here are two ways of showing charts in sitemaps.

First is rendering:

Image refresh=30000 url="http://10.4.28.237:3000/render/d-solo/ZkZGWpgRk/nilan-ind-ud-temperatur?refresh=30s&orgId=1&panelId=6&from=now-18h&to=now&width=1000&height=500"

Second using webview:

Webview url="http://10.4.28.237:3000/d/ZkZGWpgRk/nilan-ind-ud-temperatur?refresh=30s&orgId=1&tab=display&from=now-12h&to=now&panelId=6&fullscreen&kiosk=1" height=15

Both options works fine remote through the openhab android app, as well as myopenhab.org, on my system though, (beside rendering sucks and takes a huge amount of resources).

Btwā€¦ Grafana server us running on the same computer as openhab.

Donā€™t get this running with remote URL. Will change to chart item and give grafana a try when I get my nerves back.

Anyway: thank you both for your effort

I have to come back on this, as last night I changed all my sitemaps to use webview insted of rendering.
Now I can not see the charts when connected to basicUI from outside via myopenhab.org either
Using the opehab app on android gives exactly the same error you got.
It works fine locallyā€¦

If I change to rendering insted, it works fine, beside rendering takes a huge amount of resources on my Rpi, which can give other problems I have been struggling withā€¦

So I believe there is a problem somewhere using webview in sitemaps with local URL/IPĀ“s from ā€œoutsideā€ via myopenhab.org. Using image in sitemaps works fine.
This is a weird problem, cause in both situations it makes use of the internal (local) IP for Grafana.

That makes me sick.

Nothing works for me using the android app via myopenhab.org

In the meantime i tried (for me) absolutely each possible option and nothing gave me a solution.
Any possible solutions?

Donā€™t believe that you (@Kim_Andersen) and me are the only two having this trouble

YouĀ“ll not be able to use Webview and myopnehab.org for a local Grafana server. Webview doesnt proxy the Ip adresse. Which means, when you use Webview and a local server, the client tries to locate the local IP when beeing remote.

You have to add remote access to your Grafana server (not a good idea) using portforward.
Or you have to use rendering (Image type) in your sitemap. Image (rendering) works fine by remote access. But Image type (rendering) uses a huge amount of resources on the platform you run Grafana. I had to stop Grafana on my Rpi and move it to my windows server (more powerfull PC), to be able to use rendering.

This is how it works remote (android openhab app) when using image type in a sitemap:

1 Like

@Boogieman, for me itā€™s working with your first urls, since my grafana has same user and password like htaccess for sitemap on nginx proxy. The openhab is asking the grafana during delivery for image and with same credentials itā€™s working fine.

Took a hard day of researchā€¦
Regards, Dirk

Iā€™d be glad for any advice in this matterā€¦ Thank you.

May I reactivate this topic please?

IĀ“m using webview in my sitemap and they are working fine while on the same network as my openhab.
Grafana and openhab 3.3 are running both on my Raspi 4.

As soon as IĀ“m using remote access through myopenhab.org all my webview charts arenĀ“t displayed.

A webview is defined with local IP addressā€¦I guess this might be the problem? But how to solve this?

Webview url="http://192.168.1.199:3000/d-solo/kOfcFYgRk/buerotisch_verbrauch?orgId=1&panelId=2&from=now-1d&to=now&refresh=1m" height=6