Giter Site home page Giter Site logo

mnk400 / holeinfo Goto Github PK

View Code? Open in Web Editor NEW
84.0 4.0 9.0 5.84 MB

A script to print Pi-Hole information in your terminal without needing to SSH into your pi. Written using curses in python.

License: MIT License

Python 100.00%
python pi-hole raspberry-pi curses

holeinfo's People

Contributors

k0ral avatar mnk400 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

holeinfo's Issues

Keyboard Interrupt not quitting on windows.

Currently holeinfo catches an keyboard interrupt to quit the program while resetting curses and returning the terminal window to the previous state. This approach works well on macOS and linux without issues but windows doesn't seem to catch the keyboard interrupt. Only way to quit seems to be to close the current terminal session.

I am not sure if it's a python quirk or if I don't know something about how windows handles keyboard interrupts.

Ability to store API key without having to re-enter it every-time.

Currently while making use of extra data and capabilities provided by using the API key, the key has to be specified every time the holeinfo command is called:

holeinfo -api "API_KEY_HERE"

The proposed solution is to have the capability to store the key locally for more convenience, in the following manner

holeinfo --set-api-key "API_KEY_HERE"

so that the holeinfo command could always use the API key without requiring manual input.

Add check for API key when enabling or disabling

To enable or disable the pihole, you need to provide the API key. Currently there is no API key check while the code to enable or disable the pihole is ran, causing an exception if tried to enable/disable without providing the API key.

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.