working branch #1

Merged
quoije merged 9 commits from main into wip 2024-09-15 21:25:49 -04:00
4 changed files with 16 additions and 1 deletions
Showing only changes of commit 5e8e3cf603 - Show all commits
BIN
View File
Binary file not shown.
+11 -1
View File
@@ -1,6 +1,7 @@
from flask import Flask, render_template, make_response, json
import app_obd, app_car, app_account, time
from app_events import socketio
from gevent.pywsgi import WSGIServer
app = Flask(__name__)
socketio.init_app(app)
@@ -24,4 +25,13 @@ def data():
data = app_obd.speed
response = make_response(json.dumps(data))
response.content_type = 'application/json'
return response
return response
if __name__ == '__main__':
# Debug/Development
# app.run(debug=True, host="0.0.0.0", port="5000")
# Production
http_server = WSGIServer(('', 5000), app)
print("server on :5000")
http_server.serve_forever()
+2
View File
@@ -1,3 +1,5 @@
# yaris-obd #
![UI](https://github.com/quoije/yaris-obd/blob/698adee41532fed0ba1a7fe0ab83b26d569764cb/pics/ui.png)
python3 app.py
+3
View File
@@ -0,0 +1,3 @@
# yaris-obd #
![UI](https://github.com/quoije/yaris-obd/blob/698adee41532fed0ba1a7fe0ab83b26d569764cb/pics/ui.png)