From 527b2977e5b77b73fd74c536c26a28f5e241611a Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 26 Jan 2021 18:48:21 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 21 +++++++++++---------- scripts/cron/cron.php | 18 +++++++++--------- scripts/domoticz_device_event.php | 9 ++------- 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f13f7f7..0e626ee 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,8 @@ + - diff --git a/scripts/cron/cron.php b/scripts/cron/cron.php index 0cafc05..38b7061 100644 --- a/scripts/cron/cron.php +++ b/scripts/cron/cron.php @@ -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) diff --git a/scripts/domoticz_device_event.php b/scripts/domoticz_device_event.php index 5e4e234..e03633e 100644 --- a/scripts/domoticz_device_event.php +++ b/scripts/domoticz_device_event.php @@ -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: -- 2.39.5