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.

    Pi-hole API presenter

    Scheduled Pinned Locked Moved Requests
    8 Posts 7 Posters 7.5k Views 8 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.
    • B Offline
      beeficecream @bmarofsky
      last edited by

      @bmarofsky Hey guys… any luck on getting this to work? I’m seeing the same issues and no errors in my logs.

      1 Reply Last reply Reply Quote 0
      • B Offline
        barnosch
        last edited by barnosch

        got it work.
        Check if your clone from git is correct from up an lowercase…
        for me it was cloned to
        mmm-pihole-stats
        instead of
        MMM-pihole-stats
        also check that in the config style.

        it only showed something for me, after setting
        showSources: false,

        Maybe it helps someone

        changed also some stats to see the more interesting stuff
        0_1521843413987_6c29a650-1799-486e-98fa-b0b8434e6e8e-grafik.png

        1 Reply Last reply Reply Quote 0
        • B Offline
          barnosch
          last edited by

          oh i forgot something…
          i also added this one at the pi server

          In file /var/www/html/admin/scripts/pi-hole/php/auth.php add your host in the array of allow hosts:
          
          $AUTHORIZED_HOSTNAMES = array( $ipv4, $ipv6, str_replace(array("[","]"), array("",""), $_SERVER["SERVER_NAME"]), "pi.hole", "localhost", "your.hostname.com" );
          
          1 Reply Last reply Reply Quote 0
          • N Offline
            nitram
            last edited by

            Hi,

            Thanks for the tip barnosch, adding the hostname - for me it took adding the ip address of the magic mirror raspberry pi (where “your.hostname.com” is in the example line) - to that file on the pi-hole raspberry pi did the trick.

            However, I now have the same issue that others have reported of this module causing the mirror to freeze and/or crash after a few hours, maybe a day of uptime. I’ve disabled it and everything is working again, but does anyone know why this module causes this, or any likely fixes?

            Cheers

            1 Reply Last reply Reply Quote 0
            • H Offline
              HK
              last edited by

              I was also having this issue where magic mirror was not showing status.

              i made silly mistake of copying the url which i access in browser but later i noticed that we need to copy the url with “api.php” in end of the address which fix the issue for me.

              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