Title: Garmin Connect
Author: codedrobot
Published: <strong>2009 年 7 月 2 日</strong>
Last modified: 2012 年 8 月 3 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/garmin-connect.svg)

# Garmin Connect

 作者：[codedrobot](https://profiles.wordpress.org/codedrobot/)

[下载](https://downloads.wordpress.org/plugin/garmin-connect.1.1.8.zip)

 * [详情](https://cn.wordpress.org/plugins/garmin-connect/#description)
 * [评价](https://cn.wordpress.org/plugins/garmin-connect/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/garmin-connect/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/garmin-connect/#developers)

 [支持](https://wordpress.org/support/plugin/garmin-connect/)

## 描述

Provides a widget for displaying latest activities from Garmin Connect on your site.

Related Links:

 * [FAQ Page](http://garminconnect.codedrobot.com/faq/).
 * [Different Widget Styles](http://garminconnect.codedrobot.com/widget-styles/)

PHP5 is required for this widget to work properly.

### Licence

This plugin is free for anyone. It is GPL licenses, so its free for use on both 
personal and commercial sites. If you enjoyed the plugin, you can always make a 
[donation](http://garminconnect.codedrobot.com)

## 屏幕截图

[⌊Screenshot of the plugin in action⌉⌊Screenshot of the plugin in action⌉[

Screenshot of the plugin in action

[⌊Screenshot of a different style of the plugin⌉⌊Screenshot of a different style
of the plugin⌉[

Screenshot of a different style of the plugin

[⌊Screenshot of the configuration options.⌉⌊Screenshot of the configuration options
.⌉[

Screenshot of the configuration options.

[⌊Screenshot of a post with the activity map automatically generated.⌉⌊Screenshot
of a post with the activity map automatically generated.⌉[

Screenshot of a post with the activity map automatically generated.

## 安装

 1. Delete any existing `garmin-connect` folder from the `/wp-content/plugins/` directory
 2. Upload `garmin-connect` folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to the Garmin Connect panel under the ‘Settings’ menu and add your Garmin Connect
    Username and Password and the settings you want
 5. Go to the Widgets panel under the ‘Appearance’ menu and drag a Garmin Connect widget
    to your side bar. Configure the options as you wish

## 常见问题

  How can I display a map of my activity in a post?

Use the Garmin Connect shortcode in the body of your post. An example usage is as
follows: `[gcmap act="7964312" class="alignleft"]`.

The value for ‘act’ is the value at the end of your Garmin Connect activity URL,
i.e. – http://connect.garmin.com/activity/7964312

The value for class is the CSS class that will be used. Appropriate values are ‘
alignleft’, ‘alignright’, or ‘aligncenter’. It may also be left blank. You may add
your own CSS stylings in the garminconnect.css file.

  Can the widget display in kilometers instead of miles?

Yes. Change your settings within Garmin Connect. Visit [Garmin Connect Settings](http://connect.garmin.com/settings)
and on the ‘Display Preferences’ tab, changed ‘Measurement Units’ to ‘Metric’

  What causes the error message ‘Plugin could not be activated because it triggered
a fatal error.’?

This is due to trying to activate the plugin using PHPv4. PHPv5 is required to use
this plugin. Additional error message details state “Parse error: syntax error, 
unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’”

  Why are no activities showing up?

In order for activities to show up in the widget, you must have given the activity
a name in Garmin Connect. Ensure that activities do not have the name ‘Untitled’.

  Are private activities shown in the widget?

No

  How do I know what the different widget styles look like

You can view all the available widget styles in action at the [Widget Styles Page](http://garminconnect.codedrobot.com/widget-styles/)

## 评价

![](https://secure.gravatar.com/avatar/5b68023318947f7d846033c0b8179f9f82b02d6d6d61ce5608d59bd016ab1541?
s=60&d=retro&r=g)

### 󠀁[Does not work](https://wordpress.org/support/topic/does-not-work-743/)󠁿

 [John-Pierre Cornelissen](https://profiles.wordpress.org/jpnl/) 2017 年 2 月 7 
日

It does not work for me. I don't get to see the feed, it says 'error connecting'.–
WP v3.6.1 – WP is not installed in the root folder – It also breaks a feed with 
the 'Super RSS Reader' plugin resulting in an error: Fatal error: Cannot make static
method SimplePie_Cache::create() non static in class WP_Feed_Cache in <WP install
path>/wp-includes/class-feed.php on line 16. Also strange, on their website they
mention that they will fix a few things in version 1.2 but the current version is
2 years old.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/garmin-connect/reviews/)

## 贡献者及开发者

「Garmin Connect」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ codedrobot ](https://profiles.wordpress.org/codedrobot/)

[帮助将「Garmin Connect」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/garmin-connect)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/garmin-connect/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/garmin-connect/)，或通过[RSS](https://plugins.trac.wordpress.org/log/garmin-connect/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/garmin-connect/)。

## 更新日志

#### 1.1.8

 * Fixed bug with signin caused by latest release of Garmin Connect website
 * Updated version of SimplePie included
 * Minor bug fixes – thanks to JohnD

#### 1.1.5

 * Bug fix where plugin was unable to retrieve activities

#### 1.1.4

 * Readme Fix

#### 1.1.3

 * Fixed bug with previous release related to dates of Jan 1, 1970
 * Updated permissions so the regular administrator of a blog in a multi-blog site
   install can configure Garmin Connect settings

#### 1.1.2

 * Fixed issue where some activities would always return date of Jan 1, 1970
 * New option to set the date and time format for the accordion style widgets

#### 1.1.1

 * Misc Bug Fixes
 * Fix styling of widget title to be consistent with other WP plugins
 * Fix bug where issues occurred if wordpress was not installed in root directory.

#### 1.1.0

 * Support for WordPress 3.0
 * Added shortcode to allow automatic creation of a Google Map from a Garmin Connect
   activity.

#### 1.0.3

 * Fixed bug with signin caused by latest release of Garmin Connect website

#### 1.0.2

 * Fixed bug due to new version of Garmin Connect that broke the plugin

#### 1.0.1

 * Fixed bug where cadence was not displayed for cycling activities
 * Fixed a few CSS issues
 * Added message that PHP5 is required.

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.1.8**
 *  最后更新：**14 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/garmin-connect/)
 * 标签
 * [fitness](https://cn.wordpress.org/plugins/tags/fitness/)[garmin](https://cn.wordpress.org/plugins/tags/garmin/)
   [gps](https://cn.wordpress.org/plugins/tags/gps/)[sports](https://cn.wordpress.org/plugins/tags/sports/)
 *  [高级视图](https://cn.wordpress.org/plugins/garmin-connect/advanced/)

## 评级

 1 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/garmin-connect/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/garmin-connect/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/garmin-connect/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/garmin-connect/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/garmin-connect/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/garmin-connect/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/garmin-connect/reviews/)

## 贡献者

 *   [ codedrobot ](https://profiles.wordpress.org/codedrobot/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/garmin-connect/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://garminconnect.codedrobot.com/)