Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T20:08:47.000Z (11 months ago)
- Last Synced: 2024-10-11T02:23:37.679Z (27 days ago)
- Topics: command-line, dashboard, go, pi-hole, statistics
- Language: Go
- Size: 413 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phstat ![Build Status](https://github.com/shuienko/phstat/actions/workflows/go.yml/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/shuienko/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