<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/global.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/global.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/remoteinfos.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/remoteinfos.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/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/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="1579161178878" duration="2992000" />
<workItem from="1579457368919" duration="5928000" />
<workItem from="1579773474654" duration="57000" />
- <workItem from="1579773545061" duration="601000" />
- </task>
- <task id="LOCAL-00231" summary=".">
- <created>1568792710779</created>
- <option name="number" value="00231" />
- <option name="presentableId" value="LOCAL-00231" />
- <option name="project" value="LOCAL" />
- <updated>1568792710779</updated>
+ <workItem from="1579773545061" duration="651000" />
+ <workItem from="1579853532996" duration="4039000" />
</task>
<task id="LOCAL-00232" summary=".">
<created>1568881166470</created>
<option name="project" value="LOCAL" />
<updated>1579628617831</updated>
</task>
- <option name="localTasksCounter" value="280" />
+ <task id="LOCAL-00280" summary=".">
+ <created>1579775430862</created>
+ <option name="number" value="00280" />
+ <option name="presentableId" value="LOCAL-00280" />
+ <option name="project" value="LOCAL" />
+ <updated>1579775430862</updated>
+ </task>
+ <option name="localTasksCounter" value="281" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
</state>
<state x="720" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1577298128269" />
<state x="960" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1579773503974" />
- <state x="935" y="114" key="CommitChangelistDialog2" timestamp="1579628605830">
+ <state x="935" y="114" key="CommitChangelistDialog2" timestamp="1579775420826">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="701" y="114" key="CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040" timestamp="1577381105204" />
<state x="701" y="127" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1575647157027" />
- <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1579628605830" />
+ <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1579775420826" />
<state x="1114" y="443" key="NewPhpFileDialog" timestamp="1578038647334">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="872" y="242" key="Vcs.Push.Dialog.v2/0.0.2560.1040@0.0.2560.1040" timestamp="1578558711439" />
- <state x="976" y="343" key="com.intellij.ide.util.TipDialog" timestamp="1579773544720">
+ <state x="976" y="343" key="com.intellij.ide.util.TipDialog" timestamp="1579853534008">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="732" y="343" key="com.intellij.ide.util.TipDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1577380394903" />
<state x="732" y="383" key="com.intellij.ide.util.TipDialog/0.0.1920.1160@0.0.1920.1160" timestamp="1575647093028" />
- <state x="976" y="343" key="com.intellij.ide.util.TipDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1579773544720" />
- <state x="976" y="257" width="607" height="536" key="find.popup" timestamp="1579506279995">
+ <state x="976" y="343" key="com.intellij.ide.util.TipDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1579853534008" />
+ <state x="977" y="257" width="607" height="536" key="find.popup" timestamp="1579857029996">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="732" y="257" width="607" height="536" key="find.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1577380471547" />
- <state x="976" y="257" width="607" height="536" key="find.popup/0.0.2560.1040@0.0.2560.1040" timestamp="1579506279995" />
+ <state x="977" y="257" width="607" height="536" key="find.popup/0.0.2560.1040@0.0.2560.1040" timestamp="1579857029996" />
<state x="936" y="240" key="run.anything.popup" timestamp="1578386519646">
<screen x="0" y="0" width="2560" height="1040" />
</state>
'X' => array('dir' => 'Z/X', 'context' => 'movie', 'id' => 'x')
);
-$videoExt = ['mkv', 'mp4', 'avi', 'ogv', 'ts', 'm2ts', 'mpg', 'm4v', 'flv', 'f4v', 'mov', 'mpg', 'mpeg'];
+$videoExt = ['mkv', 'mp4', 'avi', 'ogv', 'ts', 'm2ts', 'mpg', 'm4v', 'flv', 'f4v', 'mov', 'mpg', 'mpeg','divx'];
profile('Set globals', __FILE__, __LINE__);
$res['time'] = '';
$res['title'] = '';
$res['artwork'] = '';
+ $res['status']='';
$d = getDevice();
$playlist = simplexml_load_string(VLCCmd(['query' => 'requests/playlist.xml'], $d));
- $status = simplexml_load_string(VLCCmd(['query' => 'requests/status.xml'], $d));
+ $s = (string)VLCCmd(['query' => 'requests/status.xml'], $d);
+ $status = simplexml_load_string($s);
$leaf = $playlist->xpath('//leaf[@current="current"]');
if (count($leaf) > 0) {
$res['can_seek'] = true;
$res['duration'] = intval((string)$status->xpath('//length')[0]);
$res['time'] = intval((string)$status->xpath('//time')[0]);
+ $res['status'] = $s;
$playing = getPlaying();
$e = explode(':', $playing, 3);
['type' => 'function', 'function' => 'sleepPC', 'args' => ['avion']],
],
'bureau/media/play' => [
- ['type' => 'function', 'function' => 'bureauMediaOn'],
['type' => 'scene', 'scene' => 'bureau/screen/down'],
['type' => 'scene', 'scene' => 'bureau/rideaux/close'],
['type' => 'scene', 'scene' => 'bureau/off'],
['type' => 'function', 'function' => 'bureauAuto', 'args' => [false]],
['type' => 'ir', 'room' => 'bureau', 'device' => 'Projector', 'command' => 'PowerOn'],
],
- 'bureau/media/on' => [
- ['type' => 'insteon', 'command' => '0?1139=I=0=0'],
- ['type' => 'domoticz', 'device' => '559', 'command' => true, 'priority' => true],
- ],
- 'bureau/media/off' => [
- ['type' => 'insteon', 'command' => '0?1339=I=0=0'],
- ['type' => 'domoticz', 'device' => '559', 'command' => false, 'priority' => true],
- ],
'bureau/screen/down' => [
['type' => 'domoticz', 'device' => '1', 'command' => true, 'priority' => true],
],
['type' => 'domoticz', 'device' => '478', 'command' => false, 'priority' => true],
],
'ecomode/basic' => [
- ['type' => 'scene', 'scene' => 'bureau/media/off'],// Media bureau
['type' => 'scene', 'scene' => 'salon/freebox/off'],
['type' => 'scene', 'scene' => 'sdb/ampli/off'],
['type' => 'scene', 'scene' => 'chambre/raspberry/off'],
if (getState('wcTimeout') == $rand) {
insteonCommand('0?1334=I=0=0');
}
-}
-
-function bureauMediaOn()
-{
- execScene('bureau/media/on');
- if (!isAlive('bureau')) {
- sleep(60);
- }
}
\ No newline at end of file
if ($player == $squeezeboxPlayers['Salle de bains']) {
execScene('sdb/ampli/on');
}
- if ($player == $squeezeboxPlayers['Bureau']) {
- bureauMediaOn();
- }
-
squeezeRequest('pause', $player);
if (null !== $volume) {
if (config('VOLUME_DEVICE') == 'SqueezeboxPlayer') {
if (config('DEVICE') == 'salon') {
harmonyActivity('media');
-} else if (config('DEVICE') == 'bureau') {
- bureauMediaOn();
}
sshCommand('killall fbi', null, false, true);
print_r(harmonyActivity("musique-radio"));
} elseif ($_GET['player'] == 'Salle de bains') {
execScene('sdb/ampli/on');
- } else if ($_GET['player'] == 'Bureau') {
- bureauMediaOn();
}
setPlaying('squeezebox');
} else {