diff --git a/web/newWebsite/graph-main.js b/web/newWebsite/graph-main.js index c1436ed..9aba63a 100644 --- a/web/newWebsite/graph-main.js +++ b/web/newWebsite/graph-main.js @@ -109,15 +109,14 @@ function createFilterContainer() { // Get request to fetch data from the server function fetchData() { - fetch("http://145.92.8.114/getNodeInfo") + fetch("http://145.92.8.114/getMeasurements") .then((response) => { if (!response.ok) { throw new Error("Network response was not ok"); } return response.json(); }) - .then((data) => { - data.push(...data); + .then((measurements) => { createFilterContainer(); }) .catch((error) => {