dashy
dashy copied to clipboard
[BUG] Issues with Pihole widgets not working
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
- [x] You have explained the issue clearly, and included all relevant info
- [x] You are using a supported version of Dashy
- [x] You've checked that this issue hasn't already been raised
- [x] You've checked the docs and troubleshooting guide
- [x] You agree to the code of conduct
They did a massive overhaul of how the API is called with v6. New endpoint locations and a new auth mechanism.
Will this be addresses or we just have to remove the widgets?
I'm having the same issue since updating Pihole to v6.x+
I am also having the same issue since updating Pihole to v6.x+
ive since went from dashy to homepage
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 .
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.
Has this been addressed yet?
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.
Is it still prevalent? Running into the same issues described here.
Yes, looks like no one is addressing this issue. At least I'm not aware of.
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)
⚠️ 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.
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.