jonasoreland / runnerup

A open source run tracker
GNU General Public License v3.0
718 stars 271 forks source link

Import .tcx/.gpx activities #35

Open pace6666 opened 10 years ago

pace6666 commented 10 years ago

Runnerup is great! A huge thank you to keep it alive and powerful. A module to import/export tcx, gpx activities from garmin devices or other popular apps could be a great feature.

jonasoreland commented 10 years ago

comment: export already exists. go to an activity, in the menu there is "Share activity". You can share as gpx or tcx using any of standard android sharing facilities (e.g mail)

Is this sufficient for "export", if yes, I'll change the feature request to only mention import.

/Jonas

pace6666 commented 10 years ago

Gooooood!! If you can chage it to import only...I'll try export option today and save activities to my dropbox

jonasoreland commented 10 years ago

hmm... maybe I should make a "bulk-export" exporting activities 1-by-1 sounds tedious.

what do you think?

/Jonas

On Tue, Jun 24, 2014 at 4:27 PM, pace6666 notifications@github.com wrote:

Gooooood!! If you can chage it to import only...I'll try export option today and save activities to my dropbox

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/35#issuecomment-46977712 .

pace6666 commented 10 years ago

Good idea! Le 2014-06-24 10:45, "Jonas Oreland" notifications@github.com a écrit :

hmm... maybe I should make a "bulk-export" exporting activities 1-by-1 sounds tedious.

what do you think?

/Jonas

On Tue, Jun 24, 2014 at 4:27 PM, pace6666 notifications@github.com wrote:

Gooooood!! If you can chage it to import only...I'll try export option today and save activities to my dropbox

— Reply to this email directly or view it on GitHub < https://github.com/jonasoreland/runnerup/issues/35#issuecomment-46977712> .

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/35#issuecomment-46980252 .

sliwowitz commented 9 years ago

+1 for the bulk export.

It would also be nice if you could save the exported file(s) on the SD card so you can open the files in a custom program right after connecting the phone to usb. (now I have to send the mail to myself, open it up on the computer, save the attachment, then open it in my program - it works, but isn't very comfortable)

CharString commented 9 years ago

You could define a local directory (could be on SD card or one that is synced by Seafile or Owncloud) and a filetype, as an "Account" that way you can automatically save workouts, just like an upload to the various webapps.

Bulk export would be nice for the backlog.. But one tedious session can be lived with if the future is automated.

fonsw commented 9 years ago

I'm very excited that I found this (almost) perfect App to track and upload my workout data to multiple running site services e.g. RunKeeper, MapMyRun or Strava. A huge thanks to the developers of this project! I want to continue using RunnerUp as my main fitness tracker App but also want to import the historical data from e.g. RunKeeper into RunnerUp. Can anyone explain to me how to achieve this? A direct import from these external services would be very nice. I even would be happy to import an exported RunKeeper data file manually into RunnerUp. I can then decide which period of historical data to export from RunKeeper and import/merge it into RunnerUP.

Many thanks for answering my questions.

Keep up the good work!

Fons

nebmo commented 9 years ago

As far as I know that can't be done right now. Right Jonas?

jonasoreland commented 9 years ago

correct. currently there is no support at all for importing...

/Jonas

On Sat, Oct 25, 2014 at 4:26 PM, Niklas Weidemann notifications@github.com wrote:

As far as I know that can't be done right now. Right Jonas?

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/35#issuecomment-60484512 .

fonsw commented 9 years ago

Is this importing feature on you're current backlog at all? So yeah, any idea when it will make it to the to-do list?

nebmo commented 9 years ago

I guess the answer is when someone feels like implementing it. But shouldnt be that hard right? Just export but the other way around? :) I think someone (@daverix) needs to add some unit test..

fonsw commented 9 years ago

Indeed it doesn't seems to hard to implement ;) So I put all my money on @daverix to successfully complete the unit test ;) Sounds promising!

rutsky commented 7 years ago

Is anyone working on Import gpx/tcx feature?

jonasoreland commented 7 years ago

Not to my knowledge, but that would be a great feature.

/Jonas

On Aug 31, 2016 12:28, "Vladimir Rutsky" notifications@github.com wrote:

Is anyone working on Import gpx/tcx feature?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jonasoreland/runnerup/issues/35#issuecomment-243723805, or mute the thread https://github.com/notifications/unsubscribe-auth/AABYSyNLoJlXU6vnClVa-qb17my3DyKYks5qlVdKgaJpZM4B72V5 .

jonasoreland commented 7 years ago

btw: bulk export is now supported using the File account. I'll remove "export" from title of this issue...

rutsky commented 7 years ago

@jonasoreland is it hard to implement import? Could you give me some kind of instructions where and what should be added/implemented in code, so that I would be able try to implement it myself? (I have almost no experience in Android development/Java)

jonasoreland commented 7 years ago

there are atleast the following steps need: 1) find/get string of {tcx or gpx} i.e from file, from intent or from other source. 2) convert string of {tcx or gpx} to ActivityEntity 3) check that ActivityEntity is not a duplicate (and maybe ask user) 4) store ActivityEntity to DB

I suggest you start with 2). That is "pure" java, no android and easy towrite unit test for...

jonasoreland commented 7 years ago

Update: i forgot, there is now support for importing from RunKeeper, so step 3 & 4 is already done!

gerhardol commented 6 years ago

Enhancement: Import from tcx/gpx It is possible to import using RunKeeper

davidedelvento commented 6 years ago

@gerhardol importing from tcx/gpx sounds useful @davidedelvento

gerhardol commented 6 years ago

Not very useful. I see RU as a data recorder primarily, I do not want all data in RU. The workaround to import to RK should be good enough.

It takes some effort to write an RU importer that maps all data in the import format as the exporter used it to "our" data model.

davidedelvento commented 6 years ago

Use case: my phone was out of battery and I ran with my wife's one. I want that workout into my DB not hers. Useful, in my opinion. Not a priority, but useful.

FWIW, I could not care less regarding using external websites, especially ones that have their own app (why should one put their data in RK and use RU instead of RK app?)

gerhardol commented 6 years ago

I see the use case, but do not believe it is worth the effort. It is easier to implement some SQLite (or maybe .json) custom export/import to get partial transfer of databases. A simple "GPS only" import is not so hard, but all fitness data from all gpx/tcx variants are hard. We dont want to loose data? I suggest to use RK as a workaround, there are more fun features to add.

davidedelvento commented 6 years ago

Using another format is fine -- but not GPS only, it must include everything, including, e.g. notes, target pace, intervals info (which I don't think are saved at this time but they should be), etc.

gerhardol commented 6 years ago

One way to do it:

davidedelvento commented 6 years ago

That would work, but the custom manager needs to be able to select specific workout(s) only, since maybe the other DB contains other workouts done by the other person that one does not want to import.

bb010g commented 2 years ago

TCX import would be great for analyzing Fitbit activities.

stuffi3000 commented 6 months ago

I also would love to see the TCX import. I'm currently using FitRunner but I don't like it a lot. Would love to switch to this app by exporting the TCX there.