I have been trying to use MapMyRide to track my workouts.  While they say they will have a JSON feed soon, for now, all I could do is work with their RSS feed to put it up on my blog.

Originally, I hoped I could just use a standard WordPress RSS feed widget to show my workouts.  Unfortunately, the feed from MapMyRide contains HTML.  The RSS widget wisely escapes the HTML to avoid XSS.  However, this makes the workout listings look very ugly.

So I have created a pluging that downloads the RSS feed, parses out the workout information, and shows your workouts.

You can download the initial version of the plugin.  Installation just requires you to unzip and put in your wp-content/plugins directory.  Please let me know if you are using it and if there any other features needed.  I know I still need to:

  • Protect agains XSS (split on the bold tags and then escape other HTML
  • Protect against bogus URLs, only MapMyRide.com should be used
  • Add more options to control what you actually allow to display.  Not sure if I want my weight out there.