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
401 stars 27 forks source link

Flutterhole dashboard unusable with v5.18 of Pihole web interface API #165

Open sergekh42 opened 1 year ago

sergekh42 commented 1 year ago

Describe the bug Flutterhole does not properly use auth on dashboard screen causing it to be unusable.

To Reproduce Steps to reproduce the behavior:

  1. Open Dashboard

Expected behavior Dashboard should load in with data.

Screenshots Screenshot_20221224-173838

Versions:

Additional context

Pihole web v5.18 requires auth on all API endpoints now except for version and type. PR that caused this change - https://github.com/pi-hole/AdminLTE/pull/2411 Pihole release - https://github.com/pi-hole/AdminLTE/releases/v5.18

Since upgrading to the Pihole web v5.18, Flutterhole no longer works. Adding auth to the API endpoints that don't have it should fix the issue. Those are status, summary, summaryRaw, overTimeData10mins

TheTrueColonel commented 1 year ago

Having the same issue

LinusHoppe commented 1 year ago

Can confirm

nomisunrider commented 1 year ago

Also confirming

cloudycloud47 commented 1 year ago

sadly can confirm also. was working on previous version, then app suggested I upgrade and then after successfully upgrade, app won't validate IP address but will validate API code. :(

sterrenb commented 1 year ago

Sorry to hear it! I made a quick fix for this on the web branch, but the branch is not published in the Play Store. It isn't quite stable, but seeing as the Pi-hole API is changing this often I doubt it ever will. I'll see if I can at least publish the web branch as a beta build for the time being.

daisenberg commented 1 year ago

In the interim, the following changes restore functionality. Go to your Pi-hole settings and amend the API path in the Host details section. Please note your host address may be different to http://pi.hole

Change

http://pi.hole/admin/api.php?status

to

http://pi.hole/admin/api.php?status&auth=<TOKEN>

You can get the token from Settings/API/Show API token or from /etc/pihole/setupVars.conf (WEBPASSWORD).

Full guide found here: https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/#page-content

TheTrueColonel commented 1 year ago

In the interim, the following changes restore functionality. Go to your Pi-hole settings and amend the API path in the Host details section. Please note your host address may be different to http://pi.hole

Change

http://pi.hole/admin/api.php?status

to

http://pi.hole/admin/api.php?status&auth=<TOKEN>

You can get the token from Settings/API/Show API token or from /etc/pihole/setupVars.conf (WEBPASSWORD).

Full guide found here: https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/#page-content

Thank you. This workaround works.

Anoni-Mouse commented 1 year ago

Screenshot_20230107-133230.jpg

Thanks it worked.

mix3d commented 1 year ago

This workaround has addressed the dashboard loading but I'm unable to get the query log page. Does that work for anyone else?

Jameshudson commented 1 year ago

This workaround has addressed the dashboard loading but I'm unable to get the query log page. Does that work for anyone else?

I can confirm I'm having the same issue. Anyone got it working?

mix3d commented 1 year ago

I've mostly just started going to the web API directly. I haven't had time to attempt to fix.

femto-code commented 1 year ago

Same issue here, any updates?

mix3d commented 1 year ago

Project seems abandoned, no maintainers. I don't have the time to learn Flutter and fix it :/ But it also seems like they're waiting for the upcoming (3 years later) API changes to get merged, so that falls in line. https://github.com/pi-hole/FTL/pull/659