diff --git a/docs/widgets.md b/docs/widgets.md index 4b6e3e24..3f6f3e35 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -27,6 +27,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [CPU History](#cpu-history-netdata) - [Memory History](#memory-history-netdata) - [System Load History](#load-history-netdata) + - [Pi Hole Stats](#pi-hole-stats) - [Dynamic Widgets](#dynamic-widgets) - [Iframe Widget](#iframe-widget) - [HTML Embed Widget](#html-embedded-widget) @@ -622,6 +623,29 @@ Pull recent load usage in 1, 5 and 15 minute intervals, from NetData. --- +### Pi Hole Stats + +Displays the number of queries blocked by [Pi-Hole](https://pi-hole.net/). + +

+ +##### Options + +**Field** | **Type** | **Required** | **Description** +--- | --- | --- | --- +**`host`** | `string` | Required | The URL to your Pi-Hole instance +**`hideStatus`** / **`hideChart`** / **`hideInfo`** | `boolean` | _Optional_ | Optionally hide any of the three parts of the widget + +##### Example + +```yaml +- type: pi-hole-stats + options: + hostname: http://192.168.130.1 +``` + +--- + ## Dynamic Widgets ### Iframe Widget diff --git a/src/components/Widgets/PiHoleStats.vue b/src/components/Widgets/PiHoleStats.vue new file mode 100644 index 00000000..ae5721ae --- /dev/null +++ b/src/components/Widgets/PiHoleStats.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue index 07e5f2a7..fbb1a7aa 100644 --- a/src/components/Widgets/WidgetBase.vue +++ b/src/components/Widgets/WidgetBase.vue @@ -123,6 +123,13 @@ @error="handleError" :ref="widgetRef" /> +