Garmin Connect Course Onebox Plugin

Simple plugin to embed garmin connect courses, https://github.com/mrloop/garmin_connect_onebox
An example of it being used: http://elgin.cc/t/sun-19th-oct-14-spey-moor/77

9 Likes

Nice plugin. We have few runners in our community and it’s helpful.

Although, it seems that Garmin changed the iframe. The new courses use this link : https://connect.garmin.com/modern/activity/00000

I forked the plugin and updated it, I don’t know if I make a pull request, old links will be broken.

I share my update if someone wants to see what I’ve done : https://github.com/iunctis/garmin_connect_onebox/blob/master/plugin.rb

Glad you like it, and thanks for the update about the links. I can update the regex to match the old and new links. Or if you’d prefer and want to give it a shot make a pull request that matches the old and new. Let me know. Cheers Ewan

1 Like

I’ll let you do that, it will be great

@Steven are there any variations on the new links?
The old links had 2 variations
http://connect.garmin.com/course/123456
http://connect.garmin.com/course/embed/123456

In fact we probably want to use the new embeds as well right?
So you see the newer UI in the onebox.

I don’t think so, I saw only one : Garmin Connect

The old embed was fine too, but I don’t know if it works with the new one

Hi Steven,
Have you got an example of the plugin working with the new activity link?
There’s a few variations and a distinction between courses and activites.
Looks like we can get modern UI with activities and the old style with courses. Half updated plugin and written some tests, will finish in the next couple of days.

Here is one example : http://iunctis.fr/t/runner-course-a-pied/459/789

Thank, just updated plugin, let me know how you get along.

Tried it, both links works fine. Great update !

I didn’t follow your install guide tho, I went with the usual one (- git clone link) in the app.yml