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

Temporarily adding some debug output to test mobile apps

This commit is contained in:
Jon Ziebell 2023-10-16 22:16:22 -04:00
parent 99515022ce
commit 1c8b97381f
3 changed files with 7 additions and 1 deletions

View File

@ -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(

View File

@ -58,5 +58,4 @@ beestat.component.card.footer.prototype.decorate_contents_ = function(parent) {
.setAttribute('href', 'mailto:contact@beestat.io')
.innerText('Contact')
);
};

View File

@ -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()
}
];