Tools to Work with the Pi-Hole API
Named after a primary synonym for ‘pihole’, tools are provided to access the Pi-Hole API.
The following functions are implemented:
pi_fwd_dest
: Get forward destinations (i.e. upstream DNS)pi_host
: Get or set PIHOLE_HOST valuepi_key
: Get PIHOLE_API_KEY valuepi_over_time_10m
: Get recent 10 min time series countspi_queries
: Get query types distributionpi_query_types
: Get query types distributionpi_recent
: Get recent blockedpi_summary
: Get summary statspi_test
: Test connectivity to/get info about a Pi-Holepi_top_clients
: Get top clientspi_top_items
: Get top itemsinstall.packages("countenance", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/")) # or remotes::install_git("https://git.rud.is/hrbrmstr/countenance.git") # or remotes::install_git("https://git.sr.ht/~hrbrmstr/countenance") # or remotes::install_gitlab("hrbrmstr/countenance") # or remotes::install_bitbucket("hrbrmstr/countenance") # or remotes::install_github("hrbrmstr/countenance")
NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.
library(countenance) # current version packageVersion("countenance") ## [1] '0.1.0'