https://github.com/shuienko/phstat
Get Pi-Hole metrics remotely using command line.
https://github.com/shuienko/phstat
command-line dashboard go pi-hole statistics
Last synced: 5 months ago
JSON representation
Get Pi-Hole metrics remotely using command line.
- Host: GitHub
- URL: https://github.com/shuienko/phstat
- Owner: shuienko
- License: mit
- Created: 2018-01-29T13:19:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T20:08:47.000Z (over 2 years ago)
- Last Synced: 2025-04-07T02:48:31.107Z (about 1 year ago)
- Topics: command-line, dashboard, go, pi-hole, statistics
- Language: Go
- Size: 413 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phstat  [](https://goreportcard.com/report/github.com/shuienko/phstat)
Get [Pi-Hole](https://github.com/pi-hole/pi-hole) metrics remotely using command line.
## download
Get binary from [Releases](https://github.com/shuienko/phstat/releases) and save it somewhere in your `$PATH`
## or build yourself
```bash
go build -o phstat
```
## set environment variables
* get `PIHOLE_TOKEN` here http://your-pi-hole-ip/admin/settings.php?tab=api or here `/etc/pihole/setupVars.conf`
* add it to your `.bashrc` or `.zshrc`:
```bash
export PIHOLE_HOST=your-pi-hole-ip
export PIHOLE_TOKEN=longtokenstring
```
## use
```
Pi-Hole Dashboard. Docs: https://github.com/shuienko/phstat/blob/master/README.md
Usage: phstat [-h] [-n seconds]
-h show this page
-n seconds
update interval in seconds (default 2)
```
## ui example