1
0
mirror of https://github.com/beestat/app.git synced 2025-05-23 18:04:14 -04:00

Fixed degree days off by a factor of 10

This commit is contained in:
Jon Ziebell 2023-11-21 22:56:56 -05:00
parent 6e161bcd09
commit 9b40c81b85
2 changed files with 4 additions and 2 deletions

View File

@ -88,6 +88,8 @@ class runtime_thermostat_summary extends cora\crud {
$runtime_thermostat_summary['min_outdoor_temperature'] /= 10;
$runtime_thermostat_summary['max_outdoor_temperature'] /= 10;
$runtime_thermostat_summary['avg_indoor_temperature'] /= 10;
$runtime_thermostat_summary['sum_heating_degree_days'] /= 10;
$runtime_thermostat_summary['sum_cooling_degree_days'] /= 10;
}
return $runtime_thermostat_summaries;

View File

@ -323,12 +323,12 @@ beestat.component.chart.runtime_thermostat_summary.prototype.get_options_tooltip
case 'sum_heating_degree_days':
label = beestat.series.sum_heating_degree_days.name;
color = point.series.color;
value = Math.round(values.sum_heating_degree_days).toLocaleString();
value = values.sum_heating_degree_days.toFixed(1).toLocaleString();
break;
case 'sum_cooling_degree_days':
label = beestat.series.sum_cooling_degree_days.name;
color = point.series.color;
value = Math.round(values.sum_cooling_degree_days).toLocaleString();
value = values.sum_cooling_degree_days.toFixed(1).toLocaleString();
break;
default:
label = beestat.series[point.series.name].name;