Giter Club home page Giter Club logo

python-hole's People

Contributors

bdraco avatar fabaff avatar fermulator avatar guykh avatar johnluetke avatar ludeeus avatar mib1185 avatar mrwacky42 avatar olen avatar wfriesen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-hole's Issues

HA Integration Pi-Hole Timeout at startup

Some users (myself included) are seeing the following error in the HA Log at startup:

Can not load data from *hole: xxxxxxxxxxxxx:80

Within the 'hole' package, the definition of 'async def get_data(self)' includes a hard-code timeout value of 5 seconds, which cannot be overridden from the pi_hole component in HA.

My preference would be to allow the HA pi_hole component to set/override this timeout value, especially since at startup, it may need to be adjusted due to increased resource demands or user hardware limitations.

It should be clarified that this issue doesn't appear to impact hole component usage, but rather just until the following data update (typically 5 min later), so very little impact is caused by this issue for most people.

Personally, I did run into an situation that caused this timeout to not allow a new pi_hole integration to be added to a running HA instance, when trying to add via the older yaml config entry method. Eventually, I had to install via the user interface's config entry method. But, no other reports of this situation have been reported, AFAIK.

I'm willing to work on the PR, if code owner gives thumbs up.

Idea: Make messages available

Is there a way to fetch the pi-hole messages and provide them for HA?

The api_db.php provides an endpoint to retrieve those messages:

grafik

I would really love to have these messages available within HA as they might include broken adlists, rate limit warnings, disk usage warnings etc.; all types of messages can be viewed here.

Integration without /admin

After digging through the source I noticed the the /admin is hard coded in the URL string.

I put my pi-hole behind Traefik with a piece of middleware so my /admin is removed from the URL. This way, I access the dashboard via https://dns1.mydomain/ and https://dns2.mydomain/. I tried integrating both pi-hole's into HA and stumbled upon this issue.

Before trying something (I know some python to make a PR but have no idea how to patch a module which somehow lives inside HA), I open this issue just to check if this will be an acceptable solution. A code example is put here:

c1dbfa1...juriansluiman:patch-1

How is verify_tls utilized?

I see that verify_tls is an argument to the constructor of a Hole object, but cannot determine where its value is utilized or honored.

Can you provide some clarification?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.