]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Fri, 23 Aug 2019 07:52:09 +0000 (09:52 +0200)
committerVincent <vincent@enhydra.fr>
Fri, 23 Aug 2019 07:52:09 +0000 (09:52 +0200)
.idea/workspace.xml
scripts/lib/domoticz.php
scripts/lib/squeezebox.php
scripts/lib/ssh.php

index 48690fb1abf21c742bfc73e59c51e72bd5b696b8..cfee25974925ceba21c61d62447a377d2934d047 100644 (file)
@@ -2,12 +2,10 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
-      <change afterPath="$PROJECT_DIR$/servers/squeezebox.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/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.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/lib/remoteinfos.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/remoteinfos.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/lib/domoticz.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/domoticz.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/scripts/lib/squeezebox.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/squeezebox.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/lib/ssh.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/ssh.php" afterDir="false" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
       <workItem from="1566371220982" duration="598000" />
       <workItem from="1566376145799" duration="4963000" />
       <workItem from="1566402117063" duration="1534000" />
-      <workItem from="1566458804773" duration="5114000" />
-    </task>
-    <task id="LOCAL-00160" summary=".">
-      <created>1551079784438</created>
-      <option name="number" value="00160" />
-      <option name="presentableId" value="LOCAL-00160" />
-      <option name="project" value="LOCAL" />
-      <updated>1551079784438</updated>
+      <workItem from="1566458804773" duration="6055000" />
     </task>
     <task id="LOCAL-00161" summary=".">
       <created>1551084971602</created>
       <option name="project" value="LOCAL" />
       <updated>1566499257720</updated>
     </task>
-    <option name="localTasksCounter" value="209" />
+    <task id="LOCAL-00209" summary=".">
+      <created>1566545980051</created>
+      <option name="number" value="00209" />
+      <option name="presentableId" value="LOCAL-00209" />
+      <option name="project" value="LOCAL" />
+      <updated>1566545980051</updated>
+    </task>
+    <option name="localTasksCounter" value="210" />
     <servers />
   </component>
   <component name="TodoView">
index d7396db5b40a4e394a6f930521fdc2f09107de64..a4a530369e177249f648ec53a75544ea829d79f3 100644 (file)
@@ -17,7 +17,7 @@ function domoticzCmd($command, $priority = false)
     $redis = connectRedis();
     $queue_name = 'domoticz_queue';
 
-    $queue = $redis->get($queue_name);
+    $queue = $redis->igbget($queue_name);
     if (!is_array($queue)) {
         $queue = [];
     }
index ede5f50fcc3b12d64200880ae3c5c2753bb877b6..537fe7141b16c5932bae853fe9101f51c4b21d39 100644 (file)
@@ -34,7 +34,7 @@ function squeezeRequest($params, $player)
     $redis = connectRedis();
     $queue_name = 'squeezebox_queue';
 
-    $queue = $redis->get($queue_name);
+    $queue = $redis->igbget($queue_name);
     if (!is_array($queue)) {
         $queue = [];
     }
index 25dc3ca680a469db182b40984d46891c4fa43d3b..a73d5487a88b272d17605d10eca5252141075a6d 100644 (file)
@@ -39,9 +39,9 @@ function getSSHInstance($device = null, $sudo = false, $force = false)
 
 function sshCommand($command, $device = null, $blocking = true, $sudo = false)
 {
-    return sshRunCommand($command, $device, $blocking, $sudo);
+    //return sshRunCommand($command, $device, $blocking, $sudo);
     $redis = connectRedis();
-    $queue = $redis->get('ssh_queue');
+    $queue = $redis->igbget('ssh_queue');
     if (!is_array($queue)) {
         $queue = [];
     }