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.

    MMM-GrafanaChart doesn't display my Grafana Dashboard

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 1.3k Views 3 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.
    • A Offline
      alphanet
      last edited by

      Hello

      I would like to embed a Grafana Dashboard in my Magic Mirror with the module : MMM-GrafanaChart.

      So I have installed the MMM-GrafanaChart module.
      I have changed the settings in the grafana.ini as specified :

      [auth.anonymous]

      enable anonymous access

      enabled = true

      specify role for unauthenticated users

      org_role = Viewer

      [security]
      allow_embedding = true

      My config.js file for this module is simply:

      modules: [
      {
      module: ‘MMM-GrafanaChart’,
      position: ‘top_right’, // This can be any of the regions.
      config: {
      url: “https://localhost:5000/…”, // see below on how to get the URL from Grafana
      width: “100%”, // Optional. Default: 100%
      height: “100%”, // Optional. Default: 100%
      scrolling: “no”, // Optional. Default: no
      refreshInterval: 900 //Optional. Default: 900 = 1/4 hour
      }
      },
      ]

      I have put the Link URL that I found in the Share menu of the Dashboard in url:

      Unfortunately on the Magic Mirror I only get a “Welcome to Grafana” window asking for login,and can’t go further, when entering login/password ?

      How could I have access and display my dashboard directly without this login from Grafana ?

      Thank you very much in advance for your help.

      B wishmaster270W A 3 Replies Last reply Reply Quote 0
      • B Offline
        barnosch @alphanet
        last edited by

        @alphanet

        I also did not get that to work, so i use
        “MMM-iFrameReload”
        That works without issues

        Looks like this

        	{
        		disabled: false, 
        		module: 'MMM-iFrameReload',
        		position: 'top_left',
        		//header: 'Graph',
        		config: {
        			url: "http://YourIP:3000/d/99SonoTEST/overview?orgId=1&kiosk",
        			width: "365px", // Optional. Default: 400px
        			height: "320px", // Optional. Default: 800px
        			refreshInterval: 300,  //300= 5min . Default: 3600 = 1 hour
        				}
        		},
        
        1 Reply Last reply Reply Quote 0
        • wishmaster270W Offline
          wishmaster270 Module Developer @alphanet
          last edited by

          @alphanet
          Hi, you can use my MMM-EmbedURL module for this job.
          I wrote a tutorial of how to do it.

          1 Reply Last reply Reply Quote 2
          • A Offline
            alphanet @alphanet
            last edited by

            Thank you very much for your help barnosh and wishmaster.

            I have tried MMM-iFrameReload and MMM-EmbedURL, but still cannot display my Grafana dashboard in the MM.

            The modules work very well but not with my Grafana dashboard link ?

            I have to try again and find the reason of this issue.

            Gratefully yours.

            alphanet

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 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