diff --git a/js/beestat/poll.js b/js/beestat/poll.js index b09ab1b..1e15099 100644 --- a/js/beestat/poll.js +++ b/js/beestat/poll.js @@ -11,7 +11,10 @@ beestat.enable_poll = function() { /** * Poll the database for changes and update the cache. */ +window.last_poll = moment(); beestat.poll = function() { + window.last_poll = moment(); + var api = new beestat.api(); api.add_call( diff --git a/js/component/card/footer.js b/js/component/card/footer.js index 724530f..88e7e1b 100644 --- a/js/component/card/footer.js +++ b/js/component/card/footer.js @@ -58,5 +58,4 @@ beestat.component.card.footer.prototype.decorate_contents_ = function(parent) { .setAttribute('href', 'mailto:contact@beestat.io') .innerText('Contact') ); - }; diff --git a/js/component/modal/thermostat_info.js b/js/component/modal/thermostat_info.js index 250d05f..0669f22 100644 --- a/js/component/modal/thermostat_info.js +++ b/js/component/modal/thermostat_info.js @@ -38,6 +38,10 @@ beestat.component.modal.thermostat_info.prototype.decorate_contents_ = function( 'name': 'First Connected', 'value': moment.utc(ecobee_thermostat.runtime.firstConnected).local() .format('MMM Do, YYYY') + }, + { + 'name': '#', + 'value': window.last_poll.format() } ];