]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Wed, 4 Sep 2019 08:06:37 +0000 (10:06 +0200)
committerVincent <vincent@enhydra.fr>
Wed, 4 Sep 2019 08:06:37 +0000 (10:06 +0200)
.idea/workspace.xml
scripts/lib/insteon.php

index 186da783b5fa5c7b5a9a2a06111bccd0c62b3c8c..2bafdce46cd2f7ee7fd9c65008415e4499f79f22 100644 (file)
@@ -3,11 +3,7 @@
   <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/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/scripts/lib/insteon.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/insteon.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/lib/medialibrary.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/medialibrary.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/transcode.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/transcode.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/servers/insteon.php" beforeDir="false" afterPath="$PROJECT_DIR$/servers/insteon.php" afterDir="false" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
       <workItem from="1567261528772" duration="609000" />
       <workItem from="1567408023339" duration="2511000" />
       <workItem from="1567413752073" duration="11664000" />
-      <workItem from="1567582030869" duration="1366000" />
-    </task>
-    <task id="LOCAL-00174" summary=".">
-      <created>1551255018831</created>
-      <option name="number" value="00174" />
-      <option name="presentableId" value="LOCAL-00174" />
-      <option name="project" value="LOCAL" />
-      <updated>1551255018831</updated>
+      <workItem from="1567582030869" duration="2209000" />
     </task>
     <task id="LOCAL-00175" summary=".">
       <created>1551258276560</created>
       <option name="project" value="LOCAL" />
       <updated>1567582046067</updated>
     </task>
-    <option name="localTasksCounter" value="223" />
+    <task id="LOCAL-00223" summary=".">
+      <created>1567583577405</created>
+      <option name="number" value="00223" />
+      <option name="presentableId" value="LOCAL-00223" />
+      <option name="project" value="LOCAL" />
+      <updated>1567583577405</updated>
+    </task>
+    <option name="localTasksCounter" value="224" />
     <servers />
   </component>
   <component name="TodoView">
index a213dbe2c98c31f344d4849906bffe928bd9258b..c9d7a095de6b46e95740a5b37f95022d592ca5d9 100644 (file)
@@ -26,11 +26,11 @@ function runInsteonCommand($command, $attempts = 3)
     insteonClearBuffer();
     echo "\n" . '-- Command ' . $command . ' attempt #' . $attempts . ' --' . "\n";
     echo "command : " . _insteonCommand($command) . "\n";
-    for ($i = 1; $i <= 3; $i++) {
-        usleep(1000000 * 0.1);
+    for ($i = 1; $i <= 5; $i++) {
+        usleep(1000000 * 0.01);
         $buff = insteonBuffer();
         echo $buff . "\n";
-        if (stristr($buff, '0250') || stristr($buff, '0258')) {
+        if (stristr($buff, '0250') || stristr($buff, '0258') || stristr($buff, '0262')) {
             insteonClearBuffer();
             return;
         }
@@ -80,6 +80,7 @@ function insteonBuffer()
         return (string)($xml->BS);
     } else {
         $insteonHasKnocked = false;
+        insteonKnock();
         return '';
     }
 }
\ No newline at end of file