Get time remaining when using API to disable Pi-hole

Hi there,

Simple question but is there any way to get the time remaining when using the API to disable for say, 10 minutes? I know that it shows up in the admin interface, but I’m trying to see if I can get that value for a custom network dashboard I’m creating.


That countdown is managed client-side. There is no interface for getting that data. If your dashboard is the one to make the disable request, it can remember when it told Pi-hole to re-enable and show a countdown (this is what the web interface does).

Thanks for the quick response. Was just hoping to make it easier but I figured this would be the solution :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.