Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.
/ fitbit-widget Public archive

A simple project to allow users to browse fitbit data on mobile devices and to embed in other pages

Notifications You must be signed in to change notification settings

danmayer/fitbit-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitbit widget

A simple app to help users brows fitbit data on mobile devices or embed it in webpages.

Demo Site: http://fitbit-widget.heroku.com

Also a example of how to build mobile sites which can power mobile apps.

GETTING STARTED

  • There is no rake task to install gems for you. Look at the requires at the top of fitbit-widget.rb
  • Also you can look at the .gems file which installs gems on Heroku
  • Unfortunately to really try this code you need a fitbit account
    • set fitbit_email and fitbit_pass to your environment to get tests or the project working
    • you can do this via fitbit_email=my@email.com fitbit_pass=pass ruby fitbit-widget.rb or set them in your .bash_profile
  • rake, to run the tests
  • ruby fitbit-widget.rb to start the sinatra server
  • Install gems that are in the .gems file, and install do_mysql, do_posgress, or do_sqlite3 depending on which DB you wish to dev on.
  • install json gem
  • ruby fitbit-widget.rb

Author

  • Dan Mayer (@danmayer)

TODO

  • work on caching all the files/CSS/images / minifying them all as part of deployment process
  • make it easier to get up and running (rake gems install?, bundler?)
  • log currently logs password, apply a filter to the log to not record passwords.
  • Use progressive updating via jquery opposed to the hardcoded onclick function calls.
  • move sinatra simple account to gem and provide plugin mechanism.
    • ie use SinatraSimpleAccount :success => x, :protocall => {} , etc
    • clean up and make all the above options setable
  • Android menu with actual quit option (close option)
  • larger clickable links in the UI
  • add viewable notice for offline mode
  • Real cached assests
  • Better shared image solution than local images and full page to site images, same relative path.
  • Add arbitrary background tracking using accelerometers and/or GPS, so non fitbit users can have a value.
  • Food Log frequently double submits the food (disable form on submit)
  • Updates parts of the Ruby API to use the new fitbit api
  • fitbit-widget dates seem skewed by one
  • use the html5 email attribute form field for the login

About

A simple project to allow users to browse fitbit data on mobile devices and to embed in other pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published