If you own a Raspberry Pi and use Pi-hole as a DNS server to block advertisements, a Flic button can be used to send an Internet GET request to your Pi-hole. For example, I use Flic to disable or enable blocking. I have tested and confirmed this functionality using the 1st Gen Flic Hub as well as the Flic Mac software.
Ok, so why have I done this? Instead of going to the web dashboard and doing tasks manually, I can do it with a simple click. I usually block most social media and ad trackers using Pi-hole but sometimes it is necessary to view sites like Facebook or Instagram. I saw this article where some guy hacked this functionality together but those of us with Flic can do this much more elegantly.
The first thing to do is get your API token from Pi-hole found under Settings. Then set up an Internet Request GET action in the Flic app and for the URL, enter something like the following:
http://YourPiHoleIPAddress/admin/api.php?YourCommand&auth=YourAPItokenHere
You could probably use any Pi-hole command but "enable" and "disable" are probably the most useful. In addition, you can also set the amount of time you want it to remain enabled or disabled.
Here is how to disable Pi-hole blocking for 5 minutes or 300 seconds:
http://YourPiHoleIPAddress/admin/api.php?disable=300&auth=YourAPItokenHere
Here is how to enable Pi-hole indefinitely:
http://YourPiHoleIPAddress/admin/api.php?enable&auth=YourAPItokenHere
I hope this little tutorial helps you get a bit more functionality from your Flic buttons.