diff --git a/backend/sensors.py b/backend/sensors.py index a61241b..fd4817a 100644 --- a/backend/sensors.py +++ b/backend/sensors.py @@ -73,7 +73,7 @@ class Spectrometer: self.baudrate = baudrate self.timeout = 1 try: - self.serialObject = ser.Serial(path, baudrate, timeout=tout) + self.serialObject = except: raise Exception('An exception occured when opening the serial port at {}'.format(path)) ex(1) diff --git a/flask-testing/__pycache__/hello1.cpython-37.pyc b/flask-testing/__pycache__/hello1.cpython-37.pyc new file mode 100644 index 0000000..30500c0 Binary files /dev/null and b/flask-testing/__pycache__/hello1.cpython-37.pyc differ diff --git a/flask-testing/hello1.py b/flask-testing/hello1.py new file mode 100644 index 0000000..6dcc240 --- /dev/null +++ b/flask-testing/hello1.py @@ -0,0 +1,6 @@ +from flask import Flask +app = Flask(__name__) + +@app.route('/') +def root(txt): + return 'txt={}'.format(txt) diff --git a/frontend/website.html b/frontend/website.html new file mode 100644 index 0000000..1fdd49f --- /dev/null +++ b/frontend/website.html @@ -0,0 +1,46 @@ + + + + + + + + + + + Spektrometer + + + +

Spektrometer

+ +
+
+ + +
+ + + + + + + + + + + + + + + + + \ No newline at end of file