matryer / matryer/xbar-plugins

Additions to the pi-hole plugin

Open
#1,040 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement python question
Dominant language
Shell
Stars
2.6k
Forks
1.1k
Avg merge
9d 15h
Merged PRs (30d)
1

Description

can the following be added to version 3.1?

print "Most Recent Blocked Domain: | color=navy" request = urllib2.Request(pihole + 'api.php?recentBlocked') response = urllib2.urlopen(request) html = response.read() print html + "|  color=black"
    print "---"
    print "Top 3 Active Clients: | color=navy"
    request = urllib2.Request(pihole + 'api.php?topClients=3&auth=' + passwd)
    response = urllib2.urlopen(request)
    html = response.read()
    print html + "|  color=black"
    print "---"
    print "Top 2 Domains & Ad's Requested: | color=navy"
    request = urllib2.Request(pihole + 'api.php?topItems=2&auth=' + passwd)
    response = urllib2.urlopen(request)
    html = response.read()
    print html + "|  color=black"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pi-hole plugin in the xbar-plugins repository and inspect how its current version 3.1 output is assembled. Add the supplied recent-blocked-domain, top-clients, and top-domains entries, then run the plugin to verify that all three sections render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.