From 0d7e6e792527ccac0fe6b0b60f05f9e07e2ac806 Mon Sep 17 00:00:00 2001 From: derlole <122916573+derlole@users.noreply.github.com> Date: Tue, 6 May 2025 15:34:22 +0000 Subject: [PATCH] joa brainrod halt --- templates/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/index.html b/templates/index.html index 070cca0..c230148 100644 --- a/templates/index.html +++ b/templates/index.html @@ -80,6 +80,11 @@ function toggleMachine() { document.getElementById("machine-status").innerText = "PENDING"; document.getElementById("machine-status-butt").classList.add("blink-orange"); + fetch('/unsecure/esp/toggle-machine', { method: 'POST' }) + .then(res => res.json()) + .then(data => { + console.log(data); + }); }