From ffa0a56e1ee5225f5a78fc28fa2c242bbed88e25 Mon Sep 17 00:00:00 2001 From: derlole <122916573+derlole@users.noreply.github.com> Date: Thu, 17 Apr 2025 12:45:35 +0000 Subject: [PATCH] remove mqtt dev --- routes/unsecure_routes.py | 4 ++-- static/script.js | 15 +-------------- templates/dev/indextest.html | 29 ----------------------------- templates/{test.html => live.html} | 0 4 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 templates/dev/indextest.html rename templates/{test.html => live.html} (100%) diff --git a/routes/unsecure_routes.py b/routes/unsecure_routes.py index 012a658..0fc958d 100644 --- a/routes/unsecure_routes.py +++ b/routes/unsecure_routes.py @@ -20,6 +20,6 @@ def send_command(): return f"Befehl '{pCd}' gespeichert." return "Kein Befehl angegeben.", 400 -@unsecure.route('/test') +@unsecure.route('/live') def test(): - return render_template('test.html') + return render_template('live.html') diff --git a/static/script.js b/static/script.js index 44f43eb..5006c53 100644 --- a/static/script.js +++ b/static/script.js @@ -1,14 +1 @@ -document.getElementById('befehlForm').addEventListener('submit', function(event) { - event.preventDefault(); // Seite nicht neu laden! - - const befehl = document.getElementById('befehl').value; - - fetch(`/unsecure/send?befehl=${encodeURIComponent(befehl)}`) - .then(response => response.text()) - .then(text => { - document.getElementById('status').textContent = text; - }) - .catch(err => { - document.getElementById('status').textContent = 'Fehler beim Senden.'; - }); -}); \ No newline at end of file +//im empty \ No newline at end of file diff --git a/templates/dev/indextest.html b/templates/dev/indextest.html deleted file mode 100644 index 3fec6e4..0000000 --- a/templates/dev/indextest.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - ESP Kontrolle - - -

ESP Live-Daten

-
Warte auf Daten...
-
- - - - - - - diff --git a/templates/test.html b/templates/live.html similarity index 100% rename from templates/test.html rename to templates/live.html