Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.24 KB

README.md

File metadata and controls

64 lines (39 loc) · 1.24 KB

Garmin Connect Flask App

This is an example flask web framework app that are using Python 3 API wrapper for Garmin Connect to get your activity data.

Resources

  1. https://connect.garmin.com/
  2. https://pypi.org/project/garminconnect/
  3. https://github.com/cyberjunky/python-garminconnect

Setup

  1. Install python if you don't have it.

  2. Clone this repository. https://github.com/nohaelgendy/flask-garminconnect.git

  3. Navigate into the project directory:

    $ cd flask-garminconnect
  4. Create a new virtual enviroment:

    Note: When running the commands, you may need to type python3/pip3 instead of python/pip depending on your setup.

    $ python -m venv venv
    $ . venv/bin/activate
  5. Install the dependencies (python pacakages) listed in "requirements.txt" file:

    $ pip install -r requirements.txt
  6. Create the enviroment variables file ".env":

    $ touch .env
  7. Add this variables and your garmin connect "EMAIL", "PASSWORD" to the .env file:

     FLASK_APP=app
     FLASK_ENV=development
    
     EMAIL = "[email protected]"
     PASSWORD = "example123"
  8. Run the app:

    $ flask run