Fixed up short_time for oziplotter

pull/13/head
Michael Allan Wheeler 2017-12-09 22:31:13 +11:00
rodzic 0f54d6da86
commit a14cd750d8
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -275,6 +275,7 @@ def process_rs_line(line):
rs_frame['temp'] = 0.0 #we don't have this yet
rs_frame['humidity'] = 0.0
rs_frame['datetime_str'] = rs_frame['datetime'].replace("Z","") #python datetime sucks
rs_frame['short_time'] = rs_frame['datetime'].split(".")[0].split("T")[1]
logging.info("TELEMETRY: %s,%d,%s,%.5f,%.5f,%.1f,%s" % (rs_frame['id'], rs_frame['frame'],rs_frame['datetime'], rs_frame['lat'], rs_frame['lon'], rs_frame['alt'], rs_frame['crc']))