Almost there

This commit is contained in:
Daniel Ledda
2020-11-14 16:29:28 +01:00
parent a43ed14019
commit 3455a11f89
2 changed files with 2 additions and 2 deletions

View File

@@ -64,10 +64,10 @@ class ClimateChart {
this.chart = new Chart(ctx, generateClimateChartConfig({}));
try {
const payload = await this.getInitialDataBlob();
console.log(payload);
this.latestSnapshot = payload.snapshots[payload.snapshots.length - 1];
this.insertSnapshots(...payload.snapshots);
setInterval(() => this.updateFromServer(), 30 * 1000);
this.chart.update();
this.onLoadedCallback();
}
catch (e) {