go-pihole-stats

command module
v0.0.0-...-ecb923d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

README

go-pihole-stats

WIP

Get stats from your Pi-hole instance at the command-line.

To use, one must have a running Pi-hole instance on one's network. Export the following environment variables:

Note: the auth token is stored in the WEBPASSWORD variable in /etc/pihole/setupVars.conf on the Pi-hole machine.

export PIHOLE_URL="http://pi.hole/admin"
export PIHOLE_AUTH="auth token"

Install the program:

go get -v git.envs.net/hyperreal/go-pihole-stats

Ensure GOPATH is set and in PATH:

export GOPATH="${HOME}/go"
export PATH="${PATH}:${GOPATH}"

Run the command to get Pihole stats:

go-pihole-stats

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL