<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/remote.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/remote.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/config/tv.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/tv.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/bureau.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/bureau.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/rooms.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/rooms.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/tmdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/tmdb.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/shield.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/shield.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<workItem from="1603811262372" duration="1988000" />
<workItem from="1603958541180" duration="5032000" />
<workItem from="1604042543878" duration="11137000" />
- <workItem from="1604152329376" duration="14038000" />
- </task>
- <task id="LOCAL-00309" summary=".">
- <created>1583309116308</created>
- <option name="number" value="00309" />
- <option name="presentableId" value="LOCAL-00309" />
- <option name="project" value="LOCAL" />
- <updated>1583309116308</updated>
+ <workItem from="1604152329376" duration="17258000" />
</task>
<task id="LOCAL-00310" summary=".">
<created>1583413557785</created>
<option name="project" value="LOCAL" />
<updated>1604143127018</updated>
</task>
- <option name="localTasksCounter" value="358" />
+ <task id="LOCAL-00358" summary=".">
+ <created>1604224463669</created>
+ <option name="number" value="00358" />
+ <option name="presentableId" value="LOCAL-00358" />
+ <option name="project" value="LOCAL" />
+ <updated>1604224463669</updated>
+ </task>
+ <option name="localTasksCounter" value="359" />
<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="132" y="0" width="737" height="502" key="CommitChangelistDialog2" timestamp="1604143114614">
+ <state x="132" y="0" width="737" height="502" key="CommitChangelistDialog2" timestamp="1604224431367">
<screen x="0" y="0" width="1707" height="920" />
</state>
- <state x="132" y="0" width="737" height="502" key="CommitChangelistDialog2/0.0.1707.920@0.0.1707.920" timestamp="1604143114614" />
+ <state x="132" y="0" width="737" height="502" key="CommitChangelistDialog2/0.0.1707.920@0.0.1707.920" timestamp="1604224431367" />
<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="1603961854066" />
+ <state x="635" y="216" key="FileChooserDialogImpl" timestamp="1604227698339">
+ <screen x="0" y="0" width="1707" height="920" />
+ </state>
+ <state x="635" y="216" key="FileChooserDialogImpl/0.0.1707.920@0.0.1707.920" timestamp="1604227698339" />
<state x="1114" y="443" key="NewPhpFileDialog" timestamp="1603958673068">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="781" y="165" key="SettingsEditor/0.0.2560.1040@0.0.2560.1040" timestamp="1596008871908" />
- <state width="498" height="446" key="SwitcherDM" timestamp="1604161134101">
+ <state width="498" height="446" key="SwitcherDM" timestamp="1604228166964">
<screen x="0" y="0" width="1707" height="920" />
</state>
- <state width="498" height="446" key="SwitcherDM/0.0.1707.920@0.0.1707.920" timestamp="1604161134101" />
+ <state width="498" height="446" key="SwitcherDM/0.0.1707.920@0.0.1707.920" timestamp="1604228166964" />
<state x="655" y="270" width="816" height="530" key="Vcs.Push.Dialog.v2" timestamp="1595521362224">
<screen x="0" y="0" width="1920" height="1160" />
</state>
config('SLEEPSCREEN', 15);
config('VIDEOPLAYER_DEVICE', 'bureau');
config('HIDEMASK_TIMEOUT', 250);
+//
+config('TVPLAYER', 'shield');
+config('VIDEOPLAYER', 'shield');
+
if (DISPLAYINTERFACE) {
$c = bureau();
function chambre($additionnalfavorites = array())
{
$favorites = [
- ['type' => 'light', 'scene' => 'home/aulit', 'label' => 'Au lit â\98\85'],
+ ['type' => 'light', 'scene' => 'home/aulit', 'label' => 'Au lit â\98½'],
['type' => 'light', 'scene' => 'chambre/matin', 'label' => 'Matin ★'],
+ ['type' => 'light', 'scene' => 'home/aulitoff', 'label' => 'Eteindre ☽'],
['type' => 'light', 'scene' => 'chambre/bed', 'label' => 'Au lit'],
['type' => 'light', 'scene' => 'chambre/sleep', 'label' => 'Nuit'],
['type' => 'light', 'scene' => 'chambre/moon', 'label' => 'Clair de lune'],
['type' => 'function', 'function' => 'chambreAuto', 'args' => [true]],
],
'chambre/bed' => [
+ ['type' => 'scene', 'scene' => 'chambre/bedbase'],
+ ['type' => 'scene', 'scene' => 'chambre/nightlights'],
+ ['type' => 'scene', 'scene' => 'sdb/nuit'],
+ ['type' => 'scene', 'scene' => 'chambre/cheminee'],
+ ],
+ 'chambre/bedbase' => [
['type' => 'function', 'function' => 'chambreAuto', 'args' => [false]],
['type' => 'nightmode', 'mode' => '1'],
['type' => 'ecomode', 'mode' => '1'],
['type' => 'state', 'key' => 'chambre', 'value' => 0],
['type' => 'scene', 'scene' => 'chambre/rideaux/close'],
['type' => 'insteon', 'command' => '0?1131=I=0=0'],
- ['type' => 'scene', 'scene' => 'chambre/nightlights'],
- ['type' => 'scene', 'scene' => 'sdb/nuit'],
['type' => 'function', 'function' => 'bedbrightness', 'args' => [$bedlowscreenbrightness]],
- ['type' => 'scene', 'scene' => 'chambre/cheminee'],
['type' => 'scene', 'scene' => 'chambre/planetarium/on'], // Planétarium on
['type' => 'scene', 'scene' => 'chambre/deshumidificateur/off'],
['type' => 'scene', 'scene' => 'chambre/raspberry/off'],
['type' => 'function', 'function' => 'bedbrightness', 'args' => [255]],
['type' => 'scene', 'scene' => 'chambre/cheminee/cold'],
],
+ 'chambre/sleepoff' => [
+ ['type' => 'scene', 'scene' => 'chambre/bedbase'],
+ ['type' => 'scene', 'scene' => 'sdb/off'],
+ ['type' => 'scene', 'scene' => 'sdb/off'],
+ ],
'chambre/sleepbase' => [
['type' => 'nightmode', 'mode' => '1'],
['type' => 'ecomode', 'mode' => '1'],
['type' => 'domoticz', 'device' => '392', 'command' => true, 'priority' => true],
],
'home/aulit' => [
+ ['type' => 'scene', 'scene' => 'chambre/aulitbase'],
+ ['type' => 'scene', 'scene' => 'chambre/bed'],
+ ],
+ 'home/aulitoff'=>[
+ ['type' => 'scene', 'scene' => 'chambre/aulitbase'],
+ ['type' => 'scene', 'scene' => 'chambre/off'],
+ ['type' => 'scene', 'scene' => 'sdb/off'],
+ ],
+ 'home/aulitbase' => [
['type' => 'nightmode', 'mode' => '1'],
['type' => 'ecomode', 'mode' => '1'],
- ['type' => 'scene', 'scene' => 'chambre/bed'],
['type' => 'scene', 'scene' => 'bureau/off'],
['type' => 'scene', 'scene' => 'salon/off'],
['type' => 'scene', 'scene' => 'cuisine/off'],
['type' => 'scene', 'scene' => 'bureau/sleepPC'],
],
'bureau/media/play' => [
- ['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'],
+// ['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/screen/down' => [
['type' => 'domoticz', 'device' => '1', 'command' => true, 'priority' => true],
return $res;
}
-function shieldVLC($file)
+function shieldKodi($file)
{
shieldHome();
$url = 'smb://Share:dcfyjbcyckwydtgufjx@192.168.13.4/Share/' . $file;
_adb('shell am start', '-a android.intent.action.VIEW -d \'"' . $url . '"\' -n org.xbmc.kodi/.Splash');
}
+function shieldVLC($file)
+{
+ shieldHome();
+ $url = 'smb://Share:dcfyjbcyckwydtgufjx@192.168.13.4/Share/' . $file;
+ _adb('shell am start', '-a android.intent.action.VIEW -d \'"' . $url . '"\' -n org.videolan.vlc/.StartActivity');
+}
+
function shieldListApps()
{
shieldConnect();
shieldTv($_GET['replay'], 'replay');
} else if (isset($_GET['vlc'])) {
shieldVLC($_GET['vlc']);
+}else if (isset($_GET['kodi'])) {
+ shieldKodi($_GET['kodi']);
}
echo '</pre>';
\ No newline at end of file