dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Issues with Pihole widgets not working

Open back-lacking opened this issue 9 months ago • 13 comments

Environment

Self-Hosted (Docker)

System

Debian 12.9, Docker 27.5.1

Version

3.1.1

Describe the problem

So my widgets for Pihole one day stopped working. Turns out that Pihole had a relatively big update, not sure if that broke how dashy interacts with the Pihole API. My normal API key doesn't work, and trying to use an app password I made in Pihole doesn't work. not sure if the project has been updated to handle that.

Additional info

No response

Please tick the boxes

back-lacking avatar Feb 19 '25 05:02 back-lacking

They did a massive overhaul of how the API is called with v6. New endpoint locations and a new auth mechanism.

jsonger avatar Feb 21 '25 00:02 jsonger

Will this be addresses or we just have to remove the widgets?

LarryT8959 avatar Feb 22 '25 16:02 LarryT8959

I'm having the same issue since updating Pihole to v6.x+

clockwinder avatar Feb 22 '25 23:02 clockwinder

I am also having the same issue since updating Pihole to v6.x+

jackald avatar Feb 24 '25 23:02 jackald

ive since went from dashy to homepage

back-lacking avatar Feb 24 '25 23:02 back-lacking

I have the same problem with new ver6 on PiHole widgets not working any more. New version is different and there is no API token at least I can not fined it .

Ito-69 avatar Feb 27 '25 17:02 Ito-69

I have the same problem with new ver6 on PiHole widgets not working any more. New version is different and there is no API token at least I can not fined it .

Token is there but it doesn't work.

LarryT8959 avatar Feb 27 '25 17:02 LarryT8959

Has this been addressed yet?

LarryT8959 avatar Mar 23 '25 20:03 LarryT8959

pihole v6 doesnt use any API key for access. It uses the password or app password. The overhaul of API in pihole v6 made apps made for v5 incompatible.

The widget for pihole in Dashy will need adjustments in order for it to work again.

SeimusS avatar Apr 12 '25 11:04 SeimusS

Is it still prevalent? Running into the same issues described here.

xxdr4gon avatar May 10 '25 14:05 xxdr4gon

Yes, looks like no one is addressing this issue. At least I'm not aware of.

LarryT8959 avatar May 11 '25 13:05 LarryT8959

Would be nice if the widgets could be updated. It looks like the app password would work, it's just fetching from the wrong place

WARNING API: Bad request (key: bad_request, hint: The API is hosted at pi.hole/api, not pi.hole/admin/api)

TheUriF avatar May 22 '25 02:05 TheUriF

⚠️ Update: I've ported the other widgets as well.
Full details are available in the discussion on the fork page.

Sadly, it won't work by just changing the endpoint, because the v6 API doesn't just accept the API key in the query like it used to.

Instead, you first have to do a POST request to authenticate (using what now is called as App Password), and then use the data in the response (X-FTL-SID, X-FTL-CSRF) to make subsequent GET requests (Reference).

I wrote a new version of the PiHoleStats widget that works (for me at least) with the v6 API. It needs some work as it's somewhat buggy, but I'm sharing it here in case someone wants to look into it and contribute.

EarlyOwl avatar May 22 '25 23:05 EarlyOwl

Has this work been published? I see that @EarlyOwl was able to make it work, but it doesn't seem like it was introduced in Dashy.

Shirkamdev avatar Jul 22 '25 06:07 Shirkamdev