scubajorgen / TomTomWatch

Tool for exporting GPS files from TomTom Sports Watches
75 stars 16 forks source link

Button to upload to Strava #32

Open marcoahp opened 9 months ago

marcoahp commented 9 months ago

Great Job scubajorgen!!! The app works perfectly. Thanks for your effort, you have a 9.9. You'd have 10 if you include a button to upload the trk file to Strava. I upload the files manually and it works like a charm.

scubadunc commented 9 months ago

I agree with the above feature request and additionally:

  1. Buttons for automatically uploading activities to Strava, MapMyFitness, Runkeeper incl. segments elevations etc
  2. Buttons to export to fit and tcx formats...gpx (already implemented)

This would make it a 10/10...So appreciative of all your efforts

ltguillaume commented 9 months ago

Let's start with the automatic saving to gpx on download 😁 As far as I can see, one currently has to save each activity to gpx manually (no form of batch operation is available). It would be great if gpx conversion is automatically done when a new ttbin file is downloaded from the watch.

scubajorgen commented 9 months ago

Hum... It is fairly complex to upload to Strava because of the OAuth authentication process from a desktop application. This requires interaction with a browser. This is out of scope for this app I am afraid. I'll look at other file types. I guess TCX is easier than FIT. Auto download GPX could be done...

marcoahp commented 8 months ago

Upload to Strava could be done with https://gotoes.org/gotoes/strava/ With this web you can upload files to Strava easily, join gpx files and even upload to Strava by email. It would be useful a button, or configure the app to generate gpx and upload directly the files by email with your gotoes.org user as soon as ttbin files were downloaded from the watch.

scubadunc commented 8 months ago

Hum... It is fairly complex to upload to Strava because of the OAuth authentication process from a desktop application. This requires interaction with a browser. This is out of scope for this app I am afraid. I'll look at other file types. I guess TCX is easier than FIT. Auto download GPX could be done...

That would be amazing. The problem I guess is that the gpx file exported doesn't contain heart rate info, segment and/or lap detail or calories burnt, whereas a tcx does?

marcoahp commented 8 months ago

I upload gps to Strava and yes, they contain heart rate.

De: scubadunc @.> Enviado el: lunes, 9 de octubre de 2023 02:53 Para: scubajorgen/TomTomWatch @.> CC: marcoahp @.>; Author @.> Asunto: Re: [scubajorgen/TomTomWatch] Button to upload to Strava (Issue #32)

Hum... It is fairly complex to upload to Strava because of the OAuth authentication process from a desktop application. This requires interaction with a browser. This is out of scope for this app I am afraid. I'll look at other file types. I guess TCX is easier than FIT. Auto download GPX could be done...

That would be amazing. The problem I guess is that the gpx file exported doesn't contain heart rate info and calories, whereas a tcx does?

— Reply to this email directly, view it on GitHub https://github.com/scubajorgen/TomTomWatch/issues/32#issuecomment-1752219055 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T6D3YUD65ZZEPFWGX3X6NDINAVCNFSM6AAAAAA5SZRN6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSGIYTSMBVGU . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AL3J4TYAWQ4U526HXUOYMQTX6NDINA5CNFSM6AAAAAA5SZRN6WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTIOC626.gif Message ID: @. @.> >

scubajorgen commented 8 months ago

GPX as exported can contain heartrate in the extensions. See issue #36.

Also when enabling the Garmin GPX extensions (which are enabled by default) the GPX should contain the heart rate.

garminGpxExtensions=true
ugotmeGpxExtensions=false
mike5x3 commented 8 months ago

Upload to Strava could be done with https://github.com/RobbieLD/StravaUploader

scubajorgen commented 8 months ago

Upload to Strava could be done with https://github.com/RobbieLD/StravaUploader

Does this mean that you can use this to sync files from a directory? This means, if you write a GPX using TomTomWatch to this directory that it automatically gets uploaded to Strava? If this is true, I'll write this solution to the FAQ :-)

marcoahp commented 8 months ago

Yes, and you could launch stravauploader.exe from your app, to download from watch and upload to strava with the same button

De: Jorgen van der Velde @.> Enviado el: viernes, 3 de noviembre de 2023 15:34 Para: scubajorgen/TomTomWatch @.> CC: marcoahp @.>; Author @.> Asunto: Re: [scubajorgen/TomTomWatch] Button to upload to Strava (Issue #32)

Upload to Strava could be done with https://github.com/RobbieLD/StravaUploader

Does this mean that you can use this to sync files from a directory? This means, if you write a GPX using TomTomWatch to this directory that it automatically gets uploaded to Strava? If this is true, I'll write this solution to the FAQ :-)

— Reply to this email directly, view it on GitHub https://github.com/scubajorgen/TomTomWatch/issues/32#issuecomment-1792545573 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4TZPH4AM33D4OJHW7QTYCT6FRAVCNFSM6AAAAAA5SZRN6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGU2DKNJXGM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AL3J4T6QMSUQJL3IQSLSLNTYCT6FRA5CNFSM6AAAAAA5SZRN6WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTK3AJSK.gif Message ID: @. @.> >

mike5x3 commented 7 months ago

Upload to Strava could be done with https://github.com/RobbieLD/StravaUploader

Does this mean that you can use this to sync files from a directory? This means, if you write a GPX using TomTomWatch to this directory that it automatically gets uploaded to Strava? If this is true, I'll write this solution to the FAQ :-)

Yes. Configure the working gpx directory of TomTomWatch in the appsettings.json of StravaUploader: "Device": { "Name": "Volume", "Path": "\TomTomWatch\working\gpx", "FileType": "GPX" As well you need to configure in the appsettings.json the client id and the client secret from the API page of Strava (you'll need to sign up to the Strava API for this). As soon as StravaUploader is started the gpx files will be automatically uploaded to Strava and deleted in the working gpx directory.

Just another thing: I would be nice to have the type of workout in the exported gpx file. Otherwise this needs to be done in Strava manually after the upload. As a workaround I currently use some kind of post-processing with a shell script for the exported gpx files: C:\TomTomWatch\working\gpx> ls *.gpx | xargs -l perl -pi -w -e "s/\/name>/\/name>\<type>cycling\<\/type>/"

For those who need the gpx conversion (without saving each file seperately with TomTomWatch): You can use the following binary file of the ttwatch ttbincnv: https://github.com/Dica-Developer/ttws/blob/master/app/ttwatch/ttbincnv This can be used with the wsl windows linux subsystem in a batch script like this (after you have donwloaded the ttbin files with TomTomWatch): cd "C:\TomTomWatch\working\ttbin\TomTom GPS Watch" wsl for x in $(find . -name .ttbin -cmin -5 -printf '%%p\n');do /mnt/c/ttwatch/ttbincnv -g $x;done;mv .gpx /mnt/c/TomTomWatch/working/gpx