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:
parent
1547c00363
commit
808fc3580f
@ -793,7 +793,7 @@ class ecobee_thermostat extends cora\crud {
|
|||||||
$ecobee_weather = $ecobee_thermostat['weather']['forecasts'][0];
|
$ecobee_weather = $ecobee_thermostat['weather']['forecasts'][0];
|
||||||
|
|
||||||
if(isset($ecobee_weather['dewpoint']) === true) {
|
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)
|
// 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) {
|
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) {
|
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) {
|
if(isset($ecobee_weather['temperature']) === true) {
|
||||||
$weather['temperature'] = $ecobee_weather['temperature'];
|
$weather['temperature'] = ($ecobee_weather['temperature'] / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($ecobee_weather['windBearing']) === true) {
|
if(isset($ecobee_weather['windBearing']) === true) {
|
||||||
|
@ -135,7 +135,7 @@ beestat.component.card.system.prototype.decorate_weather_ = function(parent) {
|
|||||||
.innerHTML(beestat.temperature({
|
.innerHTML(beestat.temperature({
|
||||||
'round': 0,
|
'round': 0,
|
||||||
'units': false,
|
'units': false,
|
||||||
'temperature': (thermostat.weather.temperature / 10)
|
'temperature': thermostat.weather.temperature
|
||||||
}));
|
}));
|
||||||
temperature_container.appendChild(temperature_whole_container);
|
temperature_container.appendChild(temperature_whole_container);
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ beestat.component.card.temperature_profiles.prototype.get_data_ = function() {
|
|||||||
'title': this.get_title_(),
|
'title': this.get_title_(),
|
||||||
'subtitle': this.get_subtitle_(),
|
'subtitle': this.get_subtitle_(),
|
||||||
'outdoor_temperature': beestat.temperature({
|
'outdoor_temperature': beestat.temperature({
|
||||||
'temperature': (thermostat.weather.temperature / 10),
|
'temperature': thermostat.weather.temperature,
|
||||||
'round': 0
|
'round': 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent)
|
|||||||
beestat.temperature({
|
beestat.temperature({
|
||||||
'round': 0,
|
'round': 0,
|
||||||
'units': true,
|
'units': true,
|
||||||
'temperature': (thermostat.weather.temperature / 10)
|
'temperature': thermostat.weather.temperature
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.style({
|
.style({
|
||||||
@ -143,7 +143,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent)
|
|||||||
beestat.temperature({
|
beestat.temperature({
|
||||||
'round': 0,
|
'round': 0,
|
||||||
'units': false,
|
'units': false,
|
||||||
'temperature': (thermostat.weather.temperature_low / 10)
|
'temperature': thermostat.weather.temperature_low
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.style({
|
.style({
|
||||||
@ -158,7 +158,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent)
|
|||||||
beestat.temperature({
|
beestat.temperature({
|
||||||
'round': 0,
|
'round': 0,
|
||||||
'units': false,
|
'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({
|
'value': beestat.temperature({
|
||||||
'round': 0,
|
'round': 0,
|
||||||
'units': true,
|
'units': true,
|
||||||
'temperature': (thermostat.weather.dew_point / 10)
|
'temperature': thermostat.weather.dew_point
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user