Toon app: PiHoleStats

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Toon app: PiHoleStats

Postby TerrorSource » Mon Mar 23, 2020 10:19 pm

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


piholestats_screenshot_2.png
piholestats_screenshot_2.png (98.05 KiB) Viewed 815 times
TerrorSource
Member
Member
 
Posts: 396
Joined: May 2017

Re: Toon app: PiHoleStats

Postby yustmenl » Tue Apr 28, 2020 12:05 pm

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
yustmenl
Starting Member
Starting Member
 
Posts: 18
Joined: May 2011

Re: Toon app: PiHoleStats

Postby TerrorSource » Tue Apr 28, 2020 12:21 pm

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


Im not sure it i can retrieve that information from pihole.

Do you have the latest TSC-resourcefile? Icons should be in it. You can check that via Instellingen > TSC > Check for updates.
TerrorSource
Member
Member
 
Posts: 396
Joined: May 2017

Re: Toon app: PiHoleStats

Postby yustmenl » Sun May 03, 2020 9:23 pm

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?
yustmenl
Starting Member
Starting Member
 
Posts: 18
Joined: May 2011

Re: Toon app: PiHoleStats

Postby Joskep » Mon May 25, 2020 7:17 am

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
Joskep
Starting Member
Starting Member
 
Posts: 41
Joined: March 2019

Re: Toon app: PiHoleStats

Postby TerrorSource » Sat May 30, 2020 2:33 pm

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


I looked into it while i created the app.

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.
TerrorSource
Member
Member
 
Posts: 396
Joined: May 2017


Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest