From 548337258f1c5b57b0a05e12d7cd6374d178027e Mon Sep 17 00:00:00 2001 From: d3m1g0d Date: Tue, 26 Mar 2019 19:05:42 +0100 Subject: [PATCH] simplifying a lot of shit --- backend/sensors.py | 2 +- .../__pycache__/hello1.cpython-37.pyc | Bin 0 -> 333 bytes flask-testing/hello1.py | 6 +++ frontend/website.html | 46 ++++++++++++++++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 flask-testing/__pycache__/hello1.cpython-37.pyc create mode 100644 flask-testing/hello1.py create mode 100644 frontend/website.html 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 0000000000000000000000000000000000000000..30500c0e2e525b382bc8090ba04be81600a5135d GIT binary patch literal 333 zcmYjM!Ab)$5S>Xjv55VU6>9KaiztYvUi4IiWie^3-EG!v3R?A~U!j-w*k8)klfU4} znFYatc{6#uH;EtG}VvAPV z>>Y?vR$W1^zex`{CUsGj?P9IXFh0i7Eiz5TlW(6>w;XSA123>e@`~|VllbKMmHc|@ zLtRGNByl?kio`zy6TFY63I5(K;@n)jP+qRhl(PoWwQ;_jnLAfi{`jbQN*Sv&juHeQ y!XDu`*GYAbz-;Oj#j>njQ6yP5O;W+HqU)4h=0DJ#d{}$Cs@#ab((>^G?1^8vt4p*1 literal 0 HcmV?d00001 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