]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Thu, 28 Nov 2019 18:50:00 +0000 (19:50 +0100)
committerVincent <vincent@enhydra.fr>
Thu, 28 Nov 2019 18:50:00 +0000 (19:50 +0100)
.idea/workspace.xml
scripts/domoticz_device_event.php
scripts/lib/bricks.php
scripts/lib/mediarasp.php

index f3b748d5b78a9819a044c5b81cb9a62d5245223e..3cbdba0eb1120d9ca723c22fc03299de78846943 100644 (file)
@@ -4,10 +4,8 @@
     <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/domoticz_device_event.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/domoticz_device_event.php" 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/bricks.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/bricks.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/scripts/lib/mediarasp.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/mediarasp.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$/scripts/remotecmd.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/remotecmd.php" afterDir="false" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
       <workItem from="1574065436563" duration="754000" />
       <workItem from="1574066213679" duration="8067000" />
       <workItem from="1574273415760" duration="2973000" />
-      <workItem from="1574323616439" duration="14023000" />
-    </task>
-    <task id="LOCAL-00199" summary=".">
-      <created>1562828700494</created>
-      <option name="number" value="00199" />
-      <option name="presentableId" value="LOCAL-00199" />
-      <option name="project" value="LOCAL" />
-      <updated>1562828700495</updated>
+      <workItem from="1574323616439" duration="14916000" />
     </task>
     <task id="LOCAL-00200" summary=".">
       <created>1563349220382</created>
       <option name="project" value="LOCAL" />
       <updated>1574411352997</updated>
     </task>
-    <option name="localTasksCounter" value="248" />
+    <task id="LOCAL-00248" summary=".">
+      <created>1574966117031</created>
+      <option name="number" value="00248" />
+      <option name="presentableId" value="LOCAL-00248" />
+      <option name="project" value="LOCAL" />
+      <updated>1574966117031</updated>
+    </task>
+    <option name="localTasksCounter" value="249" />
     <servers />
   </component>
   <component name="TodoView">
index 624d41f72c8d5b8cfaec95ea59947ac93206bf79..363e29bbec72044a426ce46a44dee40aca8511f7 100644 (file)
@@ -21,7 +21,7 @@ if ($_GET['device'] == 480) {
             execScene('salon/on');
             break;
         case 'Free_Fall':
-            execScene('salon/off');
+            off('salon');
             break;
         case 'Move':
             _remoteCmd('pause', 'salon');
index 5854d13a1a5607601ba7e599ddd3d260520596ac..ddc9b80c2bb1b0211ce4bfaf51ee9a8899fdfa89 100644 (file)
@@ -30,9 +30,9 @@ function makeBricks($bricks)
 
 function getRemoteVolumeBrick($brick)
 {
-    $res = '<div class="line"><a href="#" data-remote-command="mute"><i style="font-size: 1.25em;" class="fas fa-volume-down"></i></a></div>';
+    $res = '<div class="line"><a href="#" data-remote-command="audio-track-next" data-remote-command-long="mute"><i style="font-size: 1.25em;" class="fas fa-volume-down"></i></a></div>';
     $res .= '<div class="line"><a href="#" data-remote-command="volume-up"><i class="fas fa-plus"></i></a></div>';
-    $res .= '<div class="line"><a href="#" data-remote-command="volume-down"><i class="fas fa-minus"></i></a></div>';
+    $res .= '<div class="line"><a href="#" data-remote-command="volume-down" data-remote-command-long="mute"><i class="fas fa-minus"></i></a></div>';
     return $res;
 }
 
index 1416a8eed93d267c9d97e913911aebbcab6f67be..01d272f2d05fdd71822ef7d1e1c956980bef3762 100644 (file)
@@ -2,13 +2,14 @@
 
 $mediaraspclient = null;
 
-function _remoteCmd($cmd,$device){
+function _remoteCmd($cmd, $device)
+{
     // We first try to send it to salon raspberry before sending a less robust ir command
     if (!remoteCmd($cmd, $device)) {
         if ($device == 'salon') {
-            echo 'run '.$cmd.' with harmony';
+            echo 'run ' . $cmd . ' with harmony';
             harmonyRequest('commands/' . $cmd, 'POST');
-        }else{
+        } else {
             echo 'ok';
         }
     }
@@ -165,7 +166,7 @@ function remoteCmdMedia($cmd, $device = null, $playing = null)
         'subtitles-increase-delay-long' => 'subtitles-increase-delay-long',
         'subtitles-decrease-delay' => 'subtitles-decrease-delay',
         'subtitles-decrease-delay-long' => 'subtitles-decrease-delay-long',
-
+        'audio-track-next' => 'audio-track-next',
     ];
 
 
@@ -197,6 +198,8 @@ function remoteCmdMedia($cmd, $device = null, $playing = null)
             sendHotKey('h', 40);
         } else if ($key == 'subtitles-decrease-delay-long') {
             sendHotKey('g', 40);
+        } else if ($key == 'audio-track-next') {
+            sendHotKey('b');
         } else if ($key == 'rewind' || $key == 'fast-rewind' || $key == 'forward' || $key == 'fast-forward') {
             if ($key == 'rewind' || $key == 'forward') {
                 $amount = 15;
@@ -329,9 +332,9 @@ function mediaRaspCommons($device)
     } else if ($device == 'bureau') {
         execScene('bureau/media/play');
         stopSqueezebox($squeezeboxPlayers['Bureau']);
-        if(!isAlive('bureau')){
+        if (!isAlive('bureau')) {
             sleep(60);
-            irsend('bureau','Projector','PowerOn');
+            irsend('bureau', 'Projector', 'PowerOn');
         }
 //        sshRunCommand('/usr/local/bin/soundtohdmi', 'bureau');
     } else if ($device == 'sdb') {