From: Vincent Vanwaelscappel Date: Fri, 7 Jul 2023 07:27:19 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d0398aca88abb58a00fc41956e6ed86590af029c;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c13f405..3696585 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,8 +6,7 @@ - - + diff --git a/scripts/lib/weatherstation.php b/scripts/lib/weatherstation.php index c31d09c..b2cf6f0 100644 --- a/scripts/lib/weatherstation.php +++ b/scripts/lib/weatherstation.php @@ -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);