# Garmin Connect Course Onebox Plugin

**URL:** https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854
**Category:** Plugin
**Created:** [September 10, 2014, 11:33am UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854 "2014-09-10T11:33:52Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![ewan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewan/32/121635_2.png) [@ewan](https://meta.discourse.org/u/ewan)
#### Post date: [September 10, 2014, 11:33am UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/1 "2014-09-10T11:33:52Z")

</div>

Simple plugin to embed garmin connect courses, [GitHub - mrloop/garmin\_connect\_onebox: Garmin connect Onebox for embeding garmin courses · GitHub](https://github.com/mrloop/garmin_connect_onebox)  
An example of it being used: [http://elgin.cc/t/sun-19th-oct-14-spey-moor/77](http://elgin.cc/t/sun-19th-oct-14-spey-moor/77)

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 28, 2016, 12:43am UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/2 "2016-07-28T00:43:54Z")

</div>

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](https://github.com/iunctis/garmin_connect_onebox/blob/master/plugin.rb)

---

<div class="post-metadata">

### Author: ![ewan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewan/32/121635_2.png) [@ewan](https://meta.discourse.org/u/ewan)
#### Post date: [July 28, 2016, 5:50pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/3 "2016-07-28T17:50:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 28, 2016, 5:57pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/4 "2016-07-28T17:57:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ewan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewan/32/121635_2.png) [@ewan](https://meta.discourse.org/u/ewan)
#### Post date: [July 28, 2016, 8:14pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/5 "2016-07-28T20:14:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ewan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewan/32/121635_2.png) [@ewan](https://meta.discourse.org/u/ewan)
#### Post date: [July 28, 2016, 8:17pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/6 "2016-07-28T20:17:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 28, 2016, 8:24pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/7 "2016-07-28T20:24:07Z")

</div>

> [@ewan](#):
>
> @Steven are there any variations on the new links?  
> The old links had 2 variations  
> [Garmin Connect](http://connect.garmin.com/course/123456)  
> [http://connect.garmin.com/course/embed/123456](http://connect.garmin.com/course/embed/123456)

I don’t think so, I saw only one : [Garmin Connect](https://connect.garmin.com/modern/activity/123456)

> [@ewan](#):
>
> In fact we probably want to use the new embeds as well right?So you see the newer UI in the onebox.

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

---

<div class="post-metadata">

### Author: ![ewan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewan/32/121635_2.png) [@ewan](https://meta.discourse.org/u/ewan)
#### Post date: [July 28, 2016, 8:41pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/8 "2016-07-28T20:41:24Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 28, 2016, 8:54pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/9 "2016-07-28T20:54:52Z")

</div>

Here is one example : [👟 Course à pieds (au pluriel) - #789 par Steven - Communauté - iunctis.fr](http://iunctis.fr/t/runner-course-a-pied/459/789)

---

<div class="post-metadata">

### Author: ![ewan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewan/32/121635_2.png) [@ewan](https://meta.discourse.org/u/ewan)
#### Post date: [July 28, 2016, 8:56pm UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/10 "2016-07-28T20:56:24Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 29, 2016, 1:44am UTC](https://meta.discourse.org/t/garmin-connect-course-onebox-plugin/19854/12 "2016-07-29T01:44:46Z")

</div>

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
