diff --git a/docs/widgets.md b/docs/widgets.md index e3c67e20..cc9a1450 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -2380,12 +2380,19 @@ You'll need to enable the sensors plugin to use this widget, using: `--enable-pl
+#### Options + +**Field** | **Type** | **Required** | **Description** +--- | --- | --- | --- +**`units`** | `string` | _Optional_ | Use `C` to display temperatures in Celsius or `F` to use Fahrenheit. Defaults to `C`. + #### Example ```yaml - type: gl-cpu-temp options: hostname: http://192.168.130.2:61208 + units: C ``` --- diff --git a/src/components/Widgets/GlCpuTemp.vue b/src/components/Widgets/GlCpuTemp.vue index 37356d44..9fcc83ed 100644 --- a/src/components/Widgets/GlCpuTemp.vue +++ b/src/components/Widgets/GlCpuTemp.vue @@ -2,7 +2,7 @@{{ sensor.label | formatLbl }}
-{{ sensor.value | formatVal(sensor.sensorType) }}
+{{ sensor.value | formatVal(sensor.unit) }}