]> _ Git - tortuga-home.git/commitdiff
.
authorvincent <vincent@enhydra.fr>
Sun, 23 Jan 2022 13:41:30 +0000 (14:41 +0100)
committervincent <vincent@enhydra.fr>
Sun, 23 Jan 2022 13:41:30 +0000 (14:41 +0100)
.idea/workspace.xml
scripts/cron/cron.php
scripts/lib/switchbot.php

index 132c2a8511cd38e7c258cce1aa7b0f2fd91ccdcc..e107af35cabe6de6b3bb97b119d9cfac36b57d1a 100644 (file)
@@ -3,7 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/hotwater.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/hotwater.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/lib/switchbot.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/switchbot.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
       <workItem from="1642761590471" duration="1992000" />
       <workItem from="1642848701157" duration="3435000" />
       <workItem from="1642856038290" duration="9359000" />
-      <workItem from="1642939498777" duration="626000" />
-    </task>
-    <task id="LOCAL-00463" summary=".">
-      <created>1618054953034</created>
-      <option name="number" value="00463" />
-      <option name="presentableId" value="LOCAL-00463" />
-      <option name="project" value="LOCAL" />
-      <updated>1618054953035</updated>
+      <workItem from="1642939498777" duration="1839000" />
     </task>
     <task id="LOCAL-00464" summary=".">
       <created>1618321419071</created>
       <option name="project" value="LOCAL" />
       <updated>1642877041649</updated>
     </task>
-    <option name="localTasksCounter" value="512" />
+    <task id="LOCAL-00512" summary=".">
+      <created>1642941601860</created>
+      <option name="number" value="00512" />
+      <option name="presentableId" value="LOCAL-00512" />
+      <option name="project" value="LOCAL" />
+      <updated>1642941601860</updated>
+    </task>
+    <option name="localTasksCounter" value="513" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index 55620f66a0329538d37f80a766a1632b70e1a394..aef371bbb133d0e69869372ae4b19b160d72c307 100644 (file)
@@ -56,6 +56,7 @@ function cronOneLoop($cronmin)
 
 function cronHotWater($cronmin)
 {
+    _logSection('Hot water');
     hotwaterCheckMode();
 }
 
index dfe0001d1c5e2b39aff8567e9657e1f65bc6b22e..c25c3493de074be3f71d8036b40fa704d680fd87 100644 (file)
@@ -38,7 +38,7 @@ function hotwaterCheckMode()
             $hot = '0';
         } else if ($ecomode == '1') {
             $h = date('G');
-            $hot = ($h > 6 && $h < 10) ? '1' : '0';
+            $hot = ($h >= 6 && $h <= 9) ? '1' : '0';
         }
     }
     hotwater($hot);