It's a plugin for the Loupedeck Live Consoles that uses the official Pi-Hole API to enable and disable the blocking as well as display a lot of statistics on the device. Disabling your ad blocking is just a touch away now ;)
Works on Windows and MacOS
Note: I'm not affiliated with Pi-Hole, this plugin just uses the official API to control it from a Loupedeck.
You can find the precompiled plugin lplug4 file in the Releases. Download and open it, your computer should already recognize this as a Loupedeck plugin file and offer to open it with Loupedeck Configuration Console - which will have the plugin available in the list then.
-
The plugin defaults to http://pi.hole/admin/api.php with no API token. If you don't use authentication for your Pi-Hole you'll be fine.
-
If you use authentication, get an API key from the Pi-Hole Admin Console -> Settings -> API / Web interface -> Show API token and paste it in the ApiToken-Field of settings.json (see below)
Windows: %localappdata%\Loupedeck\PluginData\Pihole
MacOS: /Users/USERNAME/.local/share/Loupedeck/PluginData/Pihole
contains the file settings.json (which is created with default values during the first start of the plugin and read during every start to allow updating settings)
{
"ApiUrl": "http://pi.hole/admin/api.php",
"ApiToken": "[securely stored in plugin settings - replace with new token if neccessary]"
}
Loupedeck offers a secure way to store plugin settings, so the plugin reads the "ApiToken" during startup and removes the Token from the settings.json file after storing it.
If you need to change the token, simply replace the value of "ApiToken" with the actual token, restart Loupedeck and the plugin will update the token and remove it from the file.
You have the following options:
Which is basically everything the Pi-Hole API offers.
- Enables blocking (turns grey with a green layer below the text if blocking is disabled to visually advise the current blocking status and make it more obvious where to reenable the filtering).
- Disables blocking (turns grey of blocking is disabled to visually advise the current blocking status).
- Obviously these are just informative displays, there is no touch action behind those, Display actions are just to view current stats.
You can submit an issue or request a feature with GitHub issues. Please describe as good as possible what went wrong or doesn't act like you'd expect it to.
If you'd like to drop me a coffee for the hours I've spent on this: or use Ko-Fi
- If API Token is needed or not wasn't correctly verified during install
Changelog History
- Removed the need for Newtonsoft.Json and went with JSON functions that come with the SDK to avoid potential mismatch issues between the bundled and the NuGet Newtonsoft.Json version in the future (also cleaned up unused NuGet packages in the process)
- Logging
- process flow
Initial release