Is there any custom code or anything out there yet that anyone's aware of (before I make one?) prays that he doesn't have to take time out to make one :p
Not that I'm aware of.
someone point me in the api direction.
someone point me in the api direction.
https://www.reddit.com/r/pihole/comments/dpst6o/api_dox/ =)
Here's an example of the returned info by simply doing a curl http://pi.hole/admin/api.php?
Lots of nice info to be gleaned for a widget.
{
"domains_being_blocked":993307,
"dns_queries_today":98576,
"ads_blocked_today":55507,
"ads_percentage_today":56.308838,
"unique_domains":6250,
"queries_forwarded":33439,
"queries_cached":9620,
"clients_ever_seen":2,
"unique_clients":2,
"dns_queries_all_types":98576,
"reply_NODATA":377,
"reply_NXDOMAIN":340,
"reply_CNAME":584,
"reply_IP":4465,
"privacy_level":0,
"status":"enabled",
"gravity_last_updated":{
"file_exists":true,
"absolute":1573246037,
"relative":{
"days":"0",
"hours":"01",
"minutes":"06"
}
}
}
Most helpful comment
someone point me in the api direction.