How to retrieve Activity.Info data for the previous activity OR get per second heart rate data from the last activity?

Hi --

I'd like to write a watch face that shows summary information from my last workout and wanted to see if there was a way to retrieve that information. 

I discovered that Activity.Info will have some "last" workout data, but not much.  Specifically, I'm looking for per second heart rate data of the activity AFTER the activity is complete. 

Is there a way to pull per second heart rate data from an activity after the activity has been saved? Alternatively, is there a way to capture some Activity,info data right before an Activity completes?

Thanks!

  • I don't think it's possible. Maybe instead you could try to read the fit file via the web API. Ah, and I am not familiar with (and it's offtopic) but maybe the Garmin Health API can give it to you, but that is not for on-device usage.

    Worst, even if you had the data during an activity, it would be not easy to access the same data after the end. I saw some kind of online data store service to share data between different ciq apps if the same device/user but I think it's an overkill (and needs active internet connection which might be too limiting for some use cases)

  • This would be a ton of work, and not all devices support it, but you could build a device app that records an activity and publishes complication data while it's running, and then your watch faces subscribes to those complications (an app can only publish 4)

    You can not publish from a data field.

  • Thanks for the response!  I thought it wasn't possible to read the fit file via web API.  Based on forum questions, it looks like it is downloadable but not readable.  Is that your understanding?

  • Thanks .  Just to make sure I understand, this would be possible if I created a device app and used that instead of the garmin workout activities?  While tempting, I like using the suggested workouts and what not.

    Just seems so silly that the activity data is there if it could give me a split second before it wipes it out when an activity ends.  It must be doing this already for its integration with Strava.

    I also looked at just using Strava's API, but then I need a subscription to get anything interesting.