From 054be597e639cc6294f37202b966fe5e53c13f99 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 10 Apr 2024 09:08:32 +0200 Subject: fix lights range --- ui/index.html | 2 +- ui/js/api.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/index.html b/ui/index.html index 1183672..3d93944 100644 --- a/ui/index.html +++ b/ui/index.html @@ -69,7 +69,7 @@
Verlichting
- +
Felheid: ??%
diff --git a/ui/js/api.js b/ui/js/api.js index 48bd9e5..bc7803d 100644 --- a/ui/js/api.js +++ b/ui/js/api.js @@ -22,7 +22,7 @@ const api = { barrier: open => setPolkaDot(document.getElementById("barrierValue"), open), trafficLights: state => document.getElementById("trafficLightsValue").innerText = state, lights: value => { - document.getElementById("lightsValue").innerText = value; + document.getElementById("lightsValue").innerText = value * 10; document.getElementById("lightsInput").value = value; }, matrix: state => document.getElementById("matrixValue").value = state, @@ -82,7 +82,7 @@ const api = { }, lights: el => { var value = Number(el.value); - send({ type: 'lights', value: value / 10 }); + send({ type: 'lights', value }); api.update.lights(value); }, matrix: el => { -- cgit v1.2.3