From f7a0fb24a9bc6a2d42745d29e97c711d477caf4b Mon Sep 17 00:00:00 2001 From: wozboz Date: Thu, 10 Aug 2023 15:43:05 +0200 Subject: [PATCH 1/3] :sparkles: Added basic RescueTime widget to see time spent on activities --- docs/widgets.md | 33 ++++++++ src/components/Widgets/RescueTime.vue | 111 ++++++++++++++++++++++++++ src/components/Widgets/WidgetBase.vue | 1 + src/utils/defaults.js | 1 + 4 files changed, 146 insertions(+) create mode 100644 src/components/Widgets/RescueTime.vue diff --git a/docs/widgets.md b/docs/widgets.md index ec80a466..ba064d01 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -39,6 +39,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [Mvg Departure](#mvg-departure) - [Mvg Connection](#mvg-connection) - [Custom search](#custom-search) + - [Rescuetime overview] (#rescuetime-overview) - **[Self-Hosted Services Widgets](#self-hosted-services-widgets)** - [System Info](#system-info) - [Cron Monitoring](#cron-monitoring-health-checks) @@ -1339,6 +1340,38 @@ This widget allows searching multiple search engines from dashy. --- +### RescueTime Overview + +Show an overview of how you have spent your time for the current day. + +

+ +#### Options + +**Field** | **Type** | **Required** | **Description** +--- | --- | --- | --- +**`apiKey`** | `string` | required | The API-Key generated in the RescueTime UI. + + +#### Example + +```yaml + - type: rescue-time + useProxy: true + options: + apiKey: abcdefghijkl_mnop +``` +#### Info + +- **CORS**: 🟢 Required +- **Auth**: 🔴 Required +- **Price**: 🟠 Depends on user subscription +- **Host**: [RescueTime](https://www.rescuetime.com) +- **Privacy**: _See [RescueTime Privacy](https://www.rescuetime.com/privacy)_ + +--- + + ## Self-Hosted Services Widgets diff --git a/src/components/Widgets/RescueTime.vue b/src/components/Widgets/RescueTime.vue new file mode 100644 index 00000000..952508b4 --- /dev/null +++ b/src/components/Widgets/RescueTime.vue @@ -0,0 +1,111 @@ + + + + diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue index ac9a0b60..dc536303 100644 --- a/src/components/Widgets/WidgetBase.vue +++ b/src/components/Widgets/WidgetBase.vue @@ -104,6 +104,7 @@ const COMPAT = { 'proxmox-lists': 'Proxmox', 'public-holidays': 'PublicHolidays', 'public-ip': 'PublicIp', + 'rescue-time': 'RescueTime', 'rss-feed': 'RssFeed', sabnzbd: 'Sabnzbd', 'sports-scores': 'SportsScores', diff --git a/src/utils/defaults.js b/src/utils/defaults.js index 69e0ff3e..3f0675d7 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -238,6 +238,7 @@ module.exports = { publicIp2: 'https://api.ipgeolocation.io/ipgeo', publicIp3: 'http://ip-api.com/json', readMeStats: 'https://github-readme-stats.vercel.app/api', + rescueTime: 'https://www.rescuetime.com/anapi/data', rssToJson: 'https://api.rss2json.com/v1/api.json', sportsScores: 'https://www.thesportsdb.com/api/v1/json', stockPriceChart: 'https://www.alphavantage.co/query', From 39ab92deaa95805989b1568d553258f8b7efaf06 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 13 Aug 2023 14:17:43 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9D=20Removes=20space=20between=20?= =?UTF-8?q?RescueTime=20title=20and=20link=20(#1278)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/widgets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/widgets.md b/docs/widgets.md index ba064d01..9ed2b562 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -39,7 +39,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [Mvg Departure](#mvg-departure) - [Mvg Connection](#mvg-connection) - [Custom search](#custom-search) - - [Rescuetime overview] (#rescuetime-overview) + - [Rescuetime overview](#rescuetime-overview) - **[Self-Hosted Services Widgets](#self-hosted-services-widgets)** - [System Info](#system-info) - [Cron Monitoring](#cron-monitoring-health-checks) From c45e05866d128fe472bf05fb5249788a58b6aa34 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 13 Aug 2023 14:18:49 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A5=20Removed=20commented=20out=20?= =?UTF-8?q?lines=20for=20ResueTime=20widget=20(#1278)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Widgets/RescueTime.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/Widgets/RescueTime.vue b/src/components/Widgets/RescueTime.vue index 952508b4..6144bc76 100644 --- a/src/components/Widgets/RescueTime.vue +++ b/src/components/Widgets/RescueTime.vue @@ -18,7 +18,6 @@