]> _ Git - tortuga-home.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jul 2023 07:27:19 +0000 (09:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jul 2023 07:27:19 +0000 (09:27 +0200)
.idea/workspace.xml
scripts/lib/weatherstation.php

index c13f405ae7873ce92bcf110ddd54f1983382a9f8..3696585337a4b38d66c080981606b97295283c3e 100644 (file)
@@ -6,8 +6,7 @@
   <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/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/lib/weatherstation.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/weatherstation.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
       <workItem from="1688295154056" duration="11039000" />
       <workItem from="1688414368761" duration="11417000" />
       <workItem from="1688478993471" duration="46036000" />
-      <workItem from="1688629879840" duration="1126000" />
+      <workItem from="1688629879840" duration="1305000" />
+      <workItem from="1688631283455" duration="69000" />
+      <workItem from="1688631448099" duration="605000" />
+      <workItem from="1688647175964" duration="439000" />
+      <workItem from="1688714739367" duration="44000" />
     </task>
     <task id="LOCAL-00502" summary=".">
       <created>1641726946298</created>
       <option name="project" value="LOCAL" />
       <updated>1687259667913</updated>
     </task>
-    <option name="localTasksCounter" value="557" />
+    <option name="localTasksCounter" value="558" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index c31d09c6fef5736ea270f252ac9e212b26e35cec..b2cf6f08930b64eab1f6874094935a5afce6a2ad 100644 (file)
@@ -15,8 +15,8 @@ function getWeather() {
        $weather = json_decode(file_get_contents($cache), true);
        $weather = $weather[0];
        $res['temp'] = round(($weather['Temperature']['Metric']['Value']/* + getState('airtemperature')*/));
-       $res['outdoor_temp'] = toNumber(haGetState('sensor.flower_power_balcon_air_temperature'), 1);
-       $res['outdoor_humidity'] = toNumber($weather['RelativeHumidity'], true);
+       $res['outdoor_temp'] = toNumber(haGetState('sensor.outdoor_meter_balcony_temperature'), 1);
+       $res['outdoor_humidity'] = toNumber(haGetState('sensor.outdoor_meter_balcony_humidity'), true);
        $res['outdoor_pressure'] = toNumber(haGetState('sensor.0x00158d000464c885_pressure'), true);
        $res['backyard_temp'] = toNumber(haGetState('sensor.0x00158d000464c885_temperature'), 1);
        $res['backyard_humidity'] = toNumber(haGetState('sensor.0x00158d000464c885_humidity'), true);