I'm looking to get the stats from my pihole instance via the API
I have a task using the http request action, but it seems to return nothing:
Task: Pihole Status
A1: HTTP Request [
Method: GET
URL: http://pi.hole/admin/api.php
Query Parameters: summaryRaw
Timeout (Seconds): 30
Structure Output (JSON, etc): On ]
I'd also like to use it to disable / enable pihole
Thanks
Expected Behaviour:
api call returns data in JSON, and enables / disabled
Actual Behaviour:
summary
and SummaryRaw
returns empty square brackets when including token http://pi.hole/admin/api.php?summary&auth=<mytoken>