From 8a0ec73ca75f6174762e97a95083304a3d3b9490 Mon Sep 17 00:00:00 2001 From: casmbu Date: Sat, 2 Aug 2025 17:13:39 -0400 Subject: [PATCH] feat: add pi-hole-traffic-v6 widget and docs --- docs/widgets.md | 34 +++++- src/components/Widgets/PiHoleTrafficV6.vue | 130 +++++++++++++++++++++ src/components/Widgets/WidgetBase.vue | 1 + 3 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 src/components/Widgets/PiHoleTrafficV6.vue diff --git a/docs/widgets.md b/docs/widgets.md index 50e71028..3b5bdbe5 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -1852,7 +1852,7 @@ Shows top queries that were blocked and allowed by [Pi-Hole](https://pi-hole.net ### Pi Hole Queries v6 -Shows top queries that were blocked and allowed by [Pi-Hole](https://pi-hole.net/). +Shows top queries that were blocked and allowed by [Pi-Hole](https://pi-hole.net/). Use this version of the widget if you have a v6+ Pi-Hole instance.

@@ -1915,6 +1915,38 @@ Shows number of recent traffic, using allowed and blocked queries from [Pi-Hole] --- +### Pi Hole Recent Traffic v6 + +Shows number of recent traffic, using allowed and blocked queries from [Pi-Hole](https://pi-hole.net/). Use this version of the widget if you have a v6+ Pi-Hole instance. + +

+ +#### Options + +**Field** | **Type** | **Required** | **Description** +--- | --- | --- | --- +**`hostname`** | `string` | Required | The URL to your Pi-Hole instance +**`apiKey`** | `string` | Required | Your Pi-Hole web password or application password. It **IS** your Pi-Hole admin interface password **UNLESS** you have 2FA turned on (in contrast to the old widget). If you have 2FA turned on you will need to create an application password. Refer to Pi-Hole documentation for how to create an application password. + +#### Example + +```yaml +- type: pi-hole-traffic-v6 + options: + hostname: https://pi-hole.local + apiKey: xxxxxxxxxxxxxxxxxxxxxxx +``` + +#### Info + +- **CORS**: 🟢 Enabled +- **Auth**: 🔴 Required +- **Price**: 🟢 Free +- **Host**: Self-Hosted (see [GitHub - Pi-hole](https://github.com/pi-hole/pi-hole)) +- **Privacy**: _See [Pi-Hole Privacy Guide](https://pi-hole.net/privacy/)_ + +--- + ### Stat Ping Statuses Displays the current and recent uptime of your running services, via a self-hosted instance of [StatPing](https://github.com/statping/statping) diff --git a/src/components/Widgets/PiHoleTrafficV6.vue b/src/components/Widgets/PiHoleTrafficV6.vue new file mode 100644 index 00000000..5a59eb04 --- /dev/null +++ b/src/components/Widgets/PiHoleTrafficV6.vue @@ -0,0 +1,130 @@ + + + diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue index 28c58393..a1efa1cd 100644 --- a/src/components/Widgets/WidgetBase.vue +++ b/src/components/Widgets/WidgetBase.vue @@ -107,6 +107,7 @@ const COMPAT = { 'pi-hole-top-queries': 'PiHoleTopQueries', 'pi-hole-top-queries-v6': 'PiHoleTopQueriesV6', 'pi-hole-traffic': 'PiHoleTraffic', + 'pi-hole-traffic-v6': 'PiHoleTrafficV6', 'proxmox-lists': 'Proxmox', 'public-holidays': 'PublicHolidays', 'public-ip': 'PublicIp',