aboutsummaryrefslogtreecommitdiffstats
path: root/glutte_serial_web.py
diff options
context:
space:
mode:
authorMaximilien Cuony <maximilien@theglu.org>2016-09-12 19:20:35 +0200
committerMaximilien Cuony <maximilien@theglu.org>2016-09-12 19:20:35 +0200
commit18fb541004d3666cf722e3eeae8ed9aeab9503d2 (patch)
tree5802e1c9c488b2df4d11bae892fc7164cb9a68de /glutte_serial_web.py
parent2e679e549baca6d3573dacaa925672189b5e034a (diff)
downloadglutte-serial-web-18fb541004d3666cf722e3eeae8ed9aeab9503d2.tar.gz
glutte-serial-web-18fb541004d3666cf722e3eeae8ed9aeab9503d2.tar.bz2
glutte-serial-web-18fb541004d3666cf722e3eeae8ed9aeab9503d2.zip
Add twitter bot
Diffstat (limited to 'glutte_serial_web.py')
-rwxr-xr-xglutte_serial_web.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/glutte_serial_web.py b/glutte_serial_web.py
index 72bc6e4..9966646 100755
--- a/glutte_serial_web.py
+++ b/glutte_serial_web.py
@@ -28,11 +28,13 @@ from time import sleep
from flask import Flask, render_template
from flask_sockets import Sockets
import serialrx
+import adsl
app = Flask(__name__)
sockets = Sockets(app)
ser = serialrx.SerialRX()
+adsl = adsl.ADSL(ser)
@app.route('/')
@@ -66,6 +68,7 @@ def stream(socket):
ser.unregister_client(queue)
ser.start()
+adsl.start()
if __name__ == "__main__":
print("You're running in dev mode, only one client at a time will works ! Please use gunicorn to fix this :)")