Page 2 of 3
Blacklist button?!
Posted: Sat Feb 06, 2021 5:46 pm
by Joskep
Hi guys, an question:
I have blocked Youtube by adding a whole list of domains in the PiHole...
(For who wants to know
(youtube.com
www.youtube.com
m.youtube.com
ytimg.com
s.ytimg.com
ytimg.l.google.com
youtube.l.google.com
i.google.com
googlevideo.com
youtu.be)
What i was wondering...
Is it possible that there will be a 'button' in the menu of the PiHole-app where you can turn the blacklist ON / OFF ?
It would be nice if that will be, then i can use the Toon to simply turn on/off the blacklist.
Greetz
Joskep
Re: Toon app: PiHoleStats
Posted: Sat Feb 06, 2021 8:31 pm
by TerrorSource
Joskep wrote:Hi guys, an question:
I have blocked Youtube by adding a whole list of domains in the PiHole...
(For who wants to know
(youtube.com
http://www.youtube.com
m.youtube.com
ytimg.com
s.ytimg.com
ytimg.l.google.com
youtube.l.google.com
i.google.com
googlevideo.com
youtu.be)
What i was wondering...
Is it possible that there will be a 'button' in the menu of the PiHole-app where you can turn the blacklist ON / OFF ?
It would be nice if that will be, then i can use the Toon to simply turn on/off the blacklist.
Greetz
Joskep
I will take a look but I’m pretty sure that can only be done correctly via the webinterface of Pi-Hole self.
Re: Toon app: PiHoleStats
Posted: Sat Feb 06, 2021 8:42 pm
by Joskep
Thanks!
I can imagine that it only works with the standard commands, but it would be nice.
Greetz
Re: Toon app: PiHoleStats
Posted: Wed Mar 03, 2021 2:43 pm
by Tebogo
Thanks for this useful Toon-App! Nice to see when you walk by your thermostat you see the status of Pi-Hole
One thing, I try to switch off Pi-Hole-icon in systray, but although its switched off, it stays in systray, even after restart.
Can you solve that?
Thanks!
Re: Toon app: PiHoleStats
Posted: Thu Mar 04, 2021 7:00 pm
by Toonz
This is a bug in the app.
Can be fixed by changing row 8 in /qmf/qml/apps/piholestats/PiholestatsTray.qml to:
I will update the app in the ToonStore in the coming days.
Kind regards,
Toonz
Re: Toon app: PiHoleStats
Posted: Fri Mar 05, 2021 11:17 am
by Toonz
Hi ll,
version 0.1.7 is available in the ToonStore with the fix for the tray icon.
Kind regardz,
Toonz
Re: Toon app: PiHoleStats
Posted: Thu Sep 23, 2021 10:50 am
by Toonz
Hi all,
version 0.1.13 is available in the ToonStore.
Changelog:
- the tile has been redesigned to show a bit more user friendly message.
- the background color of the tile is orange if PiHole is disabled or red when PiHole is unreachable
in dim state you will see a corresponding status message in orange or red when PiHole is not active
Kind regardz,
Toonz
Re: Toon app: PiHoleStats
Posted: Mon Dec 26, 2022 1:41 pm
by EchoNL
Since update: Pi-hole v5.14.2 FTL v5.20 Web Interface v5.18, i'm getting only a message "undefined % " and everything else is blank.
Removed app, reinstalled, rebooted Toon 2, no luck.
Re: Toon app: PiHoleStats
Posted: Tue Dec 27, 2022 6:42 pm
by Toonz
I am not using Pi-Hole anymore myself.
The Toon Pi-Hole app is using this http call to retrieve the statistics: http://"+connectionPath+"/admin/api.php
What is the response if you retrieve this via your browser?
Re: Toon app: PiHoleStats
Posted: Tue Dec 27, 2022 10:29 pm
by EchoNL
http://192.xxx.xxx.xx/admin/api.php
Only works when i fill in this link above, then i getting all the info in my browser.
Re: Toon app: PiHoleStats
Posted: Wed Jan 11, 2023 2:26 pm
by flamingbob
Had the same problem with my toon.
Trick is the auth token and changing the URL in the qml to this:
xmlhttp.open("GET", "http://"+connectionPath+"/admin/api.php?summary&auth="+authtoken+"", true);
Then it all works perfecty.
Need to see how to detect an empty auth token though since pihole also works without a password and so without a token.
Re: Toon app: PiHoleStats
Posted: Sun Jan 15, 2023 11:38 am
by EchoNL
flamingbob wrote: ↑Wed Jan 11, 2023 2:26 pm
Had the same problem with my toon.
Trick is the auth token and changing the URL in the qml to this:
xmlhttp.open("GET", "http://"+connectionPath+"/admin/api.php?summary&auth="+authtoken+"", true);
Then it all works perfecty.
Need to see how to detect an empty auth token though since pihole also works without a password and so without a token.
Thank you very much!
Instead of using the password (which always worked in the past) i used the API token to login and changed the url in the qml file.
Re: Toon app: PiHoleStats
Posted: Sun Jan 15, 2023 11:35 pm
by flamingbob
Happy to help,
let me check the code also for the non auth way to push it back to github and more happy users.
Re: Toon app: PiHoleStats
Posted: Mon Jun 26, 2023 12:17 pm
by Bastelopa
Hello, Im still struggeling to get my pi-hole statistics running. I don't know how to change the url in the qml. Will there be an update for the pi-hole app in the toon to correct this?
Thanks in advance for your support.
Kind regards.
Re: Toon app: PiHoleStats
Posted: Fri Oct 20, 2023 12:14 pm
by EchoNL
Login Winscp
------------------------------------------------------------------------------------------
Change URL in folder:
qmf - qml- apps - piholestats-0.1.13 - PiholestatsApp.qml
to
xmlhttp.open("GET", "http://"+connectionPath+"/admin/api.php?summary&auth="+authtoken+"", true)
------------------------------------------------------------------------------------------
Open folder
mnt - data - tsc - piholestats.userSettings.json
Enter Auth code + pihole adres. The API token, you can find at your local Pihole adres:
Open Settings - API - Click show API Token
