Toon app: PiHoleStats

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Joskep
Member
Member
Posts: 141
Joined: Sat Mar 09, 2019 11:07 pm

Blacklist button?!

Post 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
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon app: PiHoleStats

Post 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.
Joskep
Member
Member
Posts: 141
Joined: Sat Mar 09, 2019 11:07 pm

Re: Toon app: PiHoleStats

Post by Joskep »

Thanks!
I can imagine that it only works with the standard commands, but it would be nice.

Greetz
Tebogo
Starting Member
Starting Member
Posts: 42
Joined: Wed Jan 20, 2021 10:12 am

Re: Toon app: PiHoleStats

Post by Tebogo »

Thanks for this useful Toon-App! Nice to see when you walk by your thermostat you see the status of Pi-Hole :P

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!
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PiHoleStats

Post by Toonz »

This is a bug in the app.

Can be fixed by changing row 8 in /qmf/qml/apps/piholestats/PiholestatsTray.qml to:

Code: Select all

	visible: app.showAppIcon
I will update the app in the ToonStore in the coming days.

Kind regards,

Toonz
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PiHoleStats

Post by Toonz »

Hi ll,

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
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PiHoleStats

Post 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
member of the Toon Software Collective
EchoNL
Starting Member
Starting Member
Posts: 24
Joined: Sun Jan 10, 2021 1:06 pm

Re: Toon app: PiHoleStats

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PiHoleStats

Post 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?
member of the Toon Software Collective
EchoNL
Starting Member
Starting Member
Posts: 24
Joined: Sun Jan 10, 2021 1:06 pm

Re: Toon app: PiHoleStats

Post 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.
flamingbob
Starting Member
Starting Member
Posts: 32
Joined: Wed Nov 23, 2016 4:11 pm

Re: Toon app: PiHoleStats

Post 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.
EchoNL
Starting Member
Starting Member
Posts: 24
Joined: Sun Jan 10, 2021 1:06 pm

Re: Toon app: PiHoleStats

Post 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.
flamingbob
Starting Member
Starting Member
Posts: 32
Joined: Wed Nov 23, 2016 4:11 pm

Re: Toon app: PiHoleStats

Post 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.
Bastelopa
Starting Member
Starting Member
Posts: 4
Joined: Wed Dec 08, 2021 12:17 pm

Re: Toon app: PiHoleStats

Post 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.
EchoNL
Starting Member
Starting Member
Posts: 24
Joined: Sun Jan 10, 2021 1:06 pm

Re: Toon app: PiHoleStats

Post 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

Image
Attachments
QML.JPG
QML.JPG (57.39 KiB) Viewed 2882 times
Post Reply

Return to “Toon Apps”