From 06ceda9e8f807bbd97d2d4bd7f8ac8fb622e1a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1=C4=8Dek?= Date: Sun, 3 Jul 2022 23:46:17 +0200 Subject: [PATCH] cleared and added some todos --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 203adf1..306e6cf 100644 --- a/main.py +++ b/main.py @@ -71,9 +71,11 @@ def generateMap(): payload = dictionary[key]['payload'] datasta = convert_STA(payload) + # Parse unittime timefromsta = datasta[0] timefromsta = datetime.fromtimestamp(timefromsta, tz) timefromsta = timefromsta.strftime("%Y-%m-%d %H:%M:%S") + lat = datasta[1] lon = datasta[2] velocity = datasta[3] @@ -86,6 +88,7 @@ def generateMap(): pwr = datasta[10] csq = datasta[11] + # Real time we got the STA rtime = datetime.now(tz) rtime = rtime.strftime("%Y-%m-%d %H:%M:%S") @@ -108,6 +111,7 @@ def generateMap(): # This is dictionary to be able to convert OBUID to unitID +#TODO: This function needs to update regularly def helper(): helper = {}