1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed a few places where temperature was stored wrong for #183

This commit is contained in:
Jon Ziebell 2021-02-20 21:41:25 -05:00
parent 1547c00363
commit 808fc3580f
4 changed files with 10 additions and 10 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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
})
}

View File

@ -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
})
},
{