</component>
<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
- <change beforePath="$PROJECT_DIR$/.idea/sqldialects.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/sqldialects.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/freebox.php" beforeDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/ical.php" beforeDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/klarstein.php" beforeDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/kodi.php" beforeDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/omxplay.php" beforeDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/music.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/music.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/switchbot.php" beforeDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/tmdb.php" beforeDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/squeezebox.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/squeezebox.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1772370387714" duration="7090000" />
<workItem from="1773390371781" duration="506000" />
<workItem from="1774028822942" duration="792000" />
- <workItem from="1774430967346" duration="2946000" />
+ <workItem from="1774430967346" duration="3270000" />
</task>
<task id="LOCAL-00502" summary=".">
<created>1641726946298</created>
<option name="project" value="LOCAL" />
<updated>1687259667913</updated>
</task>
- <option name="localTasksCounter" value="633" />
+ <option name="localTasksCounter" value="634" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
$shortcuts['music'] = [
['type' => 'volume', 'volume' => config('VOLUME_STEP'), 'increase' => '+', 'label' => '<i class="fa fa-volume-up"></i>'],
['type' => 'volume', 'volume' => config('VOLUME_STEP'), 'increase' => '-', 'label' => '<i class="fa fa-volume-down"></i>'],
- ['type' => 'sub', 'label' => 'Synchro', 'sub' => 'synchro'],
['type' => 'sub', 'label' => 'Radios', 'sub' => 'radio'],
['type' => 'sub', 'label' => 'Musique', 'sub' => 'playlists'],
['type' => 'sub', 'label' => 'Ambiance', 'sub' => 'ambiance'],
];
-$shortcuts['sub-synchro'] = [
- ['type' => 'back', 'label' => 'Synchro'],
- ['type' => 'light', 'scene' => 'home/music/synchro/soiree', 'label' => 'Soirée'],
- ['type' => 'light', 'scene' => 'home/music/synchro/salon-cuisine', 'label' => 'Salon Cuisine'],
- ['type' => 'light', 'scene' => 'home/music/synchro/chambre-sdb', 'label' => 'Chambre SDB'],
- ['type' => 'light', 'scene' => 'home/music/synchro/all', 'label' => 'Tout'],
- ['type' => 'light', 'scene' => 'home/music/synchro/bureau-wc', 'label' => 'Bureau WC'],
- ['type' => 'light', 'scene' => 'home/music/synchro/off', 'label' => 'Off'],
-];
-
if ($podcasts !== false) {
$shortcuts['music'][] = ['type' => 'sub', 'label' => 'Podcasts', 'sub' => 'podcasts'];
}
\ No newline at end of file
['type' => 'ecomode', 'mode' => '1'],
['type' => 'scene', 'scene' => 'sdb/hotwater/auto'],
],
- 'home/music/synchro/soiree' => [
- ['type' => 'function', 'function' => 'syncMusic', 'args' => [['Salon', 'Cuisine', 'Bureau', 'WC']]],
- ],
- 'home/music/synchro/salon-cuisine' => [
- ['type' => 'function', 'function' => 'syncMusic', 'args' => [['Salon', 'Cuisine']]],
- ],
- 'home/music/synchro/all' => [
- ['type' => 'function', 'function' => 'syncMusic', 'args' => [['Salon', 'Cuisine', 'Bureau', 'WC', 'Chambre', 'SDB']]],
- ],
- 'home/music/synchro/chambre-sdb' => [
- ['type' => 'function', 'function' => 'syncMusic', 'args' => [['Chambre', 'SDB']]],
- ],
- 'home/music/synchro/bureau-wc' => [
- ['type' => 'function', 'function' => 'syncMusic', 'args' => [['Bureau', 'WC']]],
- ],
- 'home/music/synchro/off' => [
- ['type' => 'function', 'function' => 'stopAllSqueezebox'],
- ],
'salon/projector/on' => [
['type' => 'function', 'function' => 'epson', 'args' => [true, true]],
],
return (preg_match('/([a-fA-F0-9]{2}[:|\-]?){6}/', $mac) == 1);
}
-function synchroSoiree()
-{
- syncMusic(['Salon', 'WC', 'Chambre', 'Bureau', 'Cuisine']);
-}
-
-
-function syncMusic($players)
-{
- global $squeezeboxPlayers;
- $first = true;
-
- foreach ($players as $player) {
- $player = _player($player);
- if ($player === $squeezeboxPlayers['WC']) {
-
- }
- squeezePlayerOn($player);
- if ($first) {
- $firstPlayer = $player;
- $first = false;
- continue;
- }
- squeezeRequest('sync ' . $player, $firstPlayer);
- squeezeRequest('power 1', $player);
- squeezeAddSynced($player);
- }
- squeezeRequest('play', $firstPlayer);
-}
-function squeezeAddSynced($player)
-{
- $player = _player($player);
- $synced = getState('squeezesynced', []);
- if (!in_array($player, $synced)) {
- $synced[] = $player;
- }
- setState('squeezesynced', $synced);
-}
-
-function squeezeEmptySynced()
-{
- setState('squeezesynced', []);
-}
-
-function isSynced($player)
-{
- $player = _player($player);
- $synced = getState('squeezesynced', []);
- return in_array($player, $synced);
-}
function getSqueezeFavorites($root = 0, $app = 'favorites', $level = 0)
{