1
0
mirror of https://github.com/beestat/app.git synced 2025-08-07 09:01:32 -04:00

Fixed auxiliary heat 1 and 2 metrics

This commit is contained in:
Jon Ziebell 2023-06-02 13:31:14 -04:00
parent 365aa75347
commit 8aa608c86a
3 changed files with 38 additions and 0 deletions

View File

@ -20,3 +20,21 @@ beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.child
beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.get_icon_ = function() {
return 'fire';
};
/**
* Get the title of this metric.
*
* @return {string} The title of this metric.
*/
beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.get_title_ = function() {
return beestat.series[this.child_metric_name_].name;
};
/**
* Get the color of this metric.
*
* @return {string} The color of this metric.
*/
beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.get_color_ = function() {
return beestat.series[this.child_metric_name_].color;
};

View File

@ -20,3 +20,21 @@ beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.child
beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.get_icon_ = function() {
return 'fire';
};
/**
* Get the title of this metric.
*
* @return {string} The title of this metric.
*/
beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.get_title_ = function() {
return beestat.series[this.child_metric_name_].name;
};
/**
* Get the color of this metric.
*
* @return {string} The color of this metric.
*/
beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.get_color_ = function() {
return beestat.series[this.child_metric_name_].color;
};

View File

@ -165,6 +165,8 @@ if($setting->get('environment') === 'dev' || $setting->get('environment') === 'd
echo '<script src="/js/component/metric/runtime_per_degree_day/heat_2.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/runtime_per_degree_day/cool_1.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/runtime_per_degree_day/cool_2.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/runtime_per_degree_day/auxiliary_heat_1.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/runtime_per_degree_day/auxiliary_heat_2.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/balance_point.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/balance_point/heat_1.js"></script>' . PHP_EOL;
echo '<script src="/js/component/metric/balance_point/heat_2.js"></script>' . PHP_EOL;