<commit_before>= ruby-fitbit

This is a Ruby API for the fitbit and the data at fitbit.com 

Currently the gem uses screen scraping to get the data, but it will switch over to use the official API once available. The current set of data it retrieves is pretty limited, but it should grow over time. Originally built just to display a dashboard of my current fitbit stats on my blog.

== Usage

   install
   `gem install ruby-fitbit`

   run
   `ruby-fitbit <EMAIL> YourPassword`

   ruby usage
   require 'ruby-fitbit'
   fitbit = RubyFitbit.new(EMAIL,PASSWORD)

   puts "Calories Burned #{fitbit.calories}"
   puts "Steps Taken #{fitbit.steps}"
   puts "Milkes Walked #{fitbit.miles_walked}"
   puts "Activity Levels Durations:"
   puts "Sedentary #{fitbit.sedentary_active}"
   puts "Lightly #{fitbit.lightly_active}"
   puts "Fairly #{fitbit.fairly_active}"
   puts "Very #{fitbit.very_active}"

   output
   ~/projects/ruby-fitbit(master) > ruby bin/ruby-fitbit <EMAIL> MYPASS
   Calories Burned 803
   Steps Taken 552
   Milkes Walked .23
   Activity Levels Durations:
   Sedentary 11hrs 1min
   Lightly 18min
   Fairly 16min
   Very 0min
  
  done


== TODOs

* Get data from any date not just current data
* get the minute by minute calorie chart breakdowns
* get food intake tracked etc
* add ability for gem to write data to fitbit, such as log and food entries
* build everything needed for a nice fitbit IPhone app to use this API.

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright<commit_msg>updated readme formatting<commit_after>= ruby-fitbit

This is a Ruby API for the fitbit and the data at fitbit.com 

Currently the gem uses screen scraping to get the data, but it will switch over to use the official API once available. The current set of data it retrieves is pretty limited, but it should grow over time. Originally built just to display a dashboard of my current fitbit stats on my blog.

== Usage

   install
   `gem install ruby-fitbit`

   run
   `ruby-fitbit <EMAIL> YourPassword`

   ruby usage
   require 'ruby-fitbit'
   fitbit = RubyFitbit.new(EMAIL,PASSWORD)

   puts "Calories Burned #{fitbit.calories}"
   puts "Steps Taken #{fitbit.steps}"
   puts "Milkes Walked #{fitbit.miles_walked}"
   puts "Activity Levels Durations:"
   puts "Sedentary #{fitbit.sedentary_active}"
   puts "Lightly #{fitbit.lightly_active}"
   puts "Fairly #{fitbit.fairly_active}"
   puts "Very #{fitbit.very_active}"

   output
   ~/projects/ruby-fitbit(master) > ruby bin/ruby-fitbit <EMAIL> MYPASS
   Calories Burned 803
   Steps Taken 552
   Milkes Walked .23
   Activity Levels Durations:
   Sedentary 11hrs 1min
   Lightly 18min
   Fairly 16min
   Very 0min
  
   done


== TODOs

* Get data from any date not just current data
* get the minute by minute calorie chart breakdowns
* get food intake tracked etc
* add ability for gem to write data to fitbit, such as log and food entries
* build everything needed for a nice fitbit IPhone app to use this API.

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright
{'fraction_non_alphanumeric': 0.06297559695617948, 'fraction_numerical': 0.00839674626082393, 'mean_word_length': 3.603864734299517, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2911206', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1127, 'n_words': 533}