From: Vincent Date: Wed, 3 Mar 2021 08:47:46 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=057d4fb22d3c2121689d03bfb2b16e5d773cce59;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b70ffe4..d2b6a66 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,11 @@ + + - - - + + + - + - @@ -275,6 +276,17 @@ diff --git a/config/media.php b/config/media.php index 8013755..58067b4 100644 --- a/config/media.php +++ b/config/media.php @@ -7,13 +7,13 @@ $device = config('DEVICE'); $shortcuts['media'] = [['label' => 'TV', 'type' => 'sub', 'sub' => 'tv'], ['label' => 'Ajoutés récemment', 'type' => 'sub', 'sub' => 'mediarecent']]; $shortcuts['media'][] = ['label' => 'Séries TV', 'type' => 'sub', 'sub' => 'seriestv']; $shortcuts['media'][] = ['label' => 'Films', 'type' => 'sub', 'sub' => 'movies']; -if ($device == 'salon') { +if ($device == 'salon' || $device == 'bureau' || $device == 'bureausun') { $shortcuts['media'][] = array('type' => 'netflix', 'url' => 'scripts/netflix.php?id=home', 'label' => ''); -} -if ($device == 'salon' || $device == 'bureau') { - $shortcuts['media'][] = ['label' => 'Jeux Videos', 'type' => 'ajax', 'url' => '/scripts/pcgames.php']; $shortcuts['media'][] = ['label' => 'Vidéo web', 'type' => 'raspberrycast']; } +if ($device == 'bureau' || $device == 'bureausun') { + $shortcuts['media'][] = ['label' => '', 'type' => 'ajax', 'url' => '/scripts/switch.php']; +} $tvshows = getTVShows(); diff --git a/images/switch.png b/images/switch.png new file mode 100644 index 0000000..91e60ce Binary files /dev/null and b/images/switch.png differ diff --git a/scripts/pcgames.php b/scripts/pcgames.php index 60673f9..f65781f 100644 --- a/scripts/pcgames.php +++ b/scripts/pcgames.php @@ -3,8 +3,4 @@ require_once "import.php"; if (config('DEVICE') == 'bureau') { harmonyActivity('tv'); -} - -sshCommand('killall fbi', null, false, true); -sshCommand('killall /usr/bin/remmina', null, false, true); -sshCommand('DISPLAY=:0 /usr/bin/remmina -c /home/pi/.local/share/remmina/1571565005433.remmina', null, false, false); \ No newline at end of file +} \ No newline at end of file diff --git a/scripts/switch.php b/scripts/switch.php new file mode 100644 index 0000000..850ad74 --- /dev/null +++ b/scripts/switch.php @@ -0,0 +1,7 @@ +