mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
try to see why sensor value doesnt show on website
This commit is contained in:
@@ -25,9 +25,12 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
// Fetch data from the server
|
||||
async function fetchData() {
|
||||
try{
|
||||
const response = await fetch("/data");
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error("Error:", error);
|
||||
}
|
||||
|
||||
// Parse the data and show it on the website
|
||||
|
@@ -1,7 +0,0 @@
|
||||
import sys
|
||||
import logging
|
||||
|
||||
logging.basicConfig(stream=sys.stderr)
|
||||
sys.path.insert(0, "/home/ishak/rooziinuubii79/src/Python/flask/web")
|
||||
|
||||
from app import app as application
|
Reference in New Issue
Block a user