workout-tracker icon indicating copy to clipboard operation
workout-tracker copied to clipboard

Import from csv

Open s0rau opened this issue 1 year ago • 3 comments

I'm testing workout-tracker , I love that app which runs fast on Docker image :+1:

I'd like to import past workouts from csv file which is formatted like that (I don't have gpx files any more) :

id,uuid,user_id,sport_id,title,gpx,creation_date,modification_date,workout_date,duration,pauses,moving,distance,min_alt,max_alt,descent,ascent,max_speed,ave_speed,bounds,map,map_id,weather_start,weather_end,notes
39,3958a0ec-f780-4579-b7a4-28deffdd8fe5,3,14,Mont Mc,,2018-08-13,,2018-08-13,7:30:00,,7:30:00,20,,3169,,,,,,,,,,-Salomon

I've search database.db but it seems to only get stats on gpx source.

s0rau avatar Apr 28 '24 17:04 s0rau

Would it be reasonable to re-format as json with a specific structure?

jovandeginste avatar Apr 28 '24 20:04 jovandeginste

At the moment I only have that csv file , I mean in the database structure there's not km or elevation, It seems just to use GPX files in order to get stats. Could you add an interface to add workouts without gpx like fittrackee does ?

s0rau avatar Apr 29 '24 06:04 s0rau

There are already a number of supported file formats, gpx is just one. To add a generic one, I should think about a generic structure.

jovandeginste avatar Apr 29 '24 16:04 jovandeginste