fitgem ![Gem](https://img.shields.io/gem/dt/fitgem-app.svg?label=RubyGems downloads) ![Gem](https://img.shields.io/gem/v/fitgem-app.svg?label=On RubyGems)
A Ruby based Fitbit CLI client.
Fitgem is an interactive CLI Fitbit client that can grab your basic activities from Fitbit.com and print them on your console.
Contents
- Dependencies/Requirements
- Install
- RubyGems Method
- Portable Installation
- Basic Usage
- Slack Chat
Dependencies/Requirements
ruby
-
httparty
andmulti-json
libraries - Linux/Mac OSX
Install
- Install RubyGems (included with Mac)
- Clone the RubyGems repository.
```sh
$ git clone https://github.com/rubygems/rubygems.git
```
-
cd
into the repository.
```sh
$ cd rubygems
```
- Run
setup.rb
with root privileges.
```sh
# ruby setup.rb
```
- Install the
fitgem-app
gem.
# gem install fitgem-app
- Go to https://juniorrubyist.github.io/fitgem/authorize.html and click Authorize Fitbit.
- Sign in to Fitbit, then copy your keys to your
.bashrc
or default shell configuration:
export FB_ACCESS_TOKEN="YOUR_TOKEN_IN_QUOTES"
export FB_USER_ID="YOUR_USER_ID_IN_QUOTES"
- Type
fitgem <command>
in a terminal window.
Portable Installation
This method is not recommended for production uses.
- Clone the fitgem repository.
git clone https://github.com/juniorRubyist/fitgem.git
-
cd
intofitgem/bin
.
cd fitgem/bin
- Copy fitgem to your Desktop, home folder, etc.
cp fitgem /your/destination/folder
- Follow step 4 above.
-
chmod
fitgem
to775
. - Run
./fitgem <command>
from where you installed it.
Slack Chat
Please sign up for our Slack Chat here. ![Slack Chat Sign Up](https://img.shields.io/badge/slack chat-sign up-brightgreen.svg)
Access Slack Chat here. ![Slack Chat](https://img.shields.io/badge/slack chat-online-brightgreen.svg)
<> with <3 in California