From 1e64cf02cd19552d751f0175377c3479213b8da6 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:36:40 -0700 Subject: [PATCH 01/17] Add temp usage bar, fix disk percentage --- src/components/widgets/resources/cputemp.jsx | 3 +++ src/components/widgets/resources/disk.jsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/widgets/resources/cputemp.jsx b/src/components/widgets/resources/cputemp.jsx index d5cb6100..b113ede2 100644 --- a/src/components/widgets/resources/cputemp.jsx +++ b/src/components/widgets/resources/cputemp.jsx @@ -2,6 +2,7 @@ import useSWR from "swr"; import { FaThermometerHalf } from "react-icons/fa"; import { BiError } from "react-icons/bi"; import { useTranslation } from "next-i18next"; +import UsageBar from "./usage-bar"; export default function CpuTemp({ expanded, units }) { const { t } = useTranslation(); @@ -44,6 +45,7 @@ export default function CpuTemp({ expanded, units }) { const unit = units === "imperial" ? "fahrenheit" : "celsius"; const mainTemp = (unit === "celsius") ? data.cputemp.main : data.cputemp.main * 5/9 + 32; const maxTemp = (unit === "celsius") ? data.cputemp.max : data.cputemp.max * 5/9 + 32; + const percent = Math.round((mainTemp / maxTemp) * 100); return (
@@ -73,6 +75,7 @@ export default function CpuTemp({ expanded, units }) {
{t("resources.max")}
)} +
); diff --git a/src/components/widgets/resources/disk.jsx b/src/components/widgets/resources/disk.jsx index dbc41b1c..ca09c095 100644 --- a/src/components/widgets/resources/disk.jsx +++ b/src/components/widgets/resources/disk.jsx @@ -44,7 +44,8 @@ export default function Disk({ options, expanded }) { ); } - const percent = Math.round((data.drive.used / data.drive.size) * 100); + // data.drive.used not accurate? + const percent = Math.round(((data.drive.size - data.drive.available) / data.drive.size) * 100); return (
From a2aab6451ca55ac2ad408f558f99fc59125abfb7 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:40:24 -0700 Subject: [PATCH 02/17] lint --- src/components/widgets/resources/cputemp.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/widgets/resources/cputemp.jsx b/src/components/widgets/resources/cputemp.jsx index b113ede2..68e0d71d 100644 --- a/src/components/widgets/resources/cputemp.jsx +++ b/src/components/widgets/resources/cputemp.jsx @@ -2,6 +2,7 @@ import useSWR from "swr"; import { FaThermometerHalf } from "react-icons/fa"; import { BiError } from "react-icons/bi"; import { useTranslation } from "next-i18next"; + import UsageBar from "./usage-bar"; export default function CpuTemp({ expanded, units }) { From 9ff977b3394ebcbbba42c3ee8ee2bc347433d561 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:00:14 -0700 Subject: [PATCH 03/17] Update [...service].js --- src/pages/api/docker/status/[...service].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/docker/status/[...service].js b/src/pages/api/docker/status/[...service].js index 2bcc0a8a..bb03a637 100644 --- a/src/pages/api/docker/status/[...service].js +++ b/src/pages/api/docker/status/[...service].js @@ -30,7 +30,7 @@ export default async function handler(req, res) { }); } - const containerNames = containers.map((container) => container.Names[0].replace(/^\//, "")); + const containerNames = containers.map((container) => container.Names[0]?.replace(/^\//, "")); const containerExists = containerNames.includes(containerName); if (containerExists) { From 9303302ce70fe59217397ad79cc1efc6091806a6 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:05:08 -0700 Subject: [PATCH 04/17] Update [...service].js --- src/pages/api/docker/stats/[...service].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/docker/stats/[...service].js b/src/pages/api/docker/stats/[...service].js index 0ca30f00..0f58d075 100644 --- a/src/pages/api/docker/stats/[...service].js +++ b/src/pages/api/docker/stats/[...service].js @@ -30,7 +30,7 @@ export default async function handler(req, res) { }); } - const containerNames = containers.map((container) => container.Names[0].replace(/^\//, "")); + const containerNames = containers.map((container) => container.Names[0]?.replace(/^\//, "")); const containerExists = containerNames.includes(containerName); if (containerExists) { From 489132269e9508f9434e82f96265c2834f3168fe Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:06:19 -0700 Subject: [PATCH 05/17] Update [...service].js --- src/pages/api/docker/stats/[...service].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/docker/stats/[...service].js b/src/pages/api/docker/stats/[...service].js index 0f58d075..e27cd35c 100644 --- a/src/pages/api/docker/stats/[...service].js +++ b/src/pages/api/docker/stats/[...service].js @@ -75,7 +75,7 @@ export default async function handler(req, res) { } } - return res.status(200).send({ + return res.status(404).send({ error: "not found", }); } catch (e) { From a90f178ee0f80b3ce2f6145d8babf2773743c73c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:44:27 -0700 Subject: [PATCH 06/17] Better handle multi-core temp --- src/components/widgets/resources/cputemp.jsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/widgets/resources/cputemp.jsx b/src/components/widgets/resources/cputemp.jsx index 68e0d71d..22eecb06 100644 --- a/src/components/widgets/resources/cputemp.jsx +++ b/src/components/widgets/resources/cputemp.jsx @@ -5,6 +5,10 @@ import { useTranslation } from "next-i18next"; import UsageBar from "./usage-bar"; +function convertToFahrenheit(t) { + return t * 5/9 + 32 +} + export default function CpuTemp({ expanded, units }) { const { t } = useTranslation(); @@ -23,7 +27,7 @@ export default function CpuTemp({ expanded, units }) { ); } - if (!data) { + if (!data || !data.cputemp) { return (
@@ -43,10 +47,16 @@ export default function CpuTemp({ expanded, units }) { ); } + let minTemp = 0; + let mainTemp = data.cputemp.main; + if (data.cputemp.cores?.length) { + mainTemp = data.cputemp.cores.reduce((a, b) => a + b) / data.cputemp.cores.length; + minTemp = Math.min(...data.cputemp.cores); + } const unit = units === "imperial" ? "fahrenheit" : "celsius"; - const mainTemp = (unit === "celsius") ? data.cputemp.main : data.cputemp.main * 5/9 + 32; - const maxTemp = (unit === "celsius") ? data.cputemp.max : data.cputemp.max * 5/9 + 32; - const percent = Math.round((mainTemp / maxTemp) * 100); + mainTemp = (unit === "celsius") ? mainTemp : convertToFahrenheit(mainTemp); + const maxTemp = (unit === "celsius") ? data.cputemp.max : convertToFahrenheit(data.cputemp.max); + const percent = Math.round(((mainTemp - minTemp) / (maxTemp - minTemp)) * 100); return (
From 872237167d6fba64f572ad9b3f0214102d55b79f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 10:37:31 -0700 Subject: [PATCH 07/17] Uptime usage bar --- src/components/widgets/resources/uptime.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/widgets/resources/uptime.jsx b/src/components/widgets/resources/uptime.jsx index 2624bef1..3bf785b1 100644 --- a/src/components/widgets/resources/uptime.jsx +++ b/src/components/widgets/resources/uptime.jsx @@ -3,6 +3,8 @@ import { FaRegClock } from "react-icons/fa"; import { BiError } from "react-icons/bi"; import { useTranslation } from "next-i18next"; +import UsageBar from "./usage-bar"; + export default function Uptime() { const { t } = useTranslation(); @@ -45,6 +47,8 @@ export default function Uptime() { else if (d > 0) uptime = `${d}${t("resources.days")} ${h}${t("resources.hours")}`; else uptime = `${h}${t("resources.hours")} ${m}${t("resources.minutes")}`; + const percent = Math.round((new Date().getSeconds() / 60) * 100); + return (
@@ -55,6 +59,7 @@ export default function Uptime() {
{t("resources.uptime")}
+
); From 4cb5241e94629438d2ff2ae2737da12ee2d8b5ca Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 31 Mar 2023 10:37:41 -0700 Subject: [PATCH 08/17] glances temp usage bar --- src/components/widgets/glances/glances.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/widgets/glances/glances.jsx b/src/components/widgets/glances/glances.jsx index b0acdaa0..e34c4933 100644 --- a/src/components/widgets/glances/glances.jsx +++ b/src/components/widgets/glances/glances.jsx @@ -66,9 +66,12 @@ export default function Widget({ options }) { const unit = options.units === "imperial" ? "fahrenheit" : "celsius"; let mainTemp; + let maxTemp = 80; if (options.cputemp && data.sensors) { mainTemp = unit === "celsius" ? data.sensors.find(s => s.label.includes("cpu_thermal")).value : data.sensors.find(s => s.label.includes("cpu_thermal")).value * 5/9 + 32; + if (data.sensors.warning) maxTemp = data.sensors.warning; } + const tempPercent = Math.round((mainTemp / maxTemp) * 100); return (
@@ -122,6 +125,7 @@ export default function Widget({ options }) {
{t("glances.temp")}
+
)} {options.uptime && data.uptime && @@ -134,6 +138,7 @@ export default function Widget({ options }) {
{t("glances.uptime")}
+ )} From fe4389a88383f8cb12c0bcc65d57edda278b85fe Mon Sep 17 00:00:00 2001 From: gallegonovato Date: Thu, 30 Mar 2023 13:53:09 +0000 Subject: [PATCH 09/17] Translated using Weblate (Spanish) Currently translated at 100.0% (403 of 403 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/ --- public/locales/es/common.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/public/locales/es/common.json b/public/locales/es/common.json index a680a695..827b6cc4 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -18,13 +18,13 @@ "load": "Carga", "cpu": "CPU", "mem": "MEM", - "temp": "TEMP", - "max": "Max", - "uptime": "UP", - "months": "mo", - "days": "d", - "hours": "h", - "minutes": "m" + "temp": "TEMPORAL", + "max": "Máximo", + "uptime": "ARRIBA", + "months": "Meses", + "days": "Días", + "hours": "Horas", + "minutes": "Minutos" }, "docker": { "rx": "Recibido", @@ -234,10 +234,10 @@ "cpu": "Procesador", "mem": "Memoria", "wait": "Espere por favor", - "temp": "TEMP", - "uptime": "UP", - "days": "d", - "hours": "h" + "temp": "TEMPORAL", + "uptime": "ARRIBA", + "days": "Días", + "hours": "Horas" }, "changedetectionio": { "totalObserved": "Total Observados", From ef5b998d41e2d6bc8dc5c331dff844405c95336b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?yahoo=EF=BD=9E=EF=BD=9E?= Date: Fri, 31 Mar 2023 06:20:32 +0000 Subject: [PATCH 10/17] Translated using Weblate (Chinese (Simplified)) Currently translated at 98.7% (398 of 403 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/zh_Hans/ --- public/locales/zh-CN/common.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index 1d646d6d..6d65f709 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -18,13 +18,13 @@ "load": "负载", "cpu": "处理器", "mem": "内存", - "temp": "TEMP", - "max": "Max", - "uptime": "UP", - "months": "mo", - "days": "d", - "hours": "h", - "minutes": "m" + "temp": "温度", + "max": "最大", + "uptime": "运行时间", + "months": "月", + "days": "天", + "hours": "时", + "minutes": "分" }, "docker": { "rx": "接收", @@ -236,8 +236,8 @@ "wait": "请稍等", "temp": "TEMP", "uptime": "UP", - "days": "d", - "hours": "h" + "days": "天", + "hours": "时" }, "changedetectionio": { "totalObserved": "观察到的总数", From 74afa06d7cac1708bc829ca9f146ed642906e7e9 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 30 Mar 2023 08:43:39 +0000 Subject: [PATCH 11/17] Translated using Weblate (Ukrainian) Currently translated at 100.0% (403 of 403 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/uk/ --- public/locales/uk/common.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json index b3394925..0cdf4d7b 100644 --- a/public/locales/uk/common.json +++ b/public/locales/uk/common.json @@ -131,11 +131,11 @@ "mem": "Пам'ять", "temp": "TEMP", "max": "Max", - "uptime": "UP", - "months": "mo", - "days": "d", - "hours": "h", - "minutes": "m" + "uptime": "Відправка", + "months": "міс", + "days": "д", + "hours": "г", + "minutes": "хв" }, "unifi": { "users": "Користувачі", @@ -359,9 +359,9 @@ "mem": "Пам'ять", "wait": "Будь ласка, зачекайте", "temp": "TEMP", - "uptime": "UP", - "days": "d", - "hours": "h" + "uptime": "Відправка", + "days": "д", + "hours": "г" }, "quicklaunch": { "bookmark": "Закладка", From 2a56fd99928ef77908c958bc76d38662e0925c5a Mon Sep 17 00:00:00 2001 From: Alanimdeo Date: Sat, 1 Apr 2023 06:20:54 +0000 Subject: [PATCH 12/17] Translated using Weblate (Korean) Currently translated at 43.1% (174 of 403 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ko/ --- public/locales/ko/common.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/locales/ko/common.json b/public/locales/ko/common.json index 1293ce9c..ebafd10b 100644 --- a/public/locales/ko/common.json +++ b/public/locales/ko/common.json @@ -42,13 +42,13 @@ "free": "남음", "used": "사용", "load": "부하", - "temp": "TEMP", - "max": "Max", - "uptime": "UP", - "months": "mo", - "days": "d", - "hours": "h", - "minutes": "m" + "temp": "온도", + "max": "최대", + "uptime": "가동", + "months": "달", + "days": "일", + "hours": "시간", + "minutes": "분" }, "unifi": { "users": "사용자", From f55ba3b67a3187fe382337adf3a3b0ff8fd8a6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Osi=C5=84ski?= Date: Sat, 1 Apr 2023 01:10:00 +0200 Subject: [PATCH 13/17] Add option to specify volume in Diskstation widget --- src/utils/config/service-helpers.js | 6 +++++- src/widgets/diskstation/component.jsx | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 317c0f3c..2b106173 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -249,7 +249,8 @@ export function cleanServiceGroups(groups) { podSelector, wan, // opnsense widget, enableBlocks, // emby/jellyfin - enableNowPlaying + enableNowPlaying, + volume // diskstation widget } = cleanedService.widget; const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields; @@ -284,6 +285,9 @@ export function cleanServiceGroups(groups) { if (enableBlocks) cleanedService.widget.enableBlocks = enableBlocks === 'true'; if (enableNowPlaying) cleanedService.widget.enableNowPlaying = enableNowPlaying === 'true'; } + if (type === "diskstation") { + if (volume) cleanedService.widget.volume = volume; + } } return cleanedService; diff --git a/src/widgets/diskstation/component.jsx b/src/widgets/diskstation/component.jsx index 3195a62d..062b33f1 100644 --- a/src/widgets/diskstation/component.jsx +++ b/src/widgets/diskstation/component.jsx @@ -33,8 +33,16 @@ export default function Component({ service }) { const uptime = `${ t("common.number", { value: days }) } ${ t("diskstation.days") }`; // storage info - // TODO: figure out how to display info for more than one volume - const volume = storageData.data.vol_info?.[0]; + const volumeName = widget.volume; + + let volume; + + if (volumeName) { + volume = storageData.data.vol_info?.find(vol => vol.name === volumeName) + } else { + volume = storageData.data.vol_info?.[0]; + } + const usedBytes = parseFloat(volume?.used_size); const totalBytes = parseFloat(volume?.total_size); const freeBytes = totalBytes - usedBytes; From 616e8f2553256cb81af1b007f7765ab6f954dc58 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 3 Apr 2023 14:23:12 -0700 Subject: [PATCH 14/17] diskstation codestyle --- src/widgets/diskstation/component.jsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/widgets/diskstation/component.jsx b/src/widgets/diskstation/component.jsx index 062b33f1..afc41ae4 100644 --- a/src/widgets/diskstation/component.jsx +++ b/src/widgets/diskstation/component.jsx @@ -33,16 +33,7 @@ export default function Component({ service }) { const uptime = `${ t("common.number", { value: days }) } ${ t("diskstation.days") }`; // storage info - const volumeName = widget.volume; - - let volume; - - if (volumeName) { - volume = storageData.data.vol_info?.find(vol => vol.name === volumeName) - } else { - volume = storageData.data.vol_info?.[0]; - } - + const volume = widget.volume ? storageData.data.vol_info?.find(vol => vol.name === widget.volume) : storageData.data.vol_info?.[0]; const usedBytes = parseFloat(volume?.used_size); const totalBytes = parseFloat(volume?.total_size); const freeBytes = totalBytes - usedBytes; From f3ec238a2c2bdfdd3499482a87932b521502eeeb Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 3 Apr 2023 21:47:39 -0700 Subject: [PATCH 15/17] Fix glances cpu temp detection & fahrenheit conversion --- src/components/widgets/glances/glances.jsx | 25 ++++++++++++++++---- src/components/widgets/resources/cputemp.jsx | 2 +- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/components/widgets/glances/glances.jsx b/src/components/widgets/glances/glances.jsx index e34c4933..a6f4dfa8 100644 --- a/src/components/widgets/glances/glances.jsx +++ b/src/components/widgets/glances/glances.jsx @@ -6,6 +6,12 @@ import { useTranslation } from "next-i18next"; import UsageBar from "../resources/usage-bar"; +const cpuSensorLabels = ["cpu_thermal", "Core"]; + +function convertToFahrenheit(t) { + return t * 9/5 + 32 +} + export default function Widget({ options }) { const { t, i18n } = useTranslation(); @@ -65,11 +71,20 @@ export default function Widget({ options }) { } const unit = options.units === "imperial" ? "fahrenheit" : "celsius"; - let mainTemp; + let mainTemp = 0; let maxTemp = 80; - if (options.cputemp && data.sensors) { - mainTemp = unit === "celsius" ? data.sensors.find(s => s.label.includes("cpu_thermal")).value : data.sensors.find(s => s.label.includes("cpu_thermal")).value * 5/9 + 32; - if (data.sensors.warning) maxTemp = data.sensors.warning; + const cpuSensors = data.sensors?.filter(s => cpuSensorLabels.some(label => s.label.startsWith(label)) && s.type === "temperature_core"); + if (options.cputemp && cpuSensors) { + try { + mainTemp = cpuSensors.reduce((acc, s) => acc + s.value, 0) / cpuSensors.length; + maxTemp = Math.max(cpuSensors.reduce((acc, s) => acc + s.warning, 0) / cpuSensors.length, maxTemp); + if (unit === "fahrenheit") { + mainTemp = convertToFahrenheit(mainTemp); + maxTemp = convertToFahrenheit(maxTemp); + } + } catch (e) { + // cpu sensor retrieval failed + } } const tempPercent = Math.round((mainTemp / maxTemp) * 100); @@ -110,7 +125,7 @@ export default function Widget({ options }) { - {options.cputemp && mainTemp && + {options.cputemp && mainTemp > 0 && (
diff --git a/src/components/widgets/resources/cputemp.jsx b/src/components/widgets/resources/cputemp.jsx index 22eecb06..92c684e5 100644 --- a/src/components/widgets/resources/cputemp.jsx +++ b/src/components/widgets/resources/cputemp.jsx @@ -6,7 +6,7 @@ import { useTranslation } from "next-i18next"; import UsageBar from "./usage-bar"; function convertToFahrenheit(t) { - return t * 5/9 + 32 + return t * 9/5 + 32 } export default function CpuTemp({ expanded, units }) { From 2829f0b64943256157441b257d80906098371791 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 3 Apr 2023 23:22:28 -0700 Subject: [PATCH 16/17] Update memory.jsx --- src/components/widgets/resources/memory.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/resources/memory.jsx b/src/components/widgets/resources/memory.jsx index 2ee0a15e..30b7c8eb 100644 --- a/src/components/widgets/resources/memory.jsx +++ b/src/components/widgets/resources/memory.jsx @@ -44,7 +44,7 @@ export default function Memory({ expanded }) { ); } - const percent = Math.round((data.memory.used / data.memory.total) * 100); + const percent = Math.round((data.memory.active / data.memory.total) * 100); return (
@@ -52,7 +52,7 @@ export default function Memory({ expanded }) {
- {t("common.bytes", { value: data.memory.free, maximumFractionDigits: 1, binary: true })} + {t("common.bytes", { value: data.memory.available, maximumFractionDigits: 1, binary: true })}
{t("resources.free")}
From 48180604f934a3ea1e9fdca1e6cf2676a1d1cbb2 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 4 Apr 2023 00:55:05 -0700 Subject: [PATCH 17/17] Fix jellyfin / emby blocks boolean evaluation --- src/utils/config/service-helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 2b106173..f739f05f 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -282,8 +282,8 @@ export function cleanServiceGroups(groups) { if (wan) cleanedService.widget.wan = wan; } if (type === "emby" || type === "jellyfin") { - if (enableBlocks) cleanedService.widget.enableBlocks = enableBlocks === 'true'; - if (enableNowPlaying) cleanedService.widget.enableNowPlaying = enableNowPlaying === 'true'; + if (enableBlocks) cleanedService.widget.enableBlocks = enableBlocks; + if (enableNowPlaying) cleanedService.widget.enableNowPlaying = enableNowPlaying; } if (type === "diskstation") { if (volume) cleanedService.widget.volume = volume;