correct average speed

This commit is contained in:
Manuel Weiser 2024-05-14 19:25:23 +02:00
parent 36630b3273
commit 2adf6c7f8c

View File

@ -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")