Upload workout fit files with Connect IQ possible?

Hi,

maybe I've overseen it in the SDK(*), how can I upload my workout/training fit files from the device (Edge 1000) to a/my webserver? It's only for personal usage, because I don't like to plug my Edge everytime to USB. I'm lazy :D

Thank you

Helmut

Edit:
*) only found downloading GPS and FIT files:
https://developer.garmin.com/index.php/blog/post/connect-iq-2-intents-and-persisted-content

But I want to upload my workout FIT files.
  • You didn't miss anything. There is no way to get access to the FIT files stored on the device from ConnectIQ.

    Your best bet is to use the automatic upload functionality provided by the edge_1000 (via wifi or bluetooth). That will get the files into your Garmin Connect account. From there you might be able to use a webapp like tapiriik to grab the files and store them in Dropbox, which you could then sync down to your web server via the Dropbox client software.

    I really wish that Garmin Connect would integrate with IFTTT and expose the FIT files that way. Then you could pipe them anywhere you want.

    Travis
  • Your best bet is to use the automatic upload functionality provided by the edge_1000 (via wifi or bluetooth). That will get the files into your Garmin Connect account.

    Thank you, but Garmin Connect isn't an option. My workouts contains extensive personal data. It's for personal analysis.
  • Thank you, but Garmin Connect isn't an option. My workouts contains extensive personal data. It's for personal analysis.


    You want to get the FIT files off of your device wirelessly, and I'm describing the only way that I know to do exactly that. It sounds like a trade-off between data security and convenience that you aren't willing to accept. I'm not sure if you are aware, but you can set your Garmin Connect account to mark all uploaded activities as private. It is possible that someone could hack Garmin Connect and get access to that data... but if you aren't willing to take advantage of the built-in automatic uploading to liberate the data, then you're going to be relegated to using the USB cable.

    You could sniff around the configuration files on the device to see if the URL used to upload data is stored in plain text. If it is (I have doubts), then you could try to write your own implementation of the server-side scripts to fake your own Garmin Connect. Of course if the URL isn't in a text file, you could probably find it in the firmware. If the firmware isn't cryptographically signed, you could crack open a firmware update file, and put your own custom firmware on the device...

    The bottom line is that ConnectIQ doesn't currently solve your problem. There may be other ways, but they aren't going to be pleasant.

    Travis
  • cygnes 3100

    It sounds like a trade-off between data security and convenience that you aren't willing to accept. I'm not sure if you are aware, but you can set your Garmin Connect account to mark all uploaded activities as private.

    Then Garmin own my personal/private data. Do you give company A, B and C access to your house without staying also at home because you bought hardware from A, B and C? Fit files contains tracking informations and especially health data. A no-go. Do you spread to everyone your health conditions? Where analysis rule the world? Health data are very confidential.

    Garmin force me to save workout files to Garmin servers even if I only want to see my workouts on my Smartphone.

    I'm aware of all you wrote. I'm in IT (server, network and security) for over 20 years. I observe exactly the data flow and restrictions, which aren't technical reasons but business ones, make me very skeptical.
  • Garmin force me to save workout files to Garmin servers even if I only want to see my workouts on my Smartphone.
    It doesn't. If you want to see your workouts in the Garmin Mobile Connect app on your smartphone, then you need to supply the data to the underlying platform. On the other hand, if you want to manually copy the FIT files off your Garmin wearable device onto a computer, then transfer the files from there to your smartphone, and then load the files into an app of your own choosing that can read the data and present the information therein in a usable manner, that's up to you and at your cost (or effort, or inconvenience, whatever).
  • Again, this is a trade-off between data security and convenience. The only secure way to get data off of your device and onto a computer on your local network without passing it through a third party is to use the USB cable.

    Travis
  • It doesn't.

    It does. I ask explicit for wireless transmit and not via cable.

    Again, this is a trade-off between data security and convenience. The only secure way to get data off of your device and onto a computer on your local network without passing it through a third party is to use the USB cable...
    ... because of Garmin restrictions. You forgot to add this tiny but important peace.

    In a local network, no common operating system need to transmit any bit into WAN (wide area network). But anyway, don't want to discuss further network non-sense. Upload isn't possible for now. Thank you for answering.
  • I ask explicit for wireless transmit and not via cable.
    You can want what you want and ask what you ask. Garmin doesn't force you to want it or ask for it, and so you cannot reasonably claim that Garmin forces you to save (or upload) your workout files to its servers. As Travis has pointed out twice, it's a trade-off for your to make, and being a trade-off there is a choice between options – one of which is that you don't upload your files and don't get what you want as the functional outcome.
  • @helmut72: The short-term answer, as you've acknowledged, is to transfer FIT files locally via USB cable. Long-term, we may be able to accommodate your request.

    The PersistedContent module, which allows data to be downloaded to the device, is a pretty recent addition to Connect IQ. It's something we had talked about for quite some time, but there were concerns about working with the device's file system that forced us to proceed carefully. We haven't really discussed the ability to upload FIT data from the file system to external sources, but it seems like a pretty good compliment to PersistedContent. Of course, Garmin has an interest in folks using Garmin Connect, but the lack of a FIT upload API isn't an intentional move to force people to use our ecosystem. :)

    I'll create a ticket to investigate your feature request for feasibility. I can't promise anything, but we're definitely open to the idea.

    Thanks!
  • Garmin doesn't force you to want it or ask for it, and so you cannot reasonably claim that Garmin forces you to save (or upload) your workout files to its servers.

    Read my complete sentence. And please have no fear. I ask for an additional option. Never want take away your preferred transfer option. No need to rant me. Thanks.

    @Brandon

    Thanks, nice to hear! :)