Tigge / antfs-cli

Extracts FIT files from ANT-FS based sport watches such as Garmin Forerunner 60, 405CX, 310XT, 610 and 910XT.
MIT License
311 stars 76 forks source link

how do you create a .fit workout #53

Open euri10 opened 11 years ago

euri10 commented 11 years ago

As the code currently enables uploading workouts to the watch I wondered how people did to generate such a workout.

Let's say for instance I want a workout where I run 30' between 12 and 13km/h then I do 10*100m at 17km/h with a 20'' pause : I know how to create it on the Garmin website, however I didn't see a way to save it as a .fit file then upload it to the watch. I tried the Garmin Communicator "fake" plugin but couldn't make it work. thanks for your help

lcorbet commented 11 years ago

Hi euri10, In my opinion you willneed that linux garmin plugin. I have been able to make the Garmin Communicator work with my 310 (for downloading files from my website to my computer). If you will be able to give me a couple of days, I'll write up some tips on how to get it going.

Tigge commented 11 years ago

I think I have been able to create workouts on the Garmin Connect web site and download them using the Garmin Communicator Plugin for Linux. It could be quite fun to write a small app for this though. Should not be too hard.

lcorbet commented 11 years ago

Hi all, so here's how I configured the linux garmin communicator plugin.

Setup

<?xml version="1.0" VersionXml="1.0" encoding="UTF-8" standalone="no" ?>
<GarminPlugin logfile="/home/thisUser/garminplugin.log" level="DEBUG">
    <Devices>
        <Device enabled="true">
            <Name>If I see this while using the plugin there is a problem</Name>
            <StoragePath>/home/thisUser/garminFiles</StoragePath>
            <StorageCommand></StorageCommand>
            <FitnessDataPath></FitnessDataPath>
            <GpxDataPath></GpxDataPath>
        </Device>
    </Devices>
    <Settings>
        <ForerunnerTools enabled="false" />
    </Settings>
</GarminPlugin>

After all this it should work. Best of luck!

And, yes, there would be plenty of room for customization and tuning this configuration. It would be great to hear how others get it working. Or what problems are encountered.

Errors

When trying to download a course or workout...

No device found that supports Courses.

When trying to upload activities...

UnsupportedDataTypeException: Your device is not supported by this application.

No activities found.

Sending a course or workout from the website...

Unable to send course to device. Please try again later.

euri10 commented 11 years ago

very good explanation, I can see my device now I'll try to setup symbolic links to .config/garmin-extractor/ as it seems the path tree required looks the same !

aspiers commented 11 years ago

Did any of you guys get the Garmin Communicator Plugin for Linux working with an FR610? It's not listed as a supported device.

lcorbet commented 11 years ago

Sorry aspiers, I can't help too much with your 610. I have a 310 but also an achillies injury so haven't been using the watch too much at all. But my advice would be, if its possible, to check out the folder and file structure that occurs on Windows and try to adhere to that. It may be different than the 310's structure.

Tigge commented 11 years ago

This https://github.com/Tigge/Garmin-Forerunner-610-Extractor/pull/73 was recenty merged to master. That should be one way to get it to work.

On 24 September 2013 01:44, lcorbet notifications@github.com wrote:

Sorry aspiers, I can't help too much with your 610. I have a 310 but also an achillies injury so haven't been using the watch too much at all. But my advice would be, if its possible, to check out the folder and file structure that occurs on Windows and try to adhere to that. It may be different than the 310's structure.

— Reply to this email directly or view it on GitHubhttps://github.com/Tigge/Garmin-Forerunner-610-Extractor/issues/53#issuecomment-24964661 .

aspiers commented 11 years ago

I managed to download my activities last night via garmin.py, and then manually uploaded each one via the Connect website. Even with 20 or so it didn't take long. Way better than the ANT Agent which would abort during every single transfer and retry an infinite number of times, getting nowhere!!

dlotton commented 11 years ago

An FYI for aspiers,

gcpuploader can bulk upload fit, gpx, and tcx files to Garmin Connect. Seems like I remember a recent email that someone added some code to this project to utilize gcpuploader also.

https://pypi.python.org/pypi/GcpUploader/2013.05.05

integration here... https://github.com/Tigge/Garmin-Forerunner-610-Extractor/pull/73

aspiers commented 11 years ago

Thanks, I'll remember that for next time ;-)

lefty01 commented 9 years ago

ok ... rather old thread here, but anyways ... regarding the initial question is there any tool already available that could be used to create a workout and save as fit file? that is something that could work on the commandline?

Tigge commented 9 years ago

@lefty01 I'm not aware of any command line tools. As I suggested you could of course make your own by reading up on FIT at http://www.thisisant.com/resources/fit. Just need to get through a fair bit of specifications and read up on the workout profile, but yeah, doable.

embear commented 9 years ago

Possibly my comment on Issue #139 helps here too.