mirror of
https://github.com/beestat/app.git
synced 2026-05-13 10:52:29 -04:00
Glenwood updates
This commit is contained in:
+6
-5
@@ -1222,6 +1222,7 @@ class runtime extends cora\api {
|
||||
date(max(runtime_thermostat.timestamp)) as end_date,
|
||||
json_unquote(user.settings->'$.glenwood_name') as glenwood_name,
|
||||
json_unquote(user.settings->'$.glenwood_unit') as glenwood_unit,
|
||||
convert_tz(json_unquote(user.settings->'$.glenwood_enrolled_at'), '+00:00', 'America/New_York') as glenwood_enrolled_at,
|
||||
ecobee_thermostat.identifier as thermostat_serial_number,
|
||||
thermostat.name as thermostat_name,
|
||||
round(avg(runtime_thermostat.outdoor_temperature) / 10, 1) as average_outdoor_temperature,
|
||||
@@ -1256,9 +1257,7 @@ class runtime extends cora\api {
|
||||
user.user_id,
|
||||
glenwood_thermostat_ids.thermostat_id
|
||||
order by
|
||||
glenwood_name,
|
||||
glenwood_unit,
|
||||
thermostat_serial_number
|
||||
glenwood_unit
|
||||
";
|
||||
|
||||
$result = $this->database->query($query);
|
||||
@@ -1271,9 +1270,10 @@ class runtime extends cora\api {
|
||||
'Name',
|
||||
'Unit #',
|
||||
'Serial #',
|
||||
'Enrolled At',
|
||||
'Thermostat Name',
|
||||
'Average Outdoor Temp (°F)',
|
||||
'Average Indoor Temp (°F)',
|
||||
'Average Outdoor Temp (F)',
|
||||
'Average Indoor Temp (F)',
|
||||
'Heat 1 Runtime (min)',
|
||||
'Heat 2 Runtime (min)',
|
||||
'Auxiliary Heat Runtime (min)',
|
||||
@@ -1291,6 +1291,7 @@ class runtime extends cora\api {
|
||||
$row['glenwood_name'],
|
||||
$row['glenwood_unit'],
|
||||
$row['thermostat_serial_number'],
|
||||
$row['glenwood_enrolled_at'],
|
||||
$row['thermostat_name'],
|
||||
$row['average_outdoor_temperature'],
|
||||
$row['average_indoor_temperature'],
|
||||
|
||||
Reference in New Issue
Block a user