Toon app: PiHoleStats
Moderators: marcelr, TheHogNL, Toonz
Blacklist button?!
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
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
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon app: PiHoleStats
I will take a look but I’m pretty sure that can only be done correctly via the webinterface of Pi-Hole self.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
Re: Toon app: PiHoleStats
Thanks!
I can imagine that it only works with the standard commands, but it would be nice.
Greetz
I can imagine that it only works with the standard commands, but it would be nice.
Greetz
Re: Toon app: PiHoleStats
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!
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
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
Can be fixed by changing row 8 in /qmf/qml/apps/piholestats/PiholestatsTray.qml to:
Code: Select all
visible: app.showAppIcon
Kind regards,
Toonz
member of the Toon Software Collective
Re: Toon app: PiHoleStats
Hi ll,
version 0.1.7 is available in the ToonStore with the fix for the tray icon.
Kind regardz,
Toonz
version 0.1.7 is available in the ToonStore with the fix for the tray icon.
Kind regardz,
Toonz
member of the Toon Software Collective
Re: Toon app: PiHoleStats
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
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
member of the Toon Software Collective
Re: Toon app: PiHoleStats
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.
Removed app, reinstalled, rebooted Toon 2, no luck.
Re: Toon app: PiHoleStats
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?
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?
member of the Toon Software Collective
Re: Toon app: PiHoleStats
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.
Only works when i fill in this link above, then i getting all the info in my browser.
-
- Starting Member
- Posts: 32
- Joined: Wed Nov 23, 2016 4:11 pm
Re: Toon app: PiHoleStats
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.
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
Thank you very much!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.
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.
-
- Starting Member
- Posts: 32
- Joined: Wed Nov 23, 2016 4:11 pm
Re: Toon app: PiHoleStats
Happy to help,
let me check the code also for the non auth way to push it back to github and more happy users.
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
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.
Thanks in advance for your support.
Kind regards.
Re: Toon app: PiHoleStats
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
------------------------------------------------------------------------------------------
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
- Attachments
-
- QML.JPG (57.39 KiB) Viewed 3636 times