<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$/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/lib/off.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/off.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/squeeze.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/squeeze.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/servers/logcat.php" beforeDir="false" afterPath="$PROJECT_DIR$/servers/logcat.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="Make" enabled="true" />
</method>
</configuration>
+ <configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true">
+ <option name="arquillianRunConfiguration">
+ <value>
+ <option name="containerStateName" value="" />
+ </value>
+ </option>
+ <option name="TEST_OBJECT" value="class" />
+ <method v="2">
+ <option name="Make" enabled="true" />
+ </method>
+ </configuration>
<configuration default="true" type="ArquillianTestNG" factoryName="">
<option name="arquillianRunConfiguration">
<value>
<workItem from="1611336541554" duration="1485000" />
<workItem from="1611428507149" duration="1044000" />
<workItem from="1611582691581" duration="2261000" />
- <workItem from="1611585304162" duration="1328000" />
- </task>
- <task id="LOCAL-00389" summary=".">
- <created>1605261980841</created>
- <option name="number" value="00389" />
- <option name="presentableId" value="LOCAL-00389" />
- <option name="project" value="LOCAL" />
- <updated>1605261980842</updated>
+ <workItem from="1611585304162" duration="1674000" />
+ <workItem from="1611609259944" duration="949000" />
+ <workItem from="1611653492674" duration="1501000" />
</task>
<task id="LOCAL-00390" summary=".">
<created>1605363332633</created>
<option name="project" value="LOCAL" />
<updated>1611585903596</updated>
</task>
- <option name="localTasksCounter" value="438" />
+ <task id="LOCAL-00438" summary=".">
+ <created>1611586910306</created>
+ <option name="number" value="00438" />
+ <option name="presentableId" value="LOCAL-00438" />
+ <option name="project" value="LOCAL" />
+ <updated>1611586910306</updated>
+ </task>
+ <option name="localTasksCounter" value="439" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
shieldConnect(true, $device['id']);
}
}
- if ($cronmin % 10 === 0) {
- setState('maskShieldSalonWakeup', '0');
- setState('maskShieldBureauWakeup', '0');
- }
//`curl 'http://192.168.13.60:9000/plugins/Extensions/settings/plugins/CastBridge/settings/basic.html?playerid=b8%3A27%3Aeb%3Af6%3A1d%3A30' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: fr-FR,en;q=0.5' --compressed -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: http://192.168.13.60:9000' -H 'Connection: keep-alive' -H 'Referer: http://192.168.13.60:9000/plugins/Extensions/settings/plugins/CastBridge/settings/basic.html?playerid=b8%3A27%3Aeb%3Af6%3A1d%3A30' -H 'Cookie: Squeezebox-player=b8%3A27%3Aeb%3Af6%3A1d%3A30; Squeezebox-enableHiDPI=1; Squeezebox-expandPlayerControl=true; Squeezebox-expanded-MY_MUSIC=0; Squeezebox-expanded-RADIO=1; Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; Squeezebox-expanded-FAVORITES=1; Squeezebox-expanded-PLUGINS=0; Squeezebox-playersettings=null; Squeezebox-advancedsettings=plugins/CastBridge/settings/basic.html%3F; Squeezebox-expanded-activePlugins=1; Squeezebox-expanded-inactivePlugins=1; Squeezebox-expanded-otherPlugins0=1' -H 'Upgrade-Insecure-Requests: 1' --data-raw 'saveSettings=1&useAJAX=0&page=PLUGIN_CASTBRIDGE&playerid=b8%3A27%3Aeb%3Af6%3A1d%3A30&player=b8%3A27%3Aeb%3Af6%3A1d%3A30&autorun=on&bin=squeeze2cast-armv6hf&opts=&debugs=&log_limit=-1&configfile=castbridge.xml&autosave=on&upnp_socket=%3F&xmlparams=1&prevseldevice=.common.&seldevice=.common.&codecs=aac%2Cogg%2Cops%2Cogf%2Cflc%2Calc%2Cwav%2Caif%2Cpcm%2Cmp3&sample_rate=96000&encode_mode=thru&encode_level=&encode_bitrate=&encode_rate=&encode_size=&server=%3F&enabled=1&remove_timeout=0&volume_on_play=1&media_volume=50&send_metadata=1&send_coverart=1&enabled.79a3f5f078d67e3b25a6b3dedc624e18=1'`;
//`curl 'http://192.168.13.60:9000/plugins/Extensions/settings/plugins/CastBridge/settings/basic.html?playerid=b8%3A27%3Aeb%3Af6%3A1d%3A30' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: fr-FR,en;q=0.5' --compressed -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: http://192.168.13.60:9000' -H 'Connection: keep-alive' -H 'Referer: http://192.168.13.60:9000/plugins/Extensions/settings/plugins/CastBridge/settings/basic.html' -H 'Cookie: Squeezebox-player=b8%3A27%3Aeb%3Af6%3A1d%3A30; Squeezebox-enableHiDPI=1; Squeezebox-expandPlayerControl=true; Squeezebox-expanded-MY_MUSIC=0; Squeezebox-expanded-RADIO=1; Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; Squeezebox-expanded-FAVORITES=1; Squeezebox-expanded-PLUGINS=0; Squeezebox-playersettings=settings/player/basic.html%3F; Squeezebox-advancedsettings=plugins/CastBridge/settings/basic.html%3F; Squeezebox-expanded-activePlugins=1; Squeezebox-expanded-inactivePlugins=1; Squeezebox-expanded-otherPlugins0=1' -H 'Upgrade-Insecure-Requests: 1' --data-raw 'saveSettings=1&useAJAX=0&page=PLUGIN_CASTBRIDGE&playerid=b8%3A27%3Aeb%3Af6%3A1d%3A30&player=b8%3A27%3Aeb%3Af6%3A1d%3A30&autorun=on&bin=squeeze2cast-armv6hf&opts=&debugs=&log_limit=-1&configfile=castbridge.xml&autosave=on&upnp_socket=%3F&xmlparams=1&prevseldevice=.common.&seldevice=.common.&codecs=aac%2Cogg%2Cops%2Cogf%2Cflc%2Calc%2Cwav%2Caif%2Cpcm%2Cmp3&sample_rate=96000&encode_mode=thru&encode_level=&encode_bitrate=&encode_rate=&encode_size=&server=%3F&enabled=1&remove_timeout=0&volume_on_play=1&media_volume=50&send_metadata=1&send_coverart=1&enabled.79a3f5f078d67e3b25a6b3dedc624e18=1&enabled.c4f32d227235313d8c59eff43a01350c=1'`;
break;
}
} else if ($_GET['device'] == 1478) {
- // Cube
+ // Cube bureau
switch ($_GET['state']) {
case 'Shake':
execScene('home/alert');
function offBureau()
{
stopHarmony();
+ execScene('bureau/media/stop');
shieldKillAll('bureau');
shieldSleep('bureau');
}
function shieldRunAppAndBackHome($app, $device = null, $waitBeforeBack = 1, $backToSleep = true)
{
-
if (shieldIsAwake($device)) {
$backToSleep = false;
+ } else {
+ shieldWakeup($device);
}
if ($backToSleep) {
$d = getDevice($device);
{
$c = _adbcmd($command, $params, $device);
$output = `$c`;
- echo $c . ' :: ' . $output . "\n";
+ // echo $c . ' :: ' . $output . "\n";
return $output;
}
}
if ($player == $squeezeboxPlayers['Salon']) {
- setState('maskShieldSalonWakeup', '1');
+ setState('maskShieldSalonWakeup', time() + 15);
shieldRunAppAndBackHome('sbplayer', 'salon', 1, false);
} else if ($player == $squeezeboxPlayers['Salle de bains']) {
execScene('sdb/ampli/on');
} else if ($player == $squeezeboxPlayers['Bureau']) {
+ setState('maskShieldBureauWakeup', time() + 15);
harmonyActivity('musique');
- setState('maskShieldBureauWakeup', '1');
shieldRunAppAndBackHome('sbplayer', 'bureau', 1, false);
} else if ($player == $squeezeboxPlayers['Chambre']) {
denon(true);
if (!in_array('stop', $requests) || isset($_GET['name'])) {
if ($_GET['player'] == 'Salon') {
- setState('maskShieldSalonWakeup', '1');
+ setState('maskShieldSalonWakeup', time()+15);
print_r(harmonyActivity("musique"));
} elseif ($_GET['player'] == 'Salle de bains') {
execScene('sdb/ampli/on');
} else if ($_GET['player'] === 'Bureau') {
- setState('maskShieldBureauWakeup', '1');
+ setState('maskShieldBureauWakeup', time()+15);
print_r(harmonyActivity("musique"));
}
setPlaying('squeezebox');
$state = 'maskShieldBureauWakeup';
$squeezePlayer = 'Bureau';
}
- if (getState($state, '0') == '1') {
- setState($state, '0');
- } else {
- if (getSqueezePlayerStatus($squeezePlayer) <= 0) {
- shieldRunActivity($device);
- }
+ if (getState($state, '0') < time() && getSqueezePlayerStatus($squeezePlayer) <= 0) {
+ shieldRunActivity($device);
}
},
'WindowManager: handleComboKeys keyCode: 25, keyAction: 1' => function () use ($device) {