diff --git a/docs/widgets.md b/docs/widgets.md index ec80a466..9ed2b562 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..6144bc76 --- /dev/null +++ b/src/components/Widgets/RescueTime.vue @@ -0,0 +1,109 @@ + +Rank
+Category
+Time spent
+{{ category.rank }}
+{{ indx }}
+{{ category.minutes }} min
+