mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Updated thermostat weather to return values in tenths.
This commit is contained in:
parent
3483873443
commit
9992abc592
@ -754,7 +754,7 @@ class ecobee_thermostat extends cora\crud {
|
||||
$ecobee_weather = $ecobee_thermostat['json_weather']['forecasts'][0];
|
||||
|
||||
if(isset($ecobee_weather['dewpoint']) === true) {
|
||||
$weather['dew_point'] = ($ecobee_weather['dewpoint'] / 10);
|
||||
$weather['dew_point'] = $ecobee_weather['dewpoint'];
|
||||
}
|
||||
|
||||
// Returned in MB (divide by 33.864 to get inHg)
|
||||
@ -767,15 +767,15 @@ class ecobee_thermostat extends cora\crud {
|
||||
}
|
||||
|
||||
if(isset($ecobee_weather['tempHigh']) === true) {
|
||||
$weather['temperature_high'] = ($ecobee_weather['tempHigh'] / 10);
|
||||
$weather['temperature_high'] = $ecobee_weather['tempHigh'];
|
||||
}
|
||||
|
||||
if(isset($ecobee_weather['tempLow']) === true) {
|
||||
$weather['temperature_low'] = ($ecobee_weather['tempLow'] / 10);
|
||||
$weather['temperature_low'] = $ecobee_weather['tempLow'];
|
||||
}
|
||||
|
||||
if(isset($ecobee_weather['temperature']) === true) {
|
||||
$weather['temperature'] = ($ecobee_weather['temperature'] / 10);
|
||||
$weather['temperature'] = $ecobee_weather['temperature'];
|
||||
}
|
||||
|
||||
if(isset($ecobee_weather['windBearing']) === true) {
|
||||
|
@ -122,7 +122,7 @@ beestat.component.card.system.prototype.decorate_weather_ = function(parent) {
|
||||
.innerHTML(beestat.temperature({
|
||||
'round': 0,
|
||||
'units': false,
|
||||
'temperature': thermostat.weather.temperature
|
||||
'temperature': (thermostat.weather.temperature / 10)
|
||||
}));
|
||||
temperature_container.appendChild(temperature_whole_container);
|
||||
|
||||
|
@ -114,7 +114,7 @@ beestat.component.modal.weather.prototype.decorate_contents_ = function(parent)
|
||||
beestat.temperature({
|
||||
'round': 0,
|
||||
'units': true,
|
||||
'temperature': thermostat.weather.temperature
|
||||
'temperature': (thermostat.weather.temperature / 10)
|
||||
})
|
||||
)
|
||||
.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
|
||||
'temperature': (thermostat.weather.temperature_low / 10)
|
||||
})
|
||||
)
|
||||
.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
|
||||
'temperature': (thermostat.weather.temperature_high / 10)
|
||||
})
|
||||
)
|
||||
);
|
||||
@ -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
|
||||
'temperature': (thermostat.weather.dew_point / 10)
|
||||
})
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user