]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Mon, 12 Oct 2020 11:18:23 +0000 (13:18 +0200)
committerVincent <vincent@enhydra.fr>
Mon, 12 Oct 2020 11:18:23 +0000 (13:18 +0200)
.idea/workspace.xml
scripts/denon.php
scripts/lib/denon.php

index aabc8db6df144e78ecb5062f57c66fca69b89adc..2971d033cfe8b68d83cdf194e7163d08fb11547d 100644 (file)
@@ -2,12 +2,9 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
-      <change afterPath="$PROJECT_DIR$/scripts/denon.php" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/scripts/lib/denon.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/lib/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.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/squeezebox.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/squeezebox.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/denon.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/denon.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/lib/denon.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/denon.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="1599927557113" duration="2000" />
       <workItem from="1600851074183" duration="826000" />
       <workItem from="1602007969304" duration="1163000" />
-      <workItem from="1602145835697" duration="1869000" />
-    </task>
-    <task id="LOCAL-00296" summary=".">
-      <created>1581445254182</created>
-      <option name="number" value="00296" />
-      <option name="presentableId" value="LOCAL-00296" />
-      <option name="project" value="LOCAL" />
-      <updated>1581445254182</updated>
+      <workItem from="1602145835697" duration="1903000" />
+      <workItem from="1602248242424" duration="359000" />
+      <workItem from="1602501229079" duration="114000" />
     </task>
     <task id="LOCAL-00297" summary=".">
       <created>1581497112479</created>
       <option name="project" value="LOCAL" />
       <updated>1602145314496</updated>
     </task>
-    <option name="localTasksCounter" value="345" />
+    <task id="LOCAL-00345" summary=".">
+      <created>1602171129423</created>
+      <option name="number" value="00345" />
+      <option name="presentableId" value="LOCAL-00345" />
+      <option name="project" value="LOCAL" />
+      <updated>1602171129423</updated>
+    </task>
+    <option name="localTasksCounter" value="346" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
       <screen x="0" y="0" width="2560" height="1040" />
     </state>
     <state x="872" y="161" key="#Plugins/0.0.2560.1040@0.0.2560.1040" timestamp="1596008801840" />
-    <state x="935" y="70" width="1170" height="972" key="CommitChangelistDialog2" timestamp="1602145287303">
-      <screen x="0" y="0" width="2560" height="1040" />
+    <state x="701" y="75" width="1170" height="972" key="CommitChangelistDialog2" timestamp="1602171117745">
+      <screen x="0" y="0" width="1920" height="1160" />
     </state>
-    <state x="701" y="75" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1598265694837" />
+    <state x="701" y="75" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1602171117745" />
     <state x="935" y="70" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1602145287303" />
     <state x="1114" y="443" key="NewPhpFileDialog" timestamp="1602146675515">
       <screen x="0" y="0" width="2560" height="1040" />
index 2510f37406c651c273c66f750b9a74679855a4d2..13cb6615e0e6ccefe84681433fb8452a08c29c51 100644 (file)
@@ -1,3 +1,3 @@
 <?php
 require_once "import.php";
-setState('denon', false);
\ No newline at end of file
+setState('denon', '0');
\ No newline at end of file
index c48a8617eb4ae535b2cc686e858420f86242a248..3b83f210bd211feabb967f261c1a73d8abf4cfa8 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 function denon($on = false)
 {
-    $state = getState('denon');
+    $state = getState('denon', '0') == '1';
     if ($state === $on) {
         return;
     }
-    sshCommand('/usr/local/bin/denon-toogle', 'lit', true, true);
-    setState('denon', $on);
+    sshCommand('/usr/local/bin/denon-toggle', 'lit', true, true);
+    setState('denon', $on ? '1' : '0');
 }
\ No newline at end of file