From b10a88b022db7af6a73f7aa546089894e1383a19 Mon Sep 17 00:00:00 2001 From: Alucarddelta Date: Sun, 10 Jul 2022 21:36:43 +1000 Subject: [PATCH] Sabnzbd Widget --- docs/widgets.md | 37 +++++ src/components/Widgets/Sabnzbd.vue | 212 ++++++++++++++++++++++++++ src/components/Widgets/WidgetBase.vue | 1 + 3 files changed, 250 insertions(+) create mode 100644 src/components/Widgets/Sabnzbd.vue diff --git a/docs/widgets.md b/docs/widgets.md index 8c55dca5..7075b76b 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -54,6 +54,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [Nextcloud System](#nextcloud-system) - [Nextcloud Stats](#nextcloud-stats) - [Nextcloud PHP Opcache](#nextcloud-php-opcache-stats) + - [Sabnzbd](#sabnzbd) - **[System Resource Monitoring](#system-resource-monitoring)** - [CPU Usage Current](#current-cpu-usage) - [CPU Usage Per Core](#cpu-usage-per-core) @@ -1790,6 +1791,42 @@ Shows statistics about PHP Opcache perforamnce on your Nextcloud server. --- +### Sabnzbd + +Shows queue information regarding your self hosted Sabnzbd server. + +

Sabnzbd

+ +##### Options + +**Field** | **Type** | **Required** | **Description** +--- | --- | --- | --- +**`sabnzbdUrl`** | `string` | Required | The URL of the Sabnzbd server. No trailing `/`. +**`apiKey`** | `string` | Required | API key for Sabnzbd access. Located under `Config` -> `General` -> `Security` -> `API Key`. +**`hideDetails`** | `boolean` | _Optional_ | Hides extra server queue details. +**`hideQueue`** | `boolean` | _Optional_ | Hides the queue list in an expandable dropdown. + + +##### Example + +```yaml + - type: sabnzbd + options: + sabnzbdUrl: 'https://sabnzbd.example.com' + apiKey: XXXXXXXXXXXXXXXXXX + hideDetails: false + hideQueue: false +``` + +##### Info +- **CORS**: 🟠 Proxied +- **Auth**: 🟢 Required +- **Price**: 🟢 Free +- **Host**: Self-Hosted (see [Sabnzbd](https://sabnzbd.org/)) +- **Privacy**: _See [Sabnzbd Privacy Policy](https://forums.sabnzbd.org/ucp.php?mode=privacy)_ + +--- + ## System Resource Monitoring The easiest method for displaying system info and resource usage in Dashy is with [Glances](https://nicolargo.github.io/glances/). diff --git a/src/components/Widgets/Sabnzbd.vue b/src/components/Widgets/Sabnzbd.vue new file mode 100644 index 00000000..07968722 --- /dev/null +++ b/src/components/Widgets/Sabnzbd.vue @@ -0,0 +1,212 @@ + + + + + diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue index 552f13ff..567a4120 100644 --- a/src/components/Widgets/WidgetBase.vue +++ b/src/components/Widgets/WidgetBase.vue @@ -97,6 +97,7 @@ const COMPAT = { 'public-holidays': 'PublicHolidays', 'public-ip': 'PublicIp', 'rss-feed': 'RssFeed', + sabnzbd: 'Sabnzbd', 'sports-scores': 'SportsScores', 'stat-ping': 'StatPing', 'stock-price-chart': 'StockPriceChart',