Changed endpoints and db queries, chart now shows suggested mins and maxes

This commit is contained in:
Daniel Ledda
2020-11-07 01:22:13 +01:00
parent 9dbe7c0897
commit 5b6f544460

View File

@@ -27,7 +27,7 @@
async function initChart() {
const ctx = document.getElementById('myChart').getContext('2d');
const {humidity, temp, co2} = getData();
const {humidity, temp, co2} = await getData();
const myChart = Chart.Line(ctx, {
data: {
datasets: [{