From 886c2015f3afe3e020f03f10ff6340d976dfc2f7 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 12 Oct 2023 22:19:14 +0200 Subject: [PATCH] added realtime javascript variable value to html --- web/js-ts/serialv2.js | 1 + web/statestiek.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/js-ts/serialv2.js b/web/js-ts/serialv2.js index ac17565..9a3ec9f 100644 --- a/web/js-ts/serialv2.js +++ b/web/js-ts/serialv2.js @@ -57,6 +57,7 @@ async function readLoop() { // console.log(temp); // console.log(humid); // console.log(licht); + document.getElementById("temp").innerHTML = tempArray; } diff --git a/web/statestiek.html b/web/statestiek.html index 8b05be6..9e63192 100644 --- a/web/statestiek.html +++ b/web/statestiek.html @@ -21,7 +21,7 @@

- +

"Tempratuur is "