]> _ Git - tortuga-home.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 5 Jul 2023 07:21:22 +0000 (09:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 5 Jul 2023 07:21:22 +0000 (09:21 +0200)
.idea/workspace.xml
scripts/cron/cron.php
scripts/flowerpower.php [deleted file]
scripts/harmony.php [deleted file]

index 29fdf77eec3090a9437c32e0c5032e17ae65dd52..fdef2fdfe3180a8a3495e7a88674a8bf5e9fe16e 100644 (file)
@@ -6,10 +6,9 @@
   <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/homeassistant.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/homeassistant.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/lib/harmony.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/harmony.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/lib/homeassistant.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/homeassistant.php" 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$/scripts/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/flowerpower.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/harmony.php" beforeDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
       <workItem from="1687359859243" duration="1495000" />
       <workItem from="1688295154056" duration="11039000" />
       <workItem from="1688414368761" duration="11417000" />
-      <workItem from="1688478993471" duration="43245000" />
+      <workItem from="1688478993471" duration="44520000" />
     </task>
     <task id="LOCAL-00502" summary=".">
       <created>1641726946298</created>
       <option name="project" value="LOCAL" />
       <updated>1687259667913</updated>
     </task>
-    <option name="localTasksCounter" value="553" />
+    <option name="localTasksCounter" value="554" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index 4c2b3221626c507524eff058936e034a3d70c614..de1240f4144bd572217089c392fa5935db47803c 100644 (file)
@@ -34,7 +34,6 @@ function cronOneLoop($cronmin)
     }
     if ($cronmin % 15 == 0) {
         cronXPlanet($cronmin);
-        cronFlowerPower($cronmin);
         cronPodcasts($cronmin);
         cronMediaLibrary($cronmin);
         cronTmdb($cronmin);
@@ -147,12 +146,6 @@ function cronRooms($cronmin)
     }
 }
 
-function cronFlowerPower($cronmin)
-{
-    _logSection('Flower Power');
-    updateFlowerPower();
-}
-
 function cronMediaLibrary($cronmin)
 {
     global $directories;
diff --git a/scripts/flowerpower.php b/scripts/flowerpower.php
deleted file mode 100644 (file)
index bb74c8f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-require_once "import.php";
-
-updateFlowerPower();
\ No newline at end of file
diff --git a/scripts/harmony.php b/scripts/harmony.php
deleted file mode 100644 (file)
index 2549e72..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-require_once "import.php";
-header('Content-type: application/json');
-
-$res = array_merge(harmonyRequest('status'), harmonyRequest('commands'), harmonyRequest('activities'), harmonyRequest('devices'));
-
-foreach ($res['activities'] as $k => $activity) {
-    $res['activities'][$k] += harmonyRequest('activities/' . $activity['slug'] . '/commands');
-}
-
-foreach ($res['devices'] as $k => $device) {
-    $res['devices'][$k] += harmonyRequest('devices/' . $device['slug'] . '/commands');
-}
-echo json_encode($res);