add raw to tsv, mangodb first commit, restructure

This commit is contained in:
quoije
2024-04-01 11:37:13 -04:00
parent ebd30a0bd8
commit 0b8c64454e
12 changed files with 43 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
from app_events import socketio
from threading import Thread
class GPS:
def __init__(self):
self.LocationX = None
self.LocationY= None
@socketio.on('gps')
def get_gps():
global LocationX
global LocationY
LocationX = "45.5202844"
LocationY = "-73.5493208"
Location = [LocationX, LocationY]
socketio.emit('gps_location', Location)
print("websocket should be sent now")
return print("socket.io emitted")