OpenMarine

Full Version: Grafana iframe display within KIP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
Like a few folk during lockdown I have been having great fun installing and configuring openplotter/signalk/kip/grafana/InfluxDB etc 

This is my first post to this site and I would be grateful for your help.

My setup.  OpenPlotter on RaspPi4.  Added InfluxDB/Grafana and successfully displaying graphs in Grafana and custom information in KIP. 
I would like to be able to display a grafana panel in KIP.   I believe I have configured grafana to permit embedding  
I have changed the grafana ini to 

allow_embedding = true
cookie_samesite = none

  • From Grafana panel I obtained the below URL

<iframe src="http://openplotter.local:3001/d-solo/RVSdfcggk/engine-and-weather-graphs?orgId=1&refresh=30s&from=1615817861678&to=1615818761678&panelId=12" width="450" height="200" frameborder="0"></iframe>
  • When I copy this URL into the KIP 'embed web component' and lock display I get the following displayed:
    Cannot GET /@mxtommy/kip/%3Ciframe%20src=%22http://openplotter.local:3001/d-solo/RVSdfcggk/engine-and-weather-graphs
  • If I copy the URL portion I obtained from Grafana into a browser window i see the correct grafana panel I want. 
http://openplotter.local:3001/d-solo/RVS...panelId=12" width="450" height="200" frameborder="0"

Would appreciate any suggestions, 

Many thanks!!
Peter
Hi, I had similar issues with this and I'll have to take a look as to how I resolved it but I think I did the same with the Grafana file and then I think I removed the iframe part and just used the URL.
Hi BoatingBaileys

I actually used your youtube channel to get as far as I did so huge thanks for those videos.
I've just tried the URL on its own without the iframe part and you are right it works.
I did however need to return cookie_samesite back to the default. When I had this set to 'None' I was unable to login to grafana on the local machine.

But great news.. I now have grafana graphs within KIP.

BTW: Looking forward to more inspiring youtube video's. Could I request a short video on the best Compass rose?

Many thanks!!