Controlling Pi-Hole with Physical Buttons

Controlling Pi-Hole with Physical Buttons

I recently set up Pi-Hole, the awesome network-wide ad blocker that runs on a Raspberry Pi.  But, I wanted an easy way to enable/disable it using physical buttons attached to the device itself.  No problem- thanks to a Pimoroni Button Shim and some Python scripting, I can now control my Pi-Hole with the press of a button!

Read on for full instructions and the script I used.

Continue reading “Controlling Pi-Hole with Physical Buttons”