some news from my side.
I finally got grafana panel integrated in OH3 UI.
I identified different issue.
first I configured nginx proxy manager with grafana a sub location.
this never worked stable. I could open it from the internal network but not from outside.
the grafana sub location was configured as http but that created an issue on https .
I figured out that the firefox browser was not able to handle the the mixed http and https
i then configured in nginx proxy manager as subdomain .e.g. grafana.example.com with independent letâs encrypt certificate . It was still not working as i decided to protect the subdomain with a nginx proxy manager access list.
I took the same access list as openhab. This work for web browser but not for android as in the app the authentication was not forwarded properly
4 So i removed the access list and e vola it works in browser and in the app . Internal and external.
Does anybody has a good way to forward the authentication properly to the grafana?
any specific setting required in nginx to forward the authentication fro openhab to grafana?
thx
Iâd like to thank you so much @maxmaximax. This is such an awesome contribution youâve made to the OH community.
The only change I made was to add a default to the timerange widget:
- default: from=now-6h&to=now;6h,from=now-12h&to=now;12h,from=now-1d&to=now;24h,from=now/d&to=now/d;Day,from=now-3d&to=now;Last 3 Days,from=now-7d&to=now;Last 7 Days,from=now-14d&to=now;Last 14 Days
description: Comma-separated List of options. Example "from=now-6h&to=now;-6h,from=now-1d/d&to=now-1d/d;yesterday" for past "6h" and "yesterday". First entry is default.
label: Time range options
name: timerange
required: true
type: TEXT
I use this great widget and it works fine when I access openHAB from my local PC in my local network (i.e. 192.168.86.81:8080).
When I try to access it in the Android APP or via cloud (https://home.myopenhab.org/) the widget remains empty (with a white screen). I got no error message.
When I put in the URL above in a browser I can access this dashboard without any login.
I then tried to make a snapshot in Grafana and use this is a web frame card. This works locally as well as in the Android app as well as on a remote PC from openHAB cloud.
So I thought it could not be anything with credentials, right ?
Does iframe handle http ?
I did not manage to set up https with my AWS cloud instance so far.
Think so but âŠ
the main page is https and the embedded page / iframe content is http then http will be blocked. I would assume that you should see this being reported in the browsers console.
openhab newbe here.
I wanted to use this widget but when I want do add it to my Overview page (latest stable Openhab version), there is only some cryptic text (482eeeea4-d5e0-454c-9c24-528fdc523fad) I can add (which is supposed to be the grafana widget). If I do so, nothing happens on my Overview page. Is it just the wrong place I want to do that or what is missing for me?
Iâve the same problem like @krolli53.
After adding the widget to the overview page and saving the changes, the page canât be loaded again. It only shows âLoadingâŠâ.
Iâm having the same problem. Seems like this widget isnât registering itself properly. I know this is the widget, if I remove it, this option goes away.
If I ignore that itâs not a nice name, and try to use it anyway it hangs up the page.
Iâm on OpenHAB 3.4.3 installed on Debian 11. I just went to the market place in installed this addon from the UI page. This is how is shows up. There are others who have posted same issue here (few posts before my post).
Ok so I found your widget code in that discussion you posted about (somewhere at the bottom of the conversation):
I copied and pasted that and created a widget locally, and it worked. So I believe the problem is the marketplace, or how/what is being downloaded. I donât know if you can at least check that the widget in the marketplace is not corrupt or something?
I have installed other marketplace widgets, all successfully. So this hopefully points you in the right direction.
Thanks @maxmaximax
I should have updated my post. I was using an external link instead of âshare embedâ, which is what was causing the controls issue.
After using the proper link, it works fine (I do have to log back into grafana via the widget from time to time, as I could not find a way for it to store cookies, but thatâs a different issue).