home-assistant-ecosystem / python-hole

Python API for interacting with a *hole instance.
MIT License
9 stars 14 forks source link

Ads blocked today does not give a graphable measurement of totals #22

Open TJPoorman opened 6 months ago

TJPoorman commented 6 months ago

With the way pi.hole is configured it will only pull a rolling 24 hours in 10 minute blocks. This makes graphing the numbers in HA inaccurate as you will see the graph inconsistencies every 10 minutes.

Adding a method and a property to get the data broken down in 10 minute blocks and retrieving the second to last will return a static value for that 10 minute block that can then be graphed correctly. The pi.hole method is overTimeData10mins.

I can submit a PR for this if you would like

image