MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    grafana module for bar graphs display.

    Scheduled Pinned Locked Moved Unsolved Requests
    9 Posts 5 Posters 2.3k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      iorifly @doubleT
      last edited by

      @doubleT

      I have the graphics ready on the graphana and everything is working.

      In fact, I am in a tireless quest to display my HA data in MM. And I found the module HA> graphana> MM. But it is abandoned.

      1 Reply Last reply Reply Quote 0
      • D Offline
        doubleT Module Developer
        last edited by

        Ok, I cloned the module, set up a grafana and tried it out.

        The console error shows: Refused to display 'https://myname.grafana.net/login' in a frame because it set 'X-Frame-Options' to 'deny'.

        Searching for that on Google brought me to the Grafana website:

        Embedding Grafana

        If you’re embedding Grafana in a frame, iframe, embed or object on a different website it will no longer work due to a new setting that per default instructs the browser to not allow Grafana to be embedded.

        There are two topics on that: https://github.com/grafana/grafana/issues/17458, https://github.com/grafana/grafana/issues/15714

        Without any further investigation it seems like there are some settings that need to be done when you’re hosting grafana? So maybe it’s not possible to get to these settings on the free hosted versions?

        There are two other issues:
        If using the free hosted version there’s something about an API key. That might be an issue as well?
        And the module config is not asking for the entire grafana URL but wants several parts of the URL, but the actual grafana URL seems to be different to what the module is making out of these parts.

        Sorry, at the moment I can’t look any further into this, maybe someone else is interested in grafana and comes up with a solution.

        @SvenSommer?

        rubenixR 1 Reply Last reply Reply Quote 0
        • rubenixR Offline
          rubenix @doubleT
          last edited by

          @doubleT Im on the same boat;
          i can display the grafana playlist on every single device on same subnet (TV, mobile, PC, laptop) except the mirror (hosted on a pi). so i guess there’s something with electron cause it works on other devices as i said…
          here part of grafana.ini config file involving security.

          [security] 
          allow_embedding=true 
          cookie_samesite=none
          

          here dev console logs

          Load denied by X-Frame-Options: http://192.168.x.x:3000/playlists/play/1?kiosk does not permit framing.
          

          tried to show the playlist with MMM-iFrame, MMM-SmartWebdisplay & MMM-Widget with same results.
          btw: grafana hosted on another pi inside a docker container…just leave it here with hope some of the expets here can throw some suggestion.

          1 Reply Last reply Reply Quote 0
          • Piranha1605P Offline
            Piranha1605
            last edited by

            maybe that will help you.

            x-frame-bypass

            rubenixR 1 Reply Last reply Reply Quote 0
            • rubenixR Offline
              rubenix @Piranha1605
              last edited by

              @Piranha1605 Thanks tried that already, it trows:
              ‘The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.’

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy