<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/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/balcon.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/balcon.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/chambre.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/chambre.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/cour.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/cour.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/cuisine.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/cuisine.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/entree.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/entree.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/lit.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/lit.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/litjerome.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/litjerome.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/litvincent.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/litvincent.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/music.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/music.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/salon.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/salon.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/sdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/sdb.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/wc.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/wc.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/js/cordova.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/cordova.js" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/js/home.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/home.js" 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/mediarasp.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/mediarasp.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/volume.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/volume.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1619637833459" duration="4578000" />
<workItem from="1619772786735" duration="1789000" />
<workItem from="1619795353855" duration="2088000" />
- <workItem from="1619802300800" duration="327000" />
- </task>
- <task id="LOCAL-00429" summary=".">
- <created>1610202214223</created>
- <option name="number" value="00429" />
- <option name="presentableId" value="LOCAL-00429" />
- <option name="project" value="LOCAL" />
- <updated>1610202214223</updated>
+ <workItem from="1619802300800" duration="355000" />
+ <workItem from="1619888463622" duration="1227000" />
+ <workItem from="1619952129836" duration="292000" />
+ <workItem from="1619952673812" duration="1313000" />
</task>
<task id="LOCAL-00430" summary=".">
<created>1610353505617</created>
<option name="project" value="LOCAL" />
<updated>1619798145186</updated>
</task>
- <option name="localTasksCounter" value="478" />
+ <task id="LOCAL-00478" summary=".">
+ <created>1619802642365</created>
+ <option name="number" value="00478" />
+ <option name="presentableId" value="LOCAL-00478" />
+ <option name="project" value="LOCAL" />
+ <updated>1619802642366</updated>
+ </task>
+ <option name="localTasksCounter" value="479" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
config('SQUEEZEBOX_PLAYER', 'Salon');
config('VOLUME', 60);
config('VOLUME_DEVICE', 'SqueezeboxPlayer');
+config('VOLUME_STEP',5);
config('HIDEMASK_TIMEOUT', 250);
if (DISPLAYINTERFACE) {
config('SQUEEZEBOX_PLAYER', 'Bureau');
config('VIDEOPLAYER', 'mediarasp');
config('VOLUME_DEVICE', 'harmony');
+config('VOLUME_STEP', 2);
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER', 'suncurve');
config('SLEEPSCREEN', 15);
include "default.php";
include ROOT . "/config/media.php";
- $nav = ['home', 'lights', 'music', 'media', 'remote', 'switch','fan', 'settings', 'alert', 'off'];
+ $nav = ['home', 'lights', 'music', 'media', 'remote', 'switch', 'fan', 'settings', 'alert', 'off'];
}
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER', 'weatherstation');
config('VOLUME_DEVICE', 'SqueezeboxPlayer');
+config('VOLUME_STEP',5);
config('HIDEMASK_TIMEOUT', 250);
config('THEME', '#5c4736');
config('ROOM', 'cour');
config('SQUEEZEBOX_PLAYER', 'Cuisine');
config('VOLUME', 60);
+config('VOLUME_STEP',5);
config('VOLUME_DEVICE', 'SqueezeboxPlayer');
config('HIDEMASK_TIMEOUT', 250);
config('THEME','#2e623b');
config('SQUEEZEBOX_PLAYER', 'Cuisine');
config('HIDEMASK_TIMEOUT', 250);
config('VOLUME_DEVICE', 'SqueezeboxPlayer');
+config('VOLUME_STEP',5);
config('THEME','#222222');
config('SLEEPSCREEN', 15);
config('SCREENSAVER_BRIGHTNESS', 100);
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER','weatherstation');
config('VOLUME_DEVICE', 'SqueezeboxPlayer');
+config('VOLUME_STEP',5);
config('HIDEMASK_TIMEOUT',250);
config('THEME','#000000');
config('VIDEOPLAYER', 'mediarasp-small');
config('TVPLAYER', 'mediarasp-small');
config('HIDEMASK_TIMEOUT', 250);
+config('VOLUME_STEP',5);
if (DISPLAYINTERFACE) {
if (!isset($shortcuts)) {
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER', 'weatherstation');
config('VOLUME_DEVICE', 'RaspberryPi');
+config('VOLUME_STEP',5);
config('HIDEMASK_TIMEOUT', 250);
config('THEME','#086d89');
config('SQUEEZEBOX_PLAYER', 'Lit Vincent');
config('SQUEEZEBOX_AMBIANCE_PLAYER', 'Chambre');
config('VOLUME_DEVICE', 'RaspberryPi');
+config('VOLUME_STEP',5);
config('SCREENSAVER_BRIGHTNESS', 'auto');
config('SLEEPTYPE', 'screensaver');
config('SCREENSAVER', 'weatherstation');
$shortcuts['music'] = [
- ['type' => 'volume', 'volume' => '3%', 'increase' => '+', 'label' => '<i class="fa fa-volume-up"></i>'],
- ['type' => 'volume', 'volume' => '3%', 'increase' => '-', 'label' => '<i class="fa fa-volume-down"></i>'],
+ ['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'],
config('VIDEOPLAYER', 'shield');
config('TVPLAYER', 'shield');
config('VOLUME_DEVICE', 'DenonAVR');
+config('VOLUME_STEP',2);
config('VIDEOPLAYER_DEVICE', 'salon');
config('HIDEMASK_TIMEOUT', 250);
config('THEME','#d0a25b');
config('TVPLAYER', 'mediarasp-small');
config('VOLUME', 60);
config('VOLUME_DEVICE', 'Squeezebox');
+config('VOLUME_STEP',5);
config('HIDEMASK_TIMEOUT',250);
config('THEME','#92475c');
config('ROOM', 'wc');
config('SQUEEZEBOX_PLAYER', 'WC');
config('VOLUME', 60);
+config('VOLUME_STEP',5);
config('VOLUME_DEVICE', 'SqueezeboxPlayer');
config('HIDEMASK_TIMEOUT',250);
} catch (e) {
console.log(e);
}
+
+ try {
+ document.addEventListener('volumedownbutton', volumeDown, false);
+ document.addEventListener('volumedownbutton', volumeUp, false);
+ } catch (e) {
+
+ }
}
\ No newline at end of file
}, 1000);
});
+function volumeDown(){
+
+ return false;
+}
+
+function volumeUp(){
+
+ return false;
+}
+
function remoteCmd(cmd) {
$.get('scripts/remotecmd.php?cmd=' + cmd);
_remoteCmd('pause', 'salon');
break;
case 'Clock_Wise':
- volume(2, '+');
+ volume(config('VOLUME_STEP'), '+');
break;
case 'Anti_Clock_Wise':
- volume(2, '-');
+ volume(config('VOLUME_STEP'), '-');
break;
case 'Tap':
squeezePlayByName('FIP', $squeezeboxPlayers['Salon']);
}
break;
case 'Clock_Wise':
- volume(2, '+');
+ volume(config('VOLUME_STEP'), '+');
break;
case 'Anti_Clock_Wise':
- volume(2, '-');
+ volume(config('VOLUME_STEP'), '-');
break;
case 'Tap':
squeezeResume();
}
if ($cmd == 'volume-up') {
- volume(5, '+');
+ volume(config('VOLUME_STEP'), '+');
return true;
} elseif ($cmd == 'volume-down') {
- volume(5, '-');
+ volume(config('VOLUME_STEP'), '-');
return true;
}
<?php
include "import.php";
-if (isset($_GET['volume'])) {
- if (!isset($_GET['increase'])) {
- $_GET['increase'] = '';
- }
- print_r(volume($_GET['volume'], $_GET['increase']));
+if (isset($_GET['action'])) {
+ if ($_GET['action'] === 'up') {
+ volume(config('VOLUME_STEP'), '+');
+ } else if ($_GET['action'] === 'down') {
+ volume(config('VOLUME_STEP'), '-');
+ }
+} elseif (isset($_GET['volume'])) {
+ if (!isset($_GET['increase'])) {
+ $_GET['increase'] = '';
+ }
+ print_r(volume($_GET['volume'], $_GET['increase']));
}
\ No newline at end of file