Get time remaining when using API to disable Pi-hole

#1

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.

Thanks!

0 Likes

#2

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).

0 Likes

#3

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

0 Likes