From ce0bdac1bd2eb1809722abe62c205f95a049fd81 Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Wed, 23 Apr 2025 06:41:16 +1000 Subject: [PATCH] Remove reference to telnet and chronometer in README Replace with curl example and commandline example Signed-off-by: Rob Gill --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f320f8c5..622ff202 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,10 @@ Some of the statistics you can integrate include: - Queries cached - Unique clients -Access the API via [`telnet`](https://github.com/pi-hole/FTL), the Web (`admin/api.php`) and Command Line (`pihole -c -j`). You can find out [more details over here](https://discourse.pi-hole.net/t/pi-hole-api/1863). +Access the API using: +- your browser: http://pi.hole/api/docs +- `curl`: `curl --connect-timeout 2 -ks "https://pi.hole/api/stats/summary" -H "Accept: application/json"`; +- the command line - examples: `pihole api config/webserver/port` or `pihole api stats/summary`. ### The Command-Line Interface