From c14c18deb0b7ede366b5813546cf06ba5b346fb1 Mon Sep 17 00:00:00 2001 From: Sietse Jonker Date: Wed, 6 Mar 2024 17:38:09 +0100 Subject: [PATCH] Remove commented out code and update graph in main.js --- web/index.html | 29 ----------------------------- web/main.js | 5 +---- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/web/index.html b/web/index.html index 767972c..36d76b3 100644 --- a/web/index.html +++ b/web/index.html @@ -26,35 +26,6 @@
- - - - diff --git a/web/main.js b/web/main.js index c3425b9..db1c2e3 100644 --- a/web/main.js +++ b/web/main.js @@ -198,12 +198,9 @@ function updateNodeData(node, temperature, humidity, eCO2, TVOC) { document.getElementById("CO2Status").textContent = "Connected"; document.getElementById("TVOCStatus").textContent = "Connected"; - // Update the graph + // Update the graph` graphNode1.updateData(temperature, humidity, eCO2, TVOC); graphNode1.updateGraph(); - - graphNode2.updateData(temperature, humidity, eCO2, TVOC); - graphNode2.updateGraph(); } // Call the function to create the HTML structure