Skip to content

This is a Flask web application that uses the Garmin Connect API to retrieve user activity data for a given date and display it on a web page.

Notifications You must be signed in to change notification settings

nohaelgendy/flask-garminconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is a Flask web application that uses the Garmin Connect API to retrieve user activity data for a given date and display it on a web page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published