antfs-cli
antfs-cli copied to clipboard
how do you create a .fit workout
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
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.
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.
Hi all, so here's how I configured the linux garmin communicator plugin.
Setup
- Get the linux plugin for garmin communicator from http://www.andreas-diesner.de/garminplugin/doku.php?id=start Follow the instructions to install it and configure it.
- Choose a directory for your files for downloading and uploading. We'll call this $storagePath. In my case it is /home/thisUser/garminFiles
- Set the plugin config file (garminplugin.xml in ~/.config/garminplugin/) to point to your $storagePath. This will make the plugin look for a virtual device in $storagePath. E.g.:
<?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>
- The name here is whatever you want. It should not be displayed when you run the plugin.
- The logfile can be changed and the log level too.
- Make a directory $storagePath/Garmin
- Get the 'GarminDevice.xml' !(and other files) from the garmin application data from the windows plugin's files. E.g. /windows/C/Documents and Settings/
/Application Data/Garmin/Devices/<deviceID>/GarminDevice.xml - Put that file in $storagePath/Garmin/.
- If it is named .XMfL , rename it to .xml
- Put the other files from the windows dir in there too (including the folders)
- My reason for getting the device file and folder structure from a working windows setup is that the device file will not require too much tweaking. Writing you own or using one from a different watch might not work too well. And possibly there are other files that are necessary but I aren't aware of what they are or what they do.
- Inside GarminDevice.xml there are paths to activity folders e.g. : <Path>Goals</Path>
So you will need to add a 'Garmin/' to these device paths so that they form a
proper path to the files. E.g. $storagePath/Garmin/Goals must be valid.
- At this stage it seems that we don't need the Garmin folder and the files could be in $storagePath, but no, we need it. For some reason, it seems to me that the website wants to find a Garmin folder in $storagePath. Without it, the plugin won't work and we will get a message like 'Device not found'.
- Confirm that you have set up the directories in $storagePath/Garmin.
- Activities
- Courses
- Garmin Connect
- Goals
- Workouts
- etc, as per the Windows appdata structure...
- Note, that the folder names can be changed to whatever you like, but you will need to edit the GarminDevice.xml paths to match.
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.
- It seems to me that the plugin finds $storagePath, but that the storagePath/Garmin/
folder structure is not observed, so it can't find the GarminDevice.xml file (and possibly others).
When trying to upload activities...
UnsupportedDataTypeException: Your device is not supported by this application.
- It is possible that GarminDevice.xml was not found.
- You might get device detected, but that will just be the folder set in garminplugin.xml.
No activities found.
- The path to the activities folder was not set correctly
- Or possibly the folder is simply empty.
Sending a course or workout from the website...
Unable to send course to device. Please try again later.
- The Path for NewFiles is not set properly. E.g. <Path>Garmin/NewFiles</Path>
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 !
Did any of you guys get the Garmin Communicator Plugin for Linux working with an FR610? It's not listed as a supported device.
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.
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 [email protected] 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 .
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!!
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
Thanks, I'll remember that for next time ;-)
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?
@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.
Possibly my comment on Issue #139 helps here too.