<project version="4">
<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
+ <change afterPath="$PROJECT_DIR$/scripts/setstate.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/.htaccess" beforeDir="false" afterPath="$PROJECT_DIR$/.htaccess" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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$/js/jquery.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/jquery.min.js" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/weatherstation.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/weatherstation.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/style/weatherstation.css" beforeDir="false" afterPath="$PROJECT_DIR$/style/weatherstation.css" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/style/weatherstation.less" beforeDir="false" afterPath="$PROJECT_DIR$/style/weatherstation.less" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/state.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/state.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="1620155832676" duration="3040000" />
<workItem from="1620387281761" duration="3893000" />
<workItem from="1620391230238" duration="8835000" />
- <workItem from="1620565702683" duration="5649000" />
- </task>
- <task id="LOCAL-00433" summary=".">
- <created>1610528834225</created>
- <option name="number" value="00433" />
- <option name="presentableId" value="LOCAL-00433" />
- <option name="project" value="LOCAL" />
- <updated>1610528834226</updated>
+ <workItem from="1620565702683" duration="6590000" />
+ <workItem from="1621059599606" duration="1181000" />
</task>
<task id="LOCAL-00434" summary=".">
<created>1610702549931</created>
<option name="project" value="LOCAL" />
<updated>1620207485516</updated>
</task>
- <option name="localTasksCounter" value="482" />
+ <task id="LOCAL-00482" summary=".">
+ <created>1620572516162</created>
+ <option name="number" value="00482" />
+ <option name="presentableId" value="LOCAL-00482" />
+ <option name="project" value="LOCAL" />
+ <updated>1620572516163</updated>
+ </task>
+ <option name="localTasksCounter" value="483" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
var videoPlaying = false;
var lastOffScreen = 0;
var maskRemoteShort = false;
+var power = false;
$(function () {
console.log('main jquery ready');
runSSHQueue();
}, 1500);
+ setInterval(function () {
+ checkPower();
+ }, 60000);
+ checkPower();
+
console.log('menu init');
menu = new MmenuLight(
document.querySelector("#mainnav")
});
-function volumeDown() {
+function checkPower() {
+ $.ajax('scripts/getstate.php?key=' + CONFIG.ROOM + '_power&default=0', function (data) {
+ power = (data == 1);
+ });
+}
- return false;
+function volumeDown() {
+ $.get('scripts/volume.php?action=down');
}
function volumeUp() {
-
- return false;
+ $.get('scripts/volume.php?action=up');
}
if ($('main section:visible').data('section') === 'remote') {
return;
}
+ if(androidApp && !power){
+ return;
+ }
if (!$(".screensaver").is(':visible')) {
updateScreenSaver(true);