diff --git a/parseFitFiles.py b/parseFitFiles.py index 6936ac1..173c01d 100644 --- a/parseFitFiles.py +++ b/parseFitFiles.py @@ -56,7 +56,7 @@ def doAll(file): for record in file.get_messages("session"): fitData["avg_cadence"] = record.get_value("avg_cadence") #fitData["avg_speed"] += round(float(record.get_value("avg_speed")) / 0.27777777777778, 1) - fitData["avg_speed"] = record.get_value("avg_speed") + fitData["avg_speed"] = record.get_value("avg_speed")/1000/(1/3600) #fitData["total_ascent"] = float(record.get_value("total_ascent")) if record.get_value("total_ascent") != None else 0 fitData["total_distance"] = round(record.get_value("total_distance") / 1000, 1) #fitData["date"] = record.get_value("start_time").strftime("%d.%m.%Y")