ML1982
(ML1982)
April 8, 2022, 6:01pm
1
Platform information:
Hardware: Raspberry Pi 4 Model B Rev 1.4 | Linux 5.15.30-v7l+
OS: Raspbian GNU/Linux 11 (bullseye)
Java Runtime Environment: OpenJDK 11
openHAB version: openHAB 3.2.0 - Release Build
My Grafana itself works as desired.
But i’m not able to embed to a graph in a Openhab Page, the web frame card remains blank.
I tried this URL:
and also this:
http://openhabian:3000/d-solo/LMWQE2ggz/openhab-dashboard?orgId=1&from=1649354066981&to=1649440466981&panelId=2
here the relvant sections from my /etc/grafana/grafana.ini
#################################### Users ###############################
[users]
# disable user signup / registration
allow_sign_up = false
# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
allow_embedding = true
[users]
# disable user signup / registration
allow_sign_up = false
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
enabled = true
ML1982
(ML1982)
April 8, 2022, 8:20pm
2
Sorry, i just figured out, that i’ve postet the same question a few weeks ago:
I configured a grafana with influxdb and i’ve a designed a graph.
So far so good.
[image]
But now I want to display this graph in openhab. So at first I used the share function within Grafana:
[image]
Afterwards i created a page with a webfram and I inserted a webframe with the URL of the graph.
[image]
But openhab doesn’t load the graph.
[image]
same here with my current setup.
I updated my ubuntu 22.04 and are on the OH3.3M4
still investigating why the screen is blank.
i am using he using this guideline
With great support by @BobMiles , @RGroll and @ysc I managed to create a widget to embed grafana charts with configurable time ranges.
If interested, you can find the whole discussion here .
[Grafana chart widget]
[Grafana widget props]
Source URL:
Make sure you insert {period} inside the URL where you would want to have the time range pasted.
Example:
http://192.168.0.13:3000/d-solo/4OdYJNbMk/energie-pv-haus?orgId=1&refresh=1m&from=now-{period}&to=now&panelId=2
Resources
Full widget YAML…
Bert
(Bert Visscher)
October 2, 2022, 7:40pm
4
Peter,
Did you get grafana working again, and if so, how?
hi ,
yes finally have it running.
i ended up in the using nginxy proxy manager as reverse proxy to also expose grafana as external with anonymous access for viewer.
unfortunately i was not able to get security from OH3 , means authentication , integrated with grafana.
i used the access list in nginx proxy manager to secure the access to grafana and OH3 with the same access list