diff --git a/api/ecobee_thermostat.php b/api/ecobee_thermostat.php index df18bca..54d2626 100644 --- a/api/ecobee_thermostat.php +++ b/api/ecobee_thermostat.php @@ -793,7 +793,7 @@ class ecobee_thermostat extends cora\crud { $ecobee_weather = $ecobee_thermostat['weather']['forecasts'][0]; if(isset($ecobee_weather['dewpoint']) === true) { - $weather['dew_point'] = $ecobee_weather['dewpoint']; + $weather['dew_point'] = ($ecobee_weather['dewpoint'] / 10); } // Returned in MB (divide by 33.864 to get inHg) @@ -806,15 +806,15 @@ class ecobee_thermostat extends cora\crud { } if(isset($ecobee_weather['tempHigh']) === true) { - $weather['temperature_high'] = $ecobee_weather['tempHigh']; + $weather['temperature_high'] = ($ecobee_weather['tempHigh'] / 10); } if(isset($ecobee_weather['tempLow']) === true) { - $weather['temperature_low'] = $ecobee_weather['tempLow']; + $weather['temperature_low'] = ($ecobee_weather['tempLow'] / 10); } if(isset($ecobee_weather['temperature']) === true) { - $weather['temperature'] = $ecobee_weather['temperature']; + $weather['temperature'] = ($ecobee_weather['temperature'] / 10); } if(isset($ecobee_weather['windBearing']) === true) { diff --git a/js/component/card/system.js b/js/component/card/system.js index 191630d..dfad10a 100644 --- a/js/component/card/system.js +++ b/js/component/card/system.js @@ -135,7 +135,7 @@ beestat.component.card.system.prototype.decorate_weather_ = function(parent) { .innerHTML(beestat.temperature({ 'round': 0, 'units': false, - 'temperature': (thermostat.weather.temperature / 10) + 'temperature': thermostat.weather.temperature })); temperature_container.appendChild(temperature_whole_container); diff --git a/js/component/card/temperature_profiles.js b/js/component/card/temperature_profiles.js index cbf6885..3d7590b 100644 --- a/js/component/card/temperature_profiles.js +++ b/js/component/card/temperature_profiles.js @@ -55,7 +55,7 @@ beestat.component.card.temperature_profiles.prototype.get_data_ = function() { 'title': this.get_title_(), 'subtitle': this.get_subtitle_(), 'outdoor_temperature': beestat.temperature({ - 'temperature': (thermostat.weather.temperature / 10), + 'temperature': thermostat.weather.temperature, 'round': 0 }) } diff --git a/js/component/modal/weather.js b/js/component/modal/weather.js index 878e840..04f3069 100755 --- a/js/component/modal/weather.js +++ b/js/component/modal/weather.js @@ -114,7 +114,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent) beestat.temperature({ 'round': 0, 'units': true, - 'temperature': (thermostat.weather.temperature / 10) + 'temperature': thermostat.weather.temperature }) ) .style({ @@ -143,7 +143,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent) beestat.temperature({ 'round': 0, 'units': false, - 'temperature': (thermostat.weather.temperature_low / 10) + 'temperature': thermostat.weather.temperature_low }) ) .style({ @@ -158,7 +158,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent) beestat.temperature({ 'round': 0, 'units': false, - 'temperature': (thermostat.weather.temperature_high / 10) + 'temperature': thermostat.weather.temperature_high }) ) ); @@ -204,7 +204,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent) 'value': beestat.temperature({ 'round': 0, 'units': true, - 'temperature': (thermostat.weather.dew_point / 10) + 'temperature': thermostat.weather.dew_point }) }, {