As you can see, grafana server is running on the same machine as openhab2 (localhost).
We use severale smartphones (android and iOS) with openhab app to show our sitemap. The interessting thing is, if connected remotely via myopenhab.org, I can see all this grafana images. If I’m connected local (when I’m at home and using WiFi), none of this images is visible.
This works for me a long time, also locally. But since a month or so, it stopped working in local network.
Using openHAB 2.1.0
at a Odroid XU4 with Ubuntu 16.04.2 LTS
and the newest app from store.
Of couse a local HTTP GET of the image url above is working fine.
Can anybody help me?
@coolchip Did you manage to fix this? I’m having the same issue. Works on remote but not local. (If I load the local URL in a browser I get images, its just the app that seams to be broken)
If you run OpenHAB / Grafana in Docker, make sure to provide the correct domaine name. For example, I can access Grafana through http://grafana.loc, but inside the OpenHAB container, it has to be http://grafana. Try to curl Grafana inside OpenHAB container.
For App access through local URL: if you have set up a username and password in the app for local access, these credentials get proxied to Grafana! So either add the same user to Grafana, or delete username & password in the app (of course, only if you do not need the credentials to access OpenHAB…).