sterrenb / flutterhole

A third party Android application for the Pi-Hole® dashboard.
https://play.google.com/store/apps/details?id=sterrenburg.github.flutterhole
MIT License
400 stars 27 forks source link

Wrong values #83

Closed Urs1956 closed 4 years ago

Urs1956 commented 4 years ago

Hi, nice tool with a funny bug 151 % . See screenshot Screenshot_20200518-194113

sterrenb commented 4 years ago

Hello @Urs1956 👋 - Thanks for opening an issue!

Very interesting graph you have there. Could you try accessing the following URL in your browser:

{{ base_url  }}?getForwardDestinations&auth={{ auth  }}

An example request would look like this:

http://pi.hole/admin/api.php?getForwardDestinations&auth=my_token

You should get a JSON response looking something like this:

{
  "forward_destinations": {
    "blocklist|blocklist": 24.50,
    "cache|cache": 25.50,
    "dns.google|8.8.4.4": 23.50,
    "dns.google|8.8.8.8": 26.50,
  }
}

I am curious to see whether your Pi-hole has gone mad, or whether the app has.

Urs1956 commented 4 years ago

The output is empty. I hope, the URL is correct.

image

image

sterrenb commented 4 years ago

My apologies, I should have been more clear. You have to replace my_token with your own API token (on the Pi-hole dashboard, under Settings > Api Web Interface > Show API token). This should result in some JSON-like response.

Urs1956 commented 4 years ago

Here the output:

{"forward_destinations":{"blocklist|blocklist":20.97,"cache|cache":9.51,"fritz.box|fd00::3681:xxxx:yyyy:zzzz":155.15,"fritz.box|192.168.1.1":7.21}}

sterrenb commented 4 years ago

Interesting, that is definitely more than 100%. What does the graph on your web dashboard show? If you hover over the pie chart in a browser, you should see some percentages too.

I just added up the values from my own Pi-hole and it adds up to 100,4%.

Urs1956 commented 4 years ago

Sorry, at this time I havn´t hovered. I think the error is in pihole

image

Urs1956 commented 4 years ago

I give this "error" to the pihole-communitiy https://discourse.pi-hole.net/t/summenfehler-in-darstellung/32912

Urs1956 commented 4 years ago

The "error" is fixed: The DNS-Entries for my router was double and pihole count double this entries. After I delete one it works coreect. In v4.x this was not a problem......

sterrenb commented 4 years ago

Glad to hear you got it working!