Organizr icon indicating copy to clipboard operation
Organizr copied to clipboard

Pihole plugin v6 compatiblity

Open phyzical opened this issue 6 months ago • 24 comments

The new versions of pihole are no longer compatible with the widget,, they are enforcing the rest api, they use new auth system via sessions that must be expired ect.

If i get some time in the next few weeks ill take a stab

phyzical avatar Jun 05 '25 11:06 phyzical

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jun 21 '25 03:06 github-actions[bot]

Still active

GAS85 avatar Jul 16 '25 11:07 GAS85

yep pr is ready and working, just waiting a review

phyzical avatar Jul 18 '25 03:07 phyzical

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Aug 02 '25 03:08 github-actions[bot]

Not stale at all

GAS85 avatar Aug 19 '25 07:08 GAS85

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Sep 05 '25 03:09 github-actions[bot]

Not stale

GAS85 avatar Sep 05 '25 11:09 GAS85

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Sep 21 '25 03:09 github-actions[bot]

Nope

GAS85 avatar Sep 21 '25 08:09 GAS85

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Oct 08 '25 03:10 github-actions[bot]

Nope, please setup bot for a longer grace period.

GAS85 avatar Oct 08 '25 06:10 GAS85

@GAS85 PR was merged 3 weeks ago and should work with v6 now

HalianElf avatar Oct 08 '25 16:10 HalianElf

Cool! Do you know when will it be released?

GAS85 avatar Oct 09 '25 07:10 GAS85

It's out, just update

HalianElf avatar Oct 09 '25 19:10 HalianElf

Image Image

Usually I do update by docker pull, but seems it will not work this time.

GAS85 avatar Oct 12 '25 21:10 GAS85

has something changed with this? It won't display the stats for me and everything is the same as V5 was I never changed it when it broke. Test shows API Success.

SAS-1 avatar Oct 14 '25 16:10 SAS-1

Usually I do update by docker pull, but seems it will not work this time.

Just restart the container or run the update function from setting, it doesn't need a new container build to update Organizr itself.

has something changed with this? It won't display the stats for me and everything is the same as V5 was I never changed it when it broke. Test shows API Success.

You're still on v5 or you upgraded to v6? The PR didn't keep any backwards compatibility so that needs to be readded back and v5 is broken for the current moment.

HalianElf avatar Oct 14 '25 17:10 HalianElf

Sorry I am on V6 I meant that I never changed any of the setup in Organizr from what I had in V5.

SAS-1 avatar Oct 14 '25 18:10 SAS-1

i had a quick look now that its been merged,

Image Image

stats are coming in but something is causing the render to fail.

ill try to debug whats gone wrong later in the week

phyzical avatar Oct 15 '25 01:10 phyzical

For me it is connected, but no stats are returned at all.

{
    "response": {
        "result": "success",
        "message": null,
        "data": {
            "data": {
                "http://192.168.9.9:18080": {
                    "domains_being_blocked": []
                }
            },
            "options": {
                "combine": true,
                "title": true
            }
        }
    }
}

Just restart the container or run the update function from setting, it doesn't need a new container build to update Organizr itself.

Wow, never thought about it. And it seems not really documented :( How ever, seems I have latest 2.1.3180 now.

GAS85 avatar Oct 15 '25 12:10 GAS85

Alright looks like there was a merge conflict that was resolved incorrectly causing it to crash out. put a pr in to resolve

@GAS85 this wouldn't help with your case though it seems as your getting nothing back, my first suggestion is to try

http://192.168.9.9:18080/api/docs/#get-/stats/database/summary this is the endpoint thats used and make sure you get anything

just to rule out bad auth ect

@SAS-1 it should fix it for you though

phyzical avatar Oct 20 '25 09:10 phyzical

Actually yes - there is a data:

docker exec organizr curl "http://192.168.9.9:18080/api/stats/database/summary?from=1672580025&until=1760965352"  -H 'sid: blablabla' -s
{"sum_queries":5263741,"sum_blocked":594537,"percent_blocked":11.294951438903809,"total_clients":2228,"took":9.55165195465088}

Also I check the logs and organizr will call /api/stats/database/top_domains?from=1760879268&until=1760965668&blocked=true&count=1000 and get an 401 Error. Seems it does not work with API Key / Application password. I can only see 200 Status codes if I will provide my user password and disable 2FA, that is not really good.

Also the problem is that "Test connection" button always returns success even on imaginary domains.

Image

GAS85 avatar Oct 20 '25 13:10 GAS85

not sure about 2fa, i use a reverse proxy so the services talk to each other in a secure network,

as for the 401 if thats only during curl thats because you dont directly use the api key, but use the api key to generate a session token thats then used to talk to the api. the plugin should handle this part for you but if your testing youll need to hit the api first with the api token to get a sid then use that

~will look at the always returning success but~ addressed was missing a reraise to bubble the error up

phyzical avatar Oct 20 '25 14:10 phyzical

thanks as soon as it's merged I will test

SAS-1 avatar Oct 20 '25 15:10 SAS-1