I’m struggling to get Grafana in a HABPanel frame working.
Everything done like described in the according example documentation, but the frame just stays empty.
Now, I’m looking for a way to debug this.
Has anyone a good idea?
Grafana and OpenHAB working on the same server
both on latest levels
I have integrated MySQL as data source without any issue
Where did you get the URL for your graph from? Did you use share->embed in grafana and copy the URL?
Maybe you could post your HabPanel frame configuration, that’d help for sure!
can you try and replace the host name “zotac” with the IP address of your machine?
Additionally, you don’t need an refresh interval for grafana widgets, you can set the refresh period in the dashboard settings in grafana, preventing ugly frame reloads in your HabPanel.
The from= and to= timestamps should also be replaced with something more senseful, like:
from=now-7d&to=now
So, I did replace the hostname with the IP address - nothing changed.
I changed the interval as suggested. The Grafana link itself produces proper graph - the widget showed nothing.
Also, I opened the Grafana graph from the system hosting my openHAB, and it showed a proper graph, as well as my office desktop does. And the frame widget does not show anything on the actual host either.
I did test on the actual hosting server directly, but also on a client. Both do not work. Removing and adding the frame does not fix it.
I would be interested, if HABpanel indeed reaching out to the Grafana panel. So, i just wonder if there is a way to track this down without huge network tracing?
Check the grafana.ini regarding the settings, I posted earlier already:
allow_embedding: true
cookie_samesite: none
If HABpanel runs on HTTPS protocol, needs to run it also. Otherwise, modern browsers are blocking non-secure content. And this is what happened in my case.
Everything else works as described in the tuturial.
Only item left here, to get it running on iOS devices. Since this has something to do with the different SSL certifcates of HABpanel and Grafana … tbc.