From 07cfc8d0035b3bf3a1b7e32b87e4111d5754ea71 Mon Sep 17 00:00:00 2001 From: CoreNion Date: Tue, 19 Dec 2023 14:00:32 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=83=86=E3=83=BC=E3=82=BF=E3=82=B9?= =?UTF-8?q?=E3=81=AE=E6=9B=B4=E6=96=B0=E9=A0=BB=E5=BA=A6=E3=82=92=E8=AA=BF?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/status.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/status.vue b/components/status.vue index 40d8508..eb405cc 100644 --- a/components/status.vue +++ b/components/status.vue @@ -122,13 +122,13 @@ async function refleshStatus() { // クライアントサイドのみで実行 onMounted(async () => { - // 2秒ごとに温度を更新 (1秒だとシリアル通信が追いつかない? + // 10秒ごとに温度を更新 (1秒だとシリアル通信が追いつかない? await refleshStatus(); - sensorInterval = useIntervalFn(refleshStatus, 2000); + sensorInterval = useIntervalFn(refleshStatus, 10000); // 10分ごとに天気を更新 await refleshWeather(); - useIntervalFn(refleshWeather, 10000); + useIntervalFn(refleshWeather, 600000); });