這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Groovy Fitness Shortcodes

外掛說明

A plugin that uses Oauth2 authorisation code flow to grab your Fitbit statistics and you can place them anywhere on your site with the use of shortcodes.

The plugin currently only supports steps, but there will be other metrics added very soon.

Fitbit Shortcodes uses WP_CRON to grab API updates, it will not work when this is disabled. This also means stat updates are dependent on your site’s traffic and activity. See FAQ for more details.

Important: This plugin relies on the Fitbit API to work, and as such it collects and shares data from a third party source. As part of the plugin setup you will be asked if you want to share data from Fitbit to it.

Currently the only shortcodes are for your steps taken and steps goal, which are [fitbitsteps] and [fitbitsteps-goal] respectively.

安裝方式

  1. Download and extract plugin files to a wp-content/plugin directory.
  2. Activate the plugin
  3. Navigate to ‘Settings’ > ‘Groovy Fitness Shortcodes’ in the WordPress dashboard.
  4. Follow the steps given, hit save.
  5. Hit the ‘authorise with Fitbit link’
  6. Place your shortcodes where you want the data to appear on your site.

常見問題集

How do I obtain my Fitbit user ID?

Login on fitbit.com and select your profile avatar from the top right hand side. Your profile URL will be displayed there including your unique profile ID.

WP_CRON and making the stats update

The plugin is dependent on WP_CRON – meaning this must be enabled, which it is by default on most WordPress sites. WP_CRONs are triggered by site activity, so they may not always update at the exact cron intervals.

My stats have stopped displaying

Check your Fitbit App at dev.bitbit.com – ensure your Client ID, Secret and callback URI are all set to the same values displayed there. If so, save them again and click the ‘authenticate with Fitbit’ link again. They should appear soon after.

Feedback and bugs

Please either contact me via albinofruit.com/contact if you have any questions and wish to get in touch ASAP. I will also check the WordPress forum regularly for feedback and to help with issues.

What metrics are being added soon?

Calories, Heartrate, floors, active minutes, water, sleep.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Groovy Fitness Shortcodes〉的開發相關工作。

參與者

將〈Groovy Fitness Shortcodes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。