diff --git a/docs/widgets.md b/docs/widgets.md index 131f7075..dc789c25 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -57,6 +57,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a - [Network Traffic](#network-traffic) - [Resource Usage Alerts](#resource-usage-alerts) - [Public & Private IP](#ip-address) + - [CPU Temperature](#cpu-temp) - **[Dynamic Widgets](#dynamic-widgets)** - [Iframe Widget](#iframe-widget) - [HTML Embed Widget](#html-embedded-widget) @@ -1488,6 +1489,25 @@ Shows public and private IP address. Note that the ip plugin is not available on --- +### CPU Temp + +Displays temperature data from system CPUs. + +Note: This widget uses the [`sensors`](https://github.com/nicolargo/glances/blob/develop/glances/plugins/glances_sensors.py) plugin, which is disabled by default, and may cause [performance issues](https://github.com/nicolargo/glances/issues/1664#issuecomment-632063558). +You'll need to enable the sensors plugin to use this widget, using: `--enable-plugin sensors` when you start Glances. + +

+ +##### Example + +```yaml +- type: gl-cpu-temp + options: + hostname: http://192.168.130.2:61208 +``` + +--- + ## Dynamic Widgets ### Iframe Widget @@ -1786,4 +1806,4 @@ For testing purposes, you can use an addon, which will disable the CORS checks. ### Raising an Issue -If you need to submit a bug report for a failing widget, then please include the full console output (see [how](/docs/troubleshooting.md#how-to-open-browser-console)) as well as the relevant parts of your config file. Before sending the request, ensure you've read the docs. If you're new to GitHub, an haven't previously contributed to the project, then please fist star the repo to avoid your ticket being closed by the anti-spam bot. \ No newline at end of file +If you need to submit a bug report for a failing widget, then please include the full console output (see [how](/docs/troubleshooting.md#how-to-open-browser-console)) as well as the relevant parts of your config file. Before sending the request, ensure you've read the docs. If you're new to GitHub, an haven't previously contributed to the project, then please fist star the repo to avoid your ticket being closed by the anti-spam bot. diff --git a/src/components/Widgets/GlCpuTemp.vue b/src/components/Widgets/GlCpuTemp.vue new file mode 100644 index 00000000..af915080 --- /dev/null +++ b/src/components/Widgets/GlCpuTemp.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue index 07b246dd..ffd1d737 100644 --- a/src/components/Widgets/WidgetBase.vue +++ b/src/components/Widgets/WidgetBase.vue @@ -209,6 +209,13 @@ @error="handleError" :ref="widgetRef" /> + import('@/components/Widgets/GlNetworkInterfaces.vue'), GlNetworkTraffic: () => import('@/components/Widgets/GlNetworkTraffic.vue'), GlSystemLoad: () => import('@/components/Widgets/GlSystemLoad.vue'), + GlCpuTemp: () => import('@/components/Widgets/GlCpuTemp.vue'), HealthChecks: () => import('@/components/Widgets/HealthChecks.vue'), IframeWidget: () => import('@/components/Widgets/IframeWidget.vue'), Jokes: () => import('@/components/Widgets/Jokes.vue'),