]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Tue, 26 Jan 2021 17:48:21 +0000 (18:48 +0100)
committerVincent <vincent@enhydra.fr>
Tue, 26 Jan 2021 17:48:21 +0000 (18:48 +0100)
.idea/workspace.xml
scripts/cron/cron.php
scripts/domoticz_device_event.php

index f13f7f70b44f08410454fc25009adf8e48d137b3..0e626ee1b93ef25c9c2fcd5f29ccb49eb7d6346b 100644 (file)
@@ -3,8 +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/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" 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" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
       <workItem from="1611585304162" duration="1674000" />
       <workItem from="1611609259944" duration="949000" />
       <workItem from="1611653492674" duration="2030000" />
-      <workItem from="1611656202680" duration="487000" />
-    </task>
-    <task id="LOCAL-00392" summary=".">
-      <created>1605365556377</created>
-      <option name="number" value="00392" />
-      <option name="presentableId" value="LOCAL-00392" />
-      <option name="project" value="LOCAL" />
-      <updated>1605365556377</updated>
+      <workItem from="1611656202680" duration="499000" />
+      <workItem from="1611669724998" duration="1948000" />
     </task>
     <task id="LOCAL-00393" summary=".">
       <created>1605428228628</created>
       <option name="project" value="LOCAL" />
       <updated>1611655420798</updated>
     </task>
-    <option name="localTasksCounter" value="441" />
+    <task id="LOCAL-00441" summary=".">
+      <created>1611656702791</created>
+      <option name="number" value="00441" />
+      <option name="presentableId" value="LOCAL-00441" />
+      <option name="project" value="LOCAL" />
+      <updated>1611656702791</updated>
+    </task>
+    <option name="localTasksCounter" value="442" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index 0cafc05dccc86f8e59dbd2287ce5c37e47acc148..38b7061e3790dba010fa34b5efd9488394ddcb43 100644 (file)
@@ -191,15 +191,15 @@ function cronSqueezeFavorites($cronmin)
 function cronSqueezeCheckPlayers($cronmin)
 {
     _logSection('Check squeezebox players');
-    $players = ['Salon' => 'salon', 'Bureau' => 'bureau'];
-    foreach ($players as $player => $device) {
-        if (getSqueezePlayerStatus($player) === -1) {
-            if (!shieldPlayingVideo($device)) {
-                shieldRunAppAndBackHome('sbplayer', $device, 1, true);
-                sleep(5);
-            }
-        }
-    }
+//    $players = ['Salon' => 'salon', 'Bureau' => 'bureau'];
+//    foreach ($players as $player => $device) {
+//        if (getSqueezePlayerStatus($player) === -1) {
+//            if (!shieldPlayingVideo($device)) {
+//                shieldRunAppAndBackHome('sbplayer', $device, 1, true);
+//                sleep(5);
+//            }
+//        }
+//    }
 }
 
 function cronWeather($cronmin)
index 5e4e234403183545c9320bc472bccff85d7aa03e..e03633e7c42f7c1e8f54ab1cd1675294a71deb64 100644 (file)
@@ -82,7 +82,6 @@ if ($_GET['device'] == 480) {
             off('bureau');
             break;
         case 'Move':
-            off('bureau');
             break;
         case 'Clock_Wise':
             volume(2, '+');
@@ -91,12 +90,8 @@ if ($_GET['device'] == 480) {
             volume(2, '-');
             break;
         case 'Tap':
-            if (getCurrentHarmonyActivity() == 'poweroff') {
-                squeezePlayByName('Samba', $squeezeboxPlayers['Bureau']);
-            } else if (getCurrentHarmonyActivity() == 'musique') {
-                stopHarmony();
-                stopPlayersIn('bureau');
-            }
+            squeezePlayByName('Samba', $squeezeboxPlayers['Bureau']);
+            harmonyActivity('musique');
             break;
         case 'Alert':
         default: