added visualisation

This commit is contained in:
Daniel Ledda
2020-11-04 23:59:29 +01:00
parent 47e05d60c3
commit ad91ec1c22

View File

@@ -17,7 +17,7 @@
async function initChart() {
const ctx = document.getElementById('myChart').getContext('2d');
const data = await fetch("http://tortedda.local/climate/data/");
const data = await fetch("/data/");
const {humidity, temp, co2} = transformData(await data.json());
const myChart = Chart.Line(ctx, {
data: {