]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Thu, 5 Sep 2019 08:24:33 +0000 (10:24 +0200)
committerVincent <vincent@enhydra.fr>
Thu, 5 Sep 2019 08:24:33 +0000 (10:24 +0200)
.idea/workspace.xml
scripts/cron/cron.php
scripts/lib/medialibrary.php

index 2342c82c10e889065b4b7c78d53a52815f2d8b13..a65b83bef3a9c8909ef6be5b3f7eefcf53b068cd 100644 (file)
@@ -3,7 +3,8 @@
   <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/insteon.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/insteon.php" 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/lib/medialibrary.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/medialibrary.php" afterDir="false" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
       <workItem from="1567261528772" duration="609000" />
       <workItem from="1567408023339" duration="2511000" />
       <workItem from="1567413752073" duration="11664000" />
-      <workItem from="1567582030869" duration="2806000" />
-    </task>
-    <task id="LOCAL-00176" summary=".">
-      <created>1551259715635</created>
-      <option name="number" value="00176" />
-      <option name="presentableId" value="LOCAL-00176" />
-      <option name="project" value="LOCAL" />
-      <updated>1551259715635</updated>
+      <workItem from="1567582030869" duration="3411000" />
+      <workItem from="1567626187111" duration="1366000" />
+      <workItem from="1567667112123" duration="599000" />
+      <workItem from="1567671316880" duration="496000" />
     </task>
     <task id="LOCAL-00177" summary=".">
       <created>1551259945800</created>
       <option name="project" value="LOCAL" />
       <updated>1567584398822</updated>
     </task>
-    <option name="localTasksCounter" value="225" />
+    <task id="LOCAL-00225" summary=".">
+      <created>1567584869430</created>
+      <option name="number" value="00225" />
+      <option name="presentableId" value="LOCAL-00225" />
+      <option name="project" value="LOCAL" />
+      <updated>1567584869431</updated>
+    </task>
+    <option name="localTasksCounter" value="226" />
     <servers />
   </component>
   <component name="TodoView">
index 8a6e7ca6737eb4049b8030cee612700b20c4e8f8..aa422df8ed4d1dc9df22d2b6eeba0db031e6aa2c 100644 (file)
@@ -38,7 +38,8 @@ function cronOneLoop($cronmin)
     cronHeartbeat($cronmin);
 }
 
-function cronInsteon($cronmin){
+function cronInsteon($cronmin)
+{
     insteonCommand('knock');
 }
 
@@ -54,9 +55,7 @@ function cronEcoMode($cronmin)
 
 function cronTranscode($cronmin)
 {
-    if (getState('device_avion_awake') === '1') {
-        transcodeOneVideo();
-    }
+    httpRequest('https://home.tortuga.enhydra.fr/scripts/transcode.php','get',[],null,10,true);
 }
 
 function cronRooms($cronmin)
index 79dbd715adc8c004927050e89490e180054e260f..5720baea7a8c47e153353f9fe60e5ad567924dc8 100644 (file)
@@ -134,6 +134,13 @@ function transcodeOneVideo()
 
         set_time_limit(0);
         ignore_user_abort(true);
+
+        $hour = intval(date('H'));
+        if ($hour > 12 && $hour < 20) {
+            wakeupPC('avion');
+            sleep(5);
+        }
+
         $cmd = 'C:\Scripts\convertvideo.bat "' . nasToAvion($item) . '" "' . nasToAvion($to) . '" ' . $item->getExtension();
         print_r(sshCommand($cmd, 'avion'));
         return;