<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$/scripts/lib/tmdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/tmdb.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/chambre.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/chambre.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/music.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/music.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/redis.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/redis.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1608294874717" duration="62000" />
<workItem from="1608294975826" duration="1188000" />
<workItem from="1609367639356" duration="870000" />
- <workItem from="1609595112361" duration="2602000" />
- </task>
- <task id="LOCAL-00379" summary=".">
- <created>1605092224515</created>
- <option name="number" value="00379" />
- <option name="presentableId" value="LOCAL-00379" />
- <option name="project" value="LOCAL" />
- <updated>1605092224515</updated>
+ <workItem from="1609595112361" duration="3201000" />
+ <workItem from="1609698147260" duration="38000" />
+ <workItem from="1609950754201" duration="3352000" />
+ <workItem from="1610050680817" duration="1480000" />
</task>
<task id="LOCAL-00380" summary=".">
<created>1605093966322</created>
<option name="project" value="LOCAL" />
<updated>1609675360474</updated>
</task>
- <option name="localTasksCounter" value="428" />
+ <task id="LOCAL-00428" summary=".">
+ <created>1609681610454</created>
+ <option name="number" value="00428" />
+ <option name="presentableId" value="LOCAL-00428" />
+ <option name="project" value="LOCAL" />
+ <updated>1609681610454</updated>
+ </task>
+ <option name="localTasksCounter" value="429" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
config('SCREENSAVER_BRIGHTNESS', 100);
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER', 'weatherstation');
-config('VOLUME_DEVICE', 'RaspberryPi:lit');
+config('VOLUME_DEVICE', 'SqueezeboxPlayer');
config('HIDEMASK_TIMEOUT', 250);
-config('THEME','#5c4736');
+config('THEME', '#5c4736');
if (DISPLAYINTERFACE) {
if (!isset($shortcuts)) {
$favoriteslights = $c['favorites'];
include "default.php";
- $nav = ['home', 'lights', 'music','remote', 'coffee', 'switch', 'settings', 'alert', 'off'];
+ $nav = ['home', 'lights', 'music', 'remote', 'coffee', 'switch', 'settings', 'alert', 'off'];
}
\ No newline at end of file
squeezeFavorites(connectRedis()->igbget('squeezebox_favorites'), $shortcuts);
profile('Got Music favorites', __FILE__, __LINE__);
$podcasts = connectRedis()->igbget('squeezebox_podcasts');
-podcastDir($podcasts, 'Podcasts', 'podcasts', $shortcuts);
-profile('Got podcasts', __FILE__, __LINE__);
+//podcastDir($podcasts, 'Podcasts', 'podcasts', $shortcuts);
+//profile('Got podcasts', __FILE__, __LINE__);
function squeezeFavorites($favorites, &$shortcuts)
{
ob_end_clean();
$res = getEcoMode();
+
if (!$res && in_array(config('DEVICE'), ['bureau', 'bureausun'])) {
- $res = getDomoticzDeviceStatus(391) === 'Closed';
+ $res = getDomoticzDeviceStatus(391) === 'Closed' ? '1' : '0';
}
die($res);
function getEcoMode()
{
- $res = getState('ecomode');
+ $res = getState('ecomode','0');
if ($res == '0' && getState('night') == '1') {
$res = '1';
}
- return $res;
+ return (string)$res;
}
\ No newline at end of file
extends Predis\Command\StringSet
{
- protected function filterArguments(Array $arguments)
+ protected function filterArguments(array $arguments)
{
$arguments[1] = serialize($arguments[1]);
return $arguments;
extends Predis\Command\StringSetExpire
{
- protected function filterArguments(Array $arguments)
+ protected function filterArguments(array $arguments)
{
$arguments[2] = serialize($arguments[2]);
return $arguments;
if (!isset($redis)) {
$redis = getRedisClient();
-
}
return $redis;
}
// Create a dispatcher loop instance and attach a bunch of callbacks.
$dispatcher = new Predis\PubSub\DispatcherLoop($pubsub);
- $events = new class($callback)
- {
+ $events = new class($callback) {
protected $_callback;
protected $_running = false;