Skip to content

The workout tracking project utilizes Sheety API and Google Sheets to record users' exercise activities. It offers a user-friendly command-line interface for inputting workout details, which are then automatically stored and updated in a Google Sheets spreadsheet in real-time.

Notifications You must be signed in to change notification settings

Manjunathhs-0003/Workout-Tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Workout Tracking Project

Overview:

The workout tracking project utilizes Sheety API and Google Sheets to track and record users' workout activities. Users can input their exercise details, such as exercise name, duration, and the data is stored in a Google Sheets spreadsheet via Sheety API.

Features:

  • User-friendly command-line interface for entering workout details.
  • Automatic recording of workout data in a Google Sheets spreadsheet.
  • Real-time tracking of exercise name, duration, and calories burned.

How the Project Works:

  1. User Input: Users input their exercise details, including exercise name, duration through a command-line interface.
  2. Nutritionix API: The entered exercise details are sent to the Nutritionix API to retrieve nutritional information.
  3. Sheety API: The retrieved exercise data is then sent to the Sheety API, which stores it in a Google Sheets spreadsheet.
  4. Google Sheets: The workout data is updated in real-time in the Google Sheets spreadsheet, allowing users to track their exercise activities.

Installation Guide:

  1. Clone the Repository:
  2. git clone https://github.com/Manjunathhs-0003/Workout-Tracking.git

  3. Navigate to the Project Directory:
  4. cd workout-tracking-project

  5. Install Required Libraries:
  6. pip install requests

  7. Set Up API Keys and Endpoints:
  8. Obtain API keys and endpoints for Sheety API and Google Sheets API as mentioned in the documentation.

  9. Update Python Script:
  10. Replace the placeholder API keys and endpoints in your Python script with the actual ones obtained from the documentation.

  11. Run the Script:
  12. python main.py

APIs Used:

  • Sheety API: Used to interact with Google Sheets and store workout data.
  • Google Sheets API: Used to access and update Google Sheets spreadsheet data.
  • Nutritionix API: Used to retrieve nutritional information for exercises entered by users.

Workout Tracking Project Documentation

1. Obtain API Keys and Endpoints:

Sheety API:
Sign up or log in to Sheety (https://sheety.co/).
Create a new project or select an existing one.
In your project settings, you will find your Sheety API key.
You can also find the endpoint for your project, which you'll use to make requests to Sheety.

Google Sheets API:
Go to the Google Developers Console (https://console.developers.google.com/).
Create a new project or select an existing one.
Enable the Google Sheets API for your project.
Create credentials for your project and download the JSON file containing your client secret.
You will use this file to authenticate requests to the Google Sheets API.

2. Install Required Libraries:

You'll need the requests library to make HTTP requests in Python. You can install it using pip:

pip install requests

3. Set Up Python Script:

You've already started with your Python script. Ensure you have the necessary imports, variables for user data (like gender, weight, height, age), and endpoints for the Sheety API and Nutritionix API.

4. Make Requests:

Use the requests library to make POST requests to the Sheety API endpoint with workout data. You'll need to include the Sheety API key in the request headers.

5. Update Google Sheets:

After receiving a successful response from Sheety, you can update your Google Sheets with the workout data. Use the Google Sheets API for this purpose. You'll need to authenticate your requests using the client secret JSON file.

Documentation:

Here are the documentation links you can refer to for obtaining API keys and endpoints:

About

The workout tracking project utilizes Sheety API and Google Sheets to record users' exercise activities. It offers a user-friendly command-line interface for inputting workout details, which are then automatically stored and updated in a Google Sheets spreadsheet in real-time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages