From: Vincent Date: Mon, 26 Aug 2019 08:34:54 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d1deb69bbca7d3d47adc94ec1202a01f41de59bd;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7a049f9..fa5b940 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,12 +3,9 @@ - - - - + - - - - - - - + + + + + + + @@ -717,14 +714,7 @@ - - - - 1551166201535 - 1551168960202 @@ -1062,7 +1052,14 @@ - diff --git a/scripts/lib/lib.php b/scripts/lib/lib.php index 2b7c871..3400b8e 100644 --- a/scripts/lib/lib.php +++ b/scripts/lib/lib.php @@ -433,8 +433,8 @@ function volume($volume, $increase = '') } case 'RaspberryCast': return raspberryCast('sound?vol=' . ($increase == '-' ? 'less' : 'more')); - case 'OMX': - return VLCCmd(['action' => 'shortcut', 'shortcut' => $increase], $device); + case 'VLC': + return VLCCmd(['command' => 'volume', 'val' => $increase . '20'], $device); } } diff --git a/scripts/lib/mediarasp.php b/scripts/lib/mediarasp.php index faf933c..7e577cd 100644 --- a/scripts/lib/mediarasp.php +++ b/scripts/lib/mediarasp.php @@ -318,7 +318,7 @@ function mediaRaspCommons($device) } else if ($device == 'bureau') { execScene('bureau/media/play'); stopSqueezebox($squeezeboxPlayers['Bureau']); - sshCommand('/usr/local/bin/soundtohdmi', $device); + sshCommand('/usr/local/bin/soundtohdmi', 'bureau'); } else if ($device == 'sdb') { execScene('sdb/ampli/on'); } @@ -347,6 +347,7 @@ function mediaRaspPlayStream($url, $device = null) } setPlaying('mediarasp:' . $url, $device); + mediaRaspCommons($device); return $res; } diff --git a/scripts/lib/off.php b/scripts/lib/off.php index 2b91157..c98e54e 100644 --- a/scripts/lib/off.php +++ b/scripts/lib/off.php @@ -31,7 +31,7 @@ function offBureau() { domoticzSwitch(1, false); irsend('bureau', 'Projector', 'PowerOn'); - sleep(1); + sleep(2); irsend('bureau', 'Projector', 'PowerOn'); }