From: Vincent Vanwaelscappel Date: Sat, 12 Aug 2023 14:50:12 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e22d8d563105e5f4fcf5b9f74b925aed22520eb0;p=tortuga-home.git . --- diff --git a/.docker/dockerterminal.bat b/.docker/dockerterminal.bat index 420ea09..b7a7a21 100644 --- a/.docker/dockerterminal.bat +++ b/.docker/dockerterminal.bat @@ -1,3 +1,3 @@ @echo off cls -C:\tools\cygwin\bin\ssh.exe -tt root@192.168.13.7 'docker exec -it -u root tortugahome /bin/bash' +C:\tools\cygwin\bin\ssh.exe -tt root@192.168.13.6 'docker exec -it -u root tortugahome /bin/bash' diff --git a/.idea/workspace.xml b/.idea/workspace.xml index feeb202..523756f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,10 +5,11 @@ + - - - + + + - + diff --git a/config/global.php b/config/global.php index 8abf859..3eff0d1 100644 --- a/config/global.php +++ b/config/global.php @@ -24,23 +24,13 @@ define('NAS_PWD_ROOT', 'smb://Share:RQpZHMDLtbc229FQV3@192.168.13.1/1.42.6-25556 $squeezeboxPlayers = array( 'Cave' => 'b8:27:eb:ab:b4:50', 'Salle de bains' => '8b:42:ec:ef:38:39', - //'Salon' => 'dc:a6:32:02:47:c1', - //'Salon' => 'cc:cc:2d:15:82:0e', - //'Salon' => '5a:a1:4c:5c:e7:5e', - 'Salon' => 'bb:bb:b1:c8:92:09', - //'Salon' => '00:04:20:17:82:8b', 'Chambre' => 'b8:27:eb:31:e1:44', - //'WC' => '00:04:20:2a:05:2e', - //'WC' => 'b8:27:eb:78:f6:88', - // 'WC' => 'a6:ce:85:78:33:a4', - //'Cuisine' => 'b8:27:eb:ec:71:34', 'Cuisine' => '00:04:20:2a:05:2e', 'Lit Jérôme' => 'b8:27:eb:62:d3:ce', 'Lit Vincent' => 'b8:27:eb:40:0e:e9', 'WC' => 'b8:27:eb:f6:1d:30', - //'Bureau' => 'cc:cc:2d:2a:b5:35', - //'Bureau' => 'd6:12:01:da:63:f9', - 'Bureau' => '00:04:20:17:82:8b', + 'Salon' => '00:04:20:17:82:8b', + 'Bureau' => 'dc:a6:32:50:70:42', ); diff --git a/scripts/lib/denon.php b/scripts/lib/denon.php index 0dd243a..871f822 100644 --- a/scripts/lib/denon.php +++ b/scripts/lib/denon.php @@ -57,7 +57,7 @@ function denonAVRInput($input, $setvolume = false) } if ($setvolume) { - $volumes = ['Media Player' => 60, 'Game' => 50, 'HEOS Music' => 40, 'CD' => 30, 'AUX' => 26]; + $volumes = ['Media Player' => 60, 'Game' => 50, 'HEOS Music' => 40, 'CD' => 30, 'AUX' => 30]; if (isset($volumes[$input])) { for ($i = 0; $i <= 2; $i++) { denonAVRVolume($volumes[$input], ''); @@ -66,7 +66,7 @@ function denonAVRInput($input, $setvolume = false) } } - $audioMode = ['Media Player' => 'DOLBY DIGITAL', 'AUX' => 'DOLBY DIGITAL', 'CD' => 'DOLBY DIGITAL', 'Game' => 'DOLBY DIGITAL', 'HEOS Music' => 'MULTI CH IN 7.1']; + $audioMode = ['Media Player' => 'DOLBY DIGITAL', 'AUX' => 'MULTI CH IN 7.1', 'CD' => 'DOLBY DIGITAL', 'Game' => 'DOLBY DIGITAL', 'HEOS Music' => 'MULTI CH IN 7.1']; if (isset($audioMode[$input])) { for ($i = 0; $i <= 2; $i++) { denonAVRSetAudioMode($audioMode[$input]); diff --git a/scripts/lib/squeezebox.php b/scripts/lib/squeezebox.php index ad9fab8..94687c8 100644 --- a/scripts/lib/squeezebox.php +++ b/scripts/lib/squeezebox.php @@ -2,6 +2,8 @@ require_once ROOT . '/config/music.php'; +const DENON_SQUEEZEBOX_INPUT = 'AUX'; + function stopSqueezeboxPlayer($player, $stopIfSync = true, $devices = true) { if (!$stopIfSync && isSynced($player)) { @@ -157,11 +159,11 @@ function squeezePlayerOn($player) $player = _player($player); if ($player == $squeezeboxPlayers['Salon']) { $state = denonAVRGetPowerState(); - denonAVROn('HEOS Music', false); + denonAVROn(DENON_SQUEEZEBOX_INPUT, false); sleep(4); if (!$state) { denonAVROff(); - denonAVROn('HEOS Music', true); + denonAVROn(DENON_SQUEEZEBOX_INPUT, true); } } else if ($player == $squeezeboxPlayers['Salle de bains']) { execScene('sdb/ampli/on');