ianperrin / MMM-Strava

A MagicMirror Module for your Strava data.
https://forum.magicmirror.builders/topic/457/mmm-strava?_=1616840157932
MIT License
51 stars 15 forks source link

additional activities #37

Closed BerndKohl closed 4 years ago

BerndKohl commented 4 years ago

Feature request / Question: Is it possible to retrieve additional activities (besides running, swimming, cycling) from Strava and display them on the mirror?

If so, how?

khassel commented 4 years ago

I think this should already work in chart mode. You can find the activity types here.

In table mode this is not simple because the used athletes stats object only provides these infos:

{
  "recent_run_totals" : "",
  "all_run_totals" : "",
  "recent_swim_totals" : "",
  "biggest_ride_distance" : 0.8008281904610115,
  "ytd_swim_totals" : "",
  "all_swim_totals" : "",
  "recent_ride_totals" : {
    "distance" : 5.962134,
    "achievement_count" : 9,
    "count" : 1,
    "elapsed_time" : 2,
    "elevation_gain" : 7.0614014,
    "moving_time" : 5
  },
  "biggest_climb_elevation_gain" : 6.027456183070403,
  "ytd_ride_totals" : "",
  "all_ride_totals" : "",
  "ytd_run_totals" : ""
}
BerndKohl commented 4 years ago

Thanks, would have loved to see it in table mode - which is - if I read this correctly - not supported by the Strava API.