mirror of
https://codeberg.org/hyperreal/go-pihole-stats
synced 2024-11-25 12:13:41 +01:00
20 lines
481 B
Markdown
20 lines
481 B
Markdown
# 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.
|
|
|
|
```bash
|
|
export PIHOLE_URL="http://pi.hole/admin"
|
|
export PIHOLE_AUTH="auth token"
|
|
```
|
|
|
|
Install the program:
|
|
```bash
|
|
go get -v github.com/hyperreal64/go-pihole-stats
|
|
```
|