Skip to content

xxmacoxx/fastbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fastbit

It is a program that allows you to be able to quickly register the activities that often use Fitbit. I assume the activities that are fixed, such as a lesson to be performed weekly.

This program use the following services, API, package.

  1. Get Started

1.1. Authentication key settings for each service.

You must register in advance activity. Please create a data.json file in json format. Example fastbit_config.sample.php:

define("FITBIT_KEY", "XXXXXXXXXX");
define("FITBIT_SECRET", "XXXXXXXXXX");

define("TWITTER_KEY", "XXXXXXXXXX");
define("TWITTER_SECRET", "XXXXXXXXXX");

define("TWITTER_ACCESS_TOKEN", "XXXXXXXXXX");
define("TWITTER_ACCESS_TOKEN_SECRET", "XXXXXXXXXX");

1.2. Set of activities.

First, pre-registered activities. Create a data.json file in json format. Example data.sample.json:

{
    "ShapeBoxig"  : {
        "name" : "ShapeBoxig", 
        "activityId" : "365236",
        "duration" : "3000000",
        "calories" : "434", 
        "startHour" : "21", 
        "startMinute" : "35"
    },
    "Kickboxing_sat"  : {
        "name" : "FIGHT DO", 
        "activityId" : "55002",
        "duration" : "3600000",
        "calories" : "465", 
        "startHour" : "20", 
        "startMinute" : "50"
    }
}
  • name
    • The display items tweet.
  • activityId
    • id of the activity, directory activity or intensity level activity.
  • duration
    • in milliseconds.
  • calories
    • amount of calories defined manually.
  • startHour
    • hours in the format HH.
  • startMinute
    • minutes in the format mm.

The information you configure, Please make sure you get the activity of the past getActivities method of Fitbit API. http://dev.fitbit.com

  1. How to use ?

Access to html/index.html, please select the button of activity that is displayed.

index.html

It is useful to add Website Icon on an iPhone 5 Home Screen.

licence

Please follow the license of each for each library in the lib below.

About

Quickly register the Fitbit activity that you use frequently.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors