• 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.

Pi-hole API presenter

Scheduled Pinned Locked Moved Requests
8 Posts 7 Posters 7.3k 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.
  • V Offline
    VladoPortos
    last edited by Dec 26, 2016, 9:32 PM

    Already exists here:
    https://github.com/sheyabernstein/MMM-pihole-stats

    can’t get it to work though, its say Loading all the time :-/

    B 1 Reply Last reply Feb 8, 2018, 3:23 AM Reply Quote 1
    • B Offline
      bmarofsky @VladoPortos
      last edited by Feb 8, 2018, 3:23 AM

      @VladoPortos same here, but on a Windows PC if i go to the MM url, the pihole stat show perfectly.
      could it be a raspbian browser issue?

      B 1 Reply Last reply Feb 25, 2018, 8:28 PM Reply Quote 0
      • B Offline
        beeficecream @bmarofsky
        last edited by Feb 25, 2018, 8:28 PM

        @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 Mar 23, 2018, 10:17 PM Mar 23, 2018, 9:23 PM

          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 Mar 23, 2018, 9:36 PM

            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 Apr 27, 2018, 1:53 PM

              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 May 28, 2020, 7:31 PM

                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