diff --git a/api/runtime_thermostat_summary.php b/api/runtime_thermostat_summary.php index e37adee..3036595 100755 --- a/api/runtime_thermostat_summary.php +++ b/api/runtime_thermostat_summary.php @@ -247,7 +247,7 @@ class runtime_thermostat_summary extends cora\crud { 'sum_dehumidifier' => 0, 'sum_ventilator' => 0, 'sum_economizer' => 0, - 'sum_degree_days' => [], + // 'sum_degree_days' => [], 'avg_outdoor_temperature' => [], 'avg_outdoor_humidity' => [], 'avg_indoor_temperature' => [], @@ -285,7 +285,7 @@ class runtime_thermostat_summary extends cora\crud { if ($runtime_thermostat['outdoor_temperature'] !== null) { $data[$date]['avg_outdoor_temperature'][] = $runtime_thermostat['outdoor_temperature']; - $data[$date]['sum_degree_days'][] = $runtime_thermostat['outdoor_temperature']; + // $data[$date]['sum_degree_days'][] = $runtime_thermostat['outdoor_temperature']; } if ($runtime_thermostat['outdoor_humidity'] !== null) { $data[$date]['avg_outdoor_humidity'][] = $runtime_thermostat['outdoor_humidity']; @@ -300,7 +300,7 @@ class runtime_thermostat_summary extends cora\crud { // Write to the database. foreach($data as $date => &$row) { - $row['sum_degree_days'] = (array_mean($row['sum_degree_days']) / 10) - $degree_days_base_temperature; + // $row['sum_degree_days'] = (array_mean($row['sum_degree_days']) / 10) - $degree_days_base_temperature; $row['avg_outdoor_temperature'] = round(array_sum($row['avg_outdoor_temperature']) / count($row['avg_outdoor_temperature'])); $row['avg_outdoor_humidity'] = round(array_sum($row['avg_outdoor_humidity']) / count($row['avg_outdoor_humidity'])); $row['avg_indoor_temperature'] = round(array_sum($row['avg_indoor_temperature']) / count($row['avg_indoor_temperature']));