1
0
mirror of https://github.com/beestat/app.git synced 2025-10-27 16:22:25 -04:00
beestat/js/component/modal/help_aggregate_runtime.js
2019-05-22 21:22:24 -04:00

56 lines
2.2 KiB
JavaScript

/**
* Help for the aggregate runtime card.
*/
beestat.component.modal.help_aggregate_runtime = function() {
beestat.component.modal.apply(this, arguments);
};
beestat.extend(beestat.component.modal.help_aggregate_runtime, beestat.component.modal);
beestat.component.modal.help_aggregate_runtime.prototype.decorate_contents_ = function(parent) {
parent.appendChild($.createElement('p').innerHTML('View HVAC usage trends over large periods of time. This can help you identify problems or visualize effeciency gains from new equipment, insulation, etc. Compare to the Home IQ Weather Impact chart.'));
parent.appendChild($.createElement('p').innerHTML('If you have Gap Fill enabled (on by default), this data may not match the ecobee website exactly. Ecobee displays total runtime as stored, while beestat will intelligently fill in missing data to produce a more accurate result.'));
var table = $.createElement('table');
table.style('color', beestat.style.color.blue.base);
parent.appendChild(table);
var tr;
var td;
tr = $.createElement('tr');
table.appendChild(tr);
td = $.createElement('td');
td.setAttribute('valign', 'top');
tr.appendChild(td);
(new beestat.component.icon('information')
.set_color(beestat.style.color.blue.base)
).render(td);
td = $.createElement('td');
td.setAttribute('valign', 'top');
tr.appendChild(td);
td.innerHTML('Ecobee purged weather data prior to April 2018 as a result of switching weather providers. If you joined beestat after this happened you will not have access to this historical data.');
tr = $.createElement('tr');
table.appendChild(tr);
td = $.createElement('td');
td.setAttribute('valign', 'top');
tr.appendChild(td);
(new beestat.component.icon('information')
.set_color(beestat.style.color.blue.base)
).render(td);
td = $.createElement('td');
td.setAttribute('valign', 'top');
tr.appendChild(td);
td.innerHTML('Ecobee typically purges data after about a year. Beestat currently stores all historical data even though ecobee does not.');
};
beestat.component.modal.help_aggregate_runtime.prototype.get_title_ = function() {
return 'Aggregate Runtime - Help';
};