Garmin Connect Course Onebox Plugin

AI-generated summary

The discussion revolves around the Garmin Connect Course Onebox Plugin, created by ewan to embed Garmin courses into Discourse forums. Steven praised the plugin but noted that Garmin updated their iframe links, switching from the old connect.garmin.com/course format to a new connect.garmin.com/modern/activity format. He shared a fork of the plugin to handle these changes Steven.

ewan offered to update the regex to support both old and new links or accept a pull request. Steven deferred to ewan to handle the update. They discussed link variations, with Steven confirming the new activity links appear to have a single format. ewan clarified the distinction between courses and activities, noting the new UI is available for activities while the old style remains for courses. After Steven provided a test example, ewan updated the plugin. Steven confirmed that both link types now work correctly, though he installed the plugin using a standard git clone method rather than the specific installation guide.

Simple plugin to embed garmin connect courses, GitHub - mrloop/garmin_connect_onebox: Garmin connect Onebox for embeding garmin courses · GitHub
An example of it being used: http://elgin.cc/t/sun-19th-oct-14-spey-moor/77

9 إعجابات

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)

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
Garmin Connect
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 : 👟 Course à pieds (au pluriel) - #789 par Steven - Communauté - iunctis.fr

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