• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.2k 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.
  • C Offline
    cowboysdude Module Developer
    last edited by Jan 17, 2020, 11:01 PM

    Well that’s how it goes sometimes. People create modules that they give away for free so they can’t possibly give free support forever. They get busy in life and they move on…

    You can either go to the Github repository where the module is and ask questions or post issues

    or

    You can do a ‘fork’ and maintain and/or improve it.

    I don’t think asking someone else to do it is going to get you any results. Not trying to be rude here but this is a project where the user is supposed to take an active part in and learn…
    Now if you try this and run into an issue I’m sure one of us would be glad to help you :)

    1 Reply Last reply Reply Quote 1
    • I Offline
      iorifly
      last edited by Jan 18, 2020, 3:33 AM

      I understood what you wrote. I wasn’t upset.

      But unfortunately, my knowledge of programming is limited. I always help, in the things I master. I made the request in the forum area where it says it is to request modules. So I was calm.

      But it’s alright! Thank you, I will look for another solution to integrate my HA with MM.

      1 Reply Last reply Reply Quote 0
      • D Offline
        doubleT Module Developer
        last edited by Jan 18, 2020, 3:20 PM

        Hi,

        looking at the module, it is just an iFrame that displays a grafana graph. So there is not much anyone on here could do. I don’t know anything about graphana, but from what I’ve seen, it seems like graphana is capable of doing “horizontal graphs” (meaning bars vertically stacked and growing horizontally?).

        Seems like you’d have to look for help in the grafana community. As I said, it seems like the module here just shows whatever you have in grafana.

        Do you have a grafana ready? Or an example of an image what you have and what it should look like?

        Regards,
        Torben

        I 1 Reply Last reply Jan 18, 2020, 4:19 PM Reply Quote 0
        • I Offline
          iorifly @doubleT
          last edited by Jan 18, 2020, 4:19 PM

          @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 Jan 18, 2020, 4:56 PM

            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?

            R 1 Reply Last reply Jun 21, 2020, 5:01 PM Reply Quote 0
            • R Offline
              rubenix @doubleT
              last edited by Jun 21, 2020, 5:01 PM

              @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
              • P Offline
                Piranha1605
                last edited by Jun 21, 2020, 8:37 PM

                maybe that will help you.

                x-frame-bypass

                R 1 Reply Last reply Jun 22, 2020, 6:09 AM Reply Quote 0
                • R Offline
                  rubenix @Piranha1605
                  last edited by Jun 22, 2020, 6:09 AM

                  @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