Toon app: PiHoleStats
Moderators: marcelr, TheHogNL, Toonz
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Toon app: PiHoleStats
Long time ago i made an app (DomoticzBoard) which Toonz has improved over the time.
Last couple of weeks i brainstormed over new ideas for apps while i was redesigning my homenetwork and i came up with the idea for a PiHole app.
It's just a simple app which queries the PiHole server and shows the stats of PiHole on the Toon.
App has a tile which shows the total ads blocked on that day and the amount of ads blocked in %.
Click on the Tile or the Sys Tray icon shows more information queried from PiHole.
- status
- domains_being_blocked
- dns_queries_today
- ads_blocked_today
- ads_percentage_today
- queries_forwarded
- queries_cached
- clients_ever_seen
- unique_clients
- gravity_last_updated
To Do (if possible):
- Enable/Disable PiHole
- Pause for x minutes
- Color text in Tile when PiHole is disabled
- Data shown in a nicer way (not just text)
Github repo: https://github.com/TerrorSource/PiHoleStats
Last couple of weeks i brainstormed over new ideas for apps while i was redesigning my homenetwork and i came up with the idea for a PiHole app.
It's just a simple app which queries the PiHole server and shows the stats of PiHole on the Toon.
App has a tile which shows the total ads blocked on that day and the amount of ads blocked in %.
Click on the Tile or the Sys Tray icon shows more information queried from PiHole.
- status
- domains_being_blocked
- dns_queries_today
- ads_blocked_today
- ads_percentage_today
- queries_forwarded
- queries_cached
- clients_ever_seen
- unique_clients
- gravity_last_updated
To Do (if possible):
- Enable/Disable PiHole
- Pause for x minutes
- Color text in Tile when PiHole is disabled
- Data shown in a nicer way (not just text)
Github repo: https://github.com/TerrorSource/PiHoleStats
Re: Toon app: PiHoleStats
Nice App, thanks!!
I installed and realized i had to update
maybe also a nice idea for a update, have a massage on toon when there is an update available for pi-hole!
and maybe an option to update the lists from toon when possible offcource.
Oh and on my toon the icon isn't showing but just a white block. not a big problem but nevertheless ithought i would mention it
I installed and realized i had to update
maybe also a nice idea for a update, have a massage on toon when there is an update available for pi-hole!
and maybe an option to update the lists from toon when possible offcource.
Oh and on my toon the icon isn't showing but just a white block. not a big problem but nevertheless ithought i would mention it
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon app: PiHoleStats
Im not sure it i can retrieve that information from pihole.yustmenl wrote:Nice App, thanks!!
I installed and realized i had to update
maybe also a nice idea for a update, have a massage on toon when there is an update available for pi-hole!
and maybe an option to update the lists from toon when possible offcource.
Oh and on my toon the icon isn't showing but just a white block. not a big problem but nevertheless ithought i would mention it
Do you have the latest TSC-resourcefile? Icons should be in it. You can check that via Instellingen > TSC > Check for updates.
Re: Toon app: PiHoleStats
Gues that is the problem, wil update it tomorrow
Edit: i updated it and the Icon is visable now.
P.S. i noticed that the stats are updated automaticly, can you create an auto refresh?
Edit: i updated it and the Icon is visable now.
P.S. i noticed that the stats are updated automaticly, can you create an auto refresh?
Re: Toon app: PiHoleStats
Goodmorning, i would like to use this nice app together with my Pihole.
Is see you where planning to add the feature ON/OFF, do you think this is gonna happen?
It would be nice to enable/disable the pihole via the Toon, people who are using pihole can imagine that you would like to disable it for a few minutes (like you can on the webinterface).
Would be nice!
Greetz
Is see you where planning to add the feature ON/OFF, do you think this is gonna happen?
It would be nice to enable/disable the pihole via the Toon, people who are using pihole can imagine that you would like to disable it for a few minutes (like you can on the webinterface).
Would be nice!
Greetz
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon app: PiHoleStats
I looked into it while i created the app.Joskep wrote:Goodmorning, i would like to use this nice app together with my Pihole.
Is see you where planning to add the feature ON/OFF, do you think this is gonna happen?
It would be nice to enable/disable the pihole via the Toon, people who are using pihole can imagine that you would like to disable it for a few minutes (like you can on the webinterface).
Would be nice!
Greetz
Authorization and a token is needed to enable/disable or pause PiHole for x seconds.
https://discourse.pi-hole.net/t/pi-hole-api/1863
Not sure if it can be done without token in PiHole 4 or PiHole 5.
Re: Toon app: PiHoleStats
Okay. But isn.t it an idea to create that option and let the users by themselfes adjust the password-settings in "/etc/pihole/setupVars.conf) via SSH?
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon app: PiHoleStats
Working on a new version with pre-programmed pause buttons (meaning that you cannot set the timers yourself)Joskep wrote:Okay. But isn.t it an idea to create that option and let the users by themselfes adjust the password-settings in "/etc/pihole/setupVars.conf) via SSH?
Still in a doubt to put a button on the Tile, i prefer not as there's not much space left on the Tile.
Preview:
- Attachments
-
- Pihole_preview.png (171.65 KiB) Viewed 12989 times
Re: Toon app: PiHoleStats
WOW!!!!!
Thats an very good feauture!!
Everybody who uses Pihole knows that sometimes url.s are blocked when you only want to visit them for 1 time. This would be nice!
Thats an very good feauture!!
Everybody who uses Pihole knows that sometimes url.s are blocked when you only want to visit them for 1 time. This would be nice!
Re: Toon app: PiHoleStats
I just installed the app and i see the button, unfortanatly they don.t work (yet).
It still keeps saying "enabled" and when i go to an ad test page it says i am still ad blocking.
Or am i to quik and you are stil busy
?
It still keeps saying "enabled" and when i go to an ad test page it says i am still ad blocking.
Or am i to quik and you are stil busy

-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon app: PiHoleStats
Did you fill in the Token in the settings screen?Joskep wrote:I just installed the app and i see the button, unfortanatly they don.t work (yet).
It still keeps saying "enabled" and when i go to an ad test page it says i am still ad blocking.
Or am i to quik and you are stil busy?
It should refresh the screen after clicking a button, if not, give it a few seconds.
Re: Toon app: PiHoleStats
I filled in my password, like i do when i login normally. Is that correct?
When i login via cellphone and choose 'disable' the i see the apo on the Toon changes "enabled" into "disabled"
When i login via cellphone and choose 'disable' the i see the apo on the Toon changes "enabled" into "disabled"
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon app: PiHoleStats
Web password is not the Token.
You need to extract the token from /etc/pihole/setupVars.conf file
You need to extract the token from /etc/pihole/setupVars.conf file
Re: Toon app: PiHoleStats
Sorry sorry sorry !
I didnt do...one moment
I didnt do...one moment
Re: Toon app: PiHoleStats
Is it the 64 character after "WEBPASSWORD=" ?
I did in (manually ;-( but the same result.or do you mean another token?
EDIT: WORKS!!!!!
I forgot one character.
Thanks!!!!
I did in (manually ;-( but the same result.or do you mean another token?
EDIT: WORKS!!!!!
I forgot one character.
Thanks!!!!