]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Sat, 24 Oct 2020 17:20:55 +0000 (19:20 +0200)
committerVincent <vincent@enhydra.fr>
Sat, 24 Oct 2020 17:20:55 +0000 (19:20 +0200)
.idea/workspace.xml
scripts/lib/hue.php
servers/hue.php

index 1366b27af9aee58070fa8e3a4e0cfee8f332dd1a..932a20b1d257940c23d7c762b5688ad2cbb0c2dd 100644 (file)
@@ -2,10 +2,9 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
-      <change afterPath="$PROJECT_DIR$/servers/hue.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/scripts/lib/hue.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/hue.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/lib/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/servers/hue.php" beforeDir="false" afterPath="$PROJECT_DIR$/servers/hue.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
       <workItem from="1602862886793" duration="1014000" />
       <workItem from="1603095373591" duration="1368000" />
       <workItem from="1603270756890" duration="3366000" />
-      <workItem from="1603558842019" duration="446000" />
-    </task>
-    <task id="LOCAL-00301" summary=".">
-      <created>1582014172949</created>
-      <option name="number" value="00301" />
-      <option name="presentableId" value="LOCAL-00301" />
-      <option name="project" value="LOCAL" />
-      <updated>1582014172949</updated>
+      <workItem from="1603558842019" duration="1166000" />
     </task>
     <task id="LOCAL-00302" summary=".">
       <created>1582014492440</created>
       <option name="project" value="LOCAL" />
       <updated>1603276030273</updated>
     </task>
-    <option name="localTasksCounter" value="350" />
+    <task id="LOCAL-00350" summary=".">
+      <created>1603559422652</created>
+      <option name="number" value="00350" />
+      <option name="presentableId" value="LOCAL-00350" />
+      <option name="project" value="LOCAL" />
+      <updated>1603559422652</updated>
+    </task>
+    <option name="localTasksCounter" value="351" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
       <screen x="0" y="0" width="2560" height="1040" />
     </state>
     <state x="872" y="161" key="#Plugins/0.0.2560.1040@0.0.2560.1040" timestamp="1596008801840" />
-    <state x="198" y="0" width="745" height="567" key="CommitChangelistDialog2" timestamp="1603275999359">
+    <state x="198" y="0" width="745" height="567" key="CommitChangelistDialog2" timestamp="1603559413478">
       <screen x="0" y="0" width="2560" height="1040" />
     </state>
     <state x="701" y="75" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1602171117745" />
-    <state x="198" y="0" width="745" height="567" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1603275999359" />
+    <state x="198" y="0" width="745" height="567" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1603559413478" />
     <state x="1114" y="443" key="NewPhpFileDialog" timestamp="1602146675515">
       <screen x="0" y="0" width="2560" height="1040" />
     </state>
index 01372ff7a82b5ca58c88292319acb10b12a2de6a..5d005834c34cc691d3746365733c47c4be680e35 100644 (file)
@@ -28,7 +28,7 @@ function hueCommand($action, $transitionTime)
     $command['transitionTime'] = $transitionTime;
     $queue[] = $command;
     $redis->igbset('hue_queue', $queue);
-    $redis->publish('hue_queue', 'handle_queue');
+    $redis->publish('hue_event', 'handle_queue');
 }
 
 function _hueCommand($action)
index 9a7bd89e9970735f5ab8380b40b5512420d924f0..0dcaba855efef0a33dcf448bb044a3eecda3d995 100644 (file)
@@ -37,7 +37,7 @@ function handleHueQueue()
 
         $command = array_shift($queue);
         $redis->igbset('hue_queue', $queue);
-        echo 'Run command ' . $command . "\n";
+        echo 'Run command ' . json_encode($command) . "\n";
         _hueCommand($command);
         usleep(1000000 * 0.1);
     }