<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$/config/settings.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/settings.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/media.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/media.php" 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/ecomode.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/ecomode.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/ecomode.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/ecomode.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/harmony.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/harmony.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/mediarasp.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/mediarasp.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/shield.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/shield.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/squeezebox.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/squeezebox.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/pcgames.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/pcgames.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/share.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/share.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/squeeze.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/squeeze.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1603958541180" duration="5032000" />
<workItem from="1604042543878" duration="11137000" />
<workItem from="1604152329376" duration="42646000" />
- <workItem from="1604347943058" duration="4570000" />
- </task>
- <task id="LOCAL-00319" summary=".">
- <created>1585899396649</created>
- <option name="number" value="00319" />
- <option name="presentableId" value="LOCAL-00319" />
- <option name="project" value="LOCAL" />
- <updated>1585899396650</updated>
+ <workItem from="1604347943058" duration="5502000" />
</task>
<task id="LOCAL-00320" summary=".">
<created>1586519228613</created>
<option name="project" value="LOCAL" />
<updated>1604389791157</updated>
</task>
- <option name="localTasksCounter" value="368" />
+ <task id="LOCAL-00368" summary=".">
+ <created>1604390350662</created>
+ <option name="number" value="00368" />
+ <option name="presentableId" value="LOCAL-00368" />
+ <option name="project" value="LOCAL" />
+ <updated>1604390350662</updated>
+ </task>
+ <option name="localTasksCounter" value="369" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<screen x="0" y="0" width="1707" height="920" />
</state>
<state x="740" y="229" key="#com.jetbrains.php.refactoring.extractMethod.PhpExtractMethodDialog#function0/0.0.1707.920@0.0.1707.920" timestamp="1604146905948" />
- <state x="198" y="0" width="737" height="502" key="CommitChangelistDialog2" timestamp="1604389742372">
+ <state x="198" y="0" width="737" height="502" key="CommitChangelistDialog2" timestamp="1604390342755">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="132" y="0" width="737" height="502" key="CommitChangelistDialog2/0.0.1707.920@0.0.1707.920" timestamp="1604307637401" />
<state x="701" y="75" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1602171117745" />
- <state x="198" y="0" width="745" height="567" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1604389742372" />
+ <state x="198" y="0" width="745" height="567" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1604390342755" />
<state x="635" y="216" key="FileChooserDialogImpl" timestamp="1604227698339">
<screen x="0" y="0" width="1707" height="920" />
</state>
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="295" y="0" width="1290" height="907" key="dock-window-1/0.0.2560.1040@0.0.2560.1040" timestamp="1603274697406" />
- <state x="977" y="257" width="607" height="536" key="find.popup" timestamp="1604389892117">
+ <state x="977" y="257" width="607" height="536" key="find.popup" timestamp="1604396363414">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="651" y="227" width="550" height="534" key="find.popup/0.0.1707.920@0.0.1707.920" timestamp="1604301949692" />
- <state x="977" y="257" width="607" height="536" key="find.popup/0.0.2560.1040@0.0.2560.1040" timestamp="1604389892117" />
+ <state x="977" y="257" width="607" height="536" key="find.popup/0.0.2560.1040@0.0.2560.1040" timestamp="1604396363414" />
<state x="512" y="211" key="run.anything.popup" timestamp="1604146410464">
<screen x="0" y="0" width="1707" height="920" />
</state>
$shortcuts['media'][] = array('type' => 'netflix', 'url' => 'scripts/netflix.php?id=home', 'label' => '<img src="images/netflix.png">');
}
if ($device == 'salon' || $device == 'bureau') {
- $shortcuts['media'][] = ['label' => 'Nintendo Switch', 'type' => 'harmonyactivity', 'activity' => 'nintendo-switch'];
+ $shortcuts['media'][] = ['label' => 'Nintendo Switch', 'type' => 'harmonyactivity', 'activity' => 'tv'];
$shortcuts['media'][] = ['label' => 'Jeux PC', 'type' => 'ajax', 'url' => '/scripts/pcgames.php'];
$shortcuts['media'][] = ['label' => 'Vidéo web', 'type' => 'raspberrycast'];
}
}
if ($currentActivity == 'tv') {
- setPlaying('freebox', 'salon');
- } else if ($currentActivity == 'musique-radio') {
+ setPlaying('mycanal', 'salon');
+ } else if ($currentActivity == 'musique') {
setPlaying('squeezebox', 'salon');
} else if ($currentActivity == 'poweroff' || $currentActivity == 'off') {
- setPlaying('freebox', 'salon');
- } else if ($currentActivity == 'media') {
+ setPlaying('mycanal', 'salon');
}
}
off('salon');
break;
case 'Move':
- if (getCurrentHarmonyActivity() != 'musique-radio') {
+ if (getCurrentHarmonyActivity() != 'musique') {
_remoteCmd('pause', 'salon');
}
break;
case 'Tap':
if (getCurrentHarmonyActivity() == 'poweroff') {
squeezePlayByName('FIP', $squeezeboxPlayers['Salon']);
- } else if (getCurrentHarmonyActivity() == 'musique-radio') {
+ } else if (getCurrentHarmonyActivity() == 'musique') {
stopHarmony();
}
break;
<?php
require_once "import.php";
if (isset($_GET['action'])) {
- if ($_GET['action'] = 'disablesuper') {
+ if ($_GET['action'] == 'disablesuper') {
disableSuperEcoMode();
} else if ($_GET['action'] == 'fix') {
ecoMode(null, true);
- header('/');
+ header('Location: /');
exit;
}
} else {
function harmonyActivity($activity)
{
- if ($activity == 'tv' || $activity == 'shield' || $activity == 'poweroff' || $activity == 'off') {
+ if ($activity == 'tv' $activity == 'poweroff' || $activity == 'off') {
setPlaying('mycanal', 'salon');
}
$wait = 0;
if ($wait > 0) {
sleep($wait);
}
- if ($activity == 'tv' || $activity == 'media' || $activity == 'shield') {
+ if ($activity == 'tv' ) {
runAtEnd('sleep(5);harmonyDeviceCommand(\'videoprojecteur-epson\', \'power-on\');');
}
return $res;
global $squeezeboxPlayers;
if ($device == 'salon') {
stopSqueezebox('Salon');
- harmonyActivity('media');
+ harmonyActivity('tv');
} else if ($device == 'bureau') {
execScene('bureau/media/play');
stopSqueezebox($squeezeboxPlayers['Bureau']);
['type' => 'function', 'function' => 'chemineeOff', 'args' => ['salon']],
],
'salon/media/play' => [
- ['type' => 'function', 'function' => 'harmonyActivity', 'args' => ['media']],
+ ['type' => 'function', 'function' => 'harmonyActivity', 'args' => ['tv']],
],
'salon/fan/on' => [
['type' => 'domoticz', 'device' => '478', 'command' => true],
['type' => 'hue', 'group' => 17, 'scene' => ['on' => false, 'brightness' => 0, 'effect' => 'none']],
],
'sdb/radio/sync/salon' => [
- ['type' => 'function', 'function' => 'harmonyActivity', 'args' => ["musique-radio"]],
+ ['type' => 'function', 'function' => 'harmonyActivity', 'args' => ["musique"]],
['type' => 'function', 'function' => 'squeezeRequest', 'args' => ['sync ' . $squeezeboxPlayers['Salon'], $squeezeboxPlayers['Salle de bains']], 'wait' => 1],
['type' => 'function', 'function' => 'squeezeRequest', 'args' => ['power 1', $squeezeboxPlayers['Salon']]],
['type' => 'function', 'function' => 'squeezeRequest', 'args' => ['play', $squeezeboxPlayers['Salon']]]
$device=getDevice($device);
if($device==='salon'){
- harmonyActivity('shield');
+ harmonyActivity('tv');
}
$url = 'http://www.netflix.com/';
}
$device=getDevice($device);
if($device==='salon'){
- harmonyActivity('shield');
+ harmonyActivity('tv');
}
setPlaying('mycanal', $device);
_adb('shell am start', '-a android.intent.action.VIEW -f 0x10808000 -d ' . $url . ' com.canal.android.canal/com.canal.app.common.legacy.DeepLinkActivity');
shieldHome();
$device=getDevice($device);
if($device==='salon'){
- harmonyActivity('shield');
+ harmonyActivity('tv');
}
_adb('shell am start', '-a android.intent.action.VIEW -d \'"' . shieldNormalizeURL($file) . '"\' -n org.xbmc.kodi/.Splash');
}
}
if ($player == $squeezeboxPlayers['Salon']) {
- harmonyActivity('musique-radio');
+ harmonyActivity('musique');
}
if ($player == $squeezeboxPlayers['Salle de bains']) {
execScene('sdb/ampli/on');
function synchroSoiree()
{
- harmonyActivity('musique-radio');
+ harmonyActivity('musique');
$devices = ['WC', 'Chambre', 'Bureau', 'Cuisine'];
$salon = _player('Salon');
require_once "import.php";
if (config('DEVICE') == 'salon') {
- harmonyActivity('media');
+ harmonyActivity('tv');
}
sshCommand('killall fbi', null, false, true);
$u = parse_url($content);
if ($u['host'] == 'open.spotify.com') {
if ($device == 'salon') {
- harmonyActivity('musique-radio');
+ harmonyActivity('musique');
}
$p = explode('/', trim($u['path'], '/'));
$spotify = 'spotify:' . implode(':', $p);
if (!in_array('stop', $requests) || isset($_GET['name'])) {
if ($_GET['player'] == 'Salon') {
- print_r(harmonyActivity("musique-radio"));
+ print_r(harmonyActivity("musique"));
} elseif ($_GET['player'] == 'Salle de bains') {
execScene('sdb/ampli/on');
}