From: Vincent Vanwaelscappel Date: Thu, 20 Oct 2022 06:52:26 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a7f48f77098adb8a5a850fe3c3b36e3f34cdeae2;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 45fbe6e..8efa664 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,6 +3,8 @@ + + diff --git a/scripts/lib/ical.php b/scripts/lib/ical.php index fda2c00..aa02e9b 100644 --- a/scripts/lib/ical.php +++ b/scripts/lib/ical.php @@ -47,7 +47,6 @@ function searchIcalEvent($cal, $start = null, $end = null) } $event['data'] = $data; $res[] = $event; - } return $res; } @@ -62,8 +61,8 @@ function searchICalEventDay($cal, $day = null) $start = $day; $end = clone $day; - $start->setTime(0, 0, 0); - $end->setTime(23, 59, 59); + $start->setTime(6, 0, 0); + $end->setTime(18, 0, 0); return searchIcalEvent($cal, $start, $end); } diff --git a/scripts/lib/switchbot.php b/scripts/lib/switchbot.php index dd688d8..16ad573 100644 --- a/scripts/lib/switchbot.php +++ b/scripts/lib/switchbot.php @@ -31,7 +31,6 @@ function hotwaterCheckMode() $isWeek = $d < 6; $maxLevel = isJerome() ? "2" : '1'; - $ecomode = (int)getState('ecomode', '0'); if (!isVincent()) {