Python-based tool that leverages NLP and Sheety APIs to help users log their physical activities and monitor their fitness progress. With this application, users can seamlessly track their exercises, calculate calories burned, and store their activity data in a structured format.
- ๐ Utilizes a Natural Language Processing (NLP) API to interpret and analyze exercise descriptions.
- ๐ Automatically calculates the calories burned based on the type and duration of the exercise.
- โ๏ธ Users can log various exercises with different types, durations, and intensities.
- ๐ฏ Flexibility to input any form of physical activity and get structured data in return.
- ๐๏ธ Logs exercise details including duration, calories burned, date, and time to a Google Sheet using the Sheety API.
- ๐ Automatic updates ensure all exercise data is recorded in real-time.
- ๐ Provides detailed records of exercises, enabling users to analyze their physical activity trends over time.
- ๐ Offers insights into exercise frequency, calorie expenditure, and overall fitness progress.
- ๐ ๏ธ Install necessary Python packages (
requests
for API interactions). - ๐ Set up your NLP and Sheety API configurations.
- โ๏ธ Define your personal details (gender, weight, height, age) and API keys in the
config.py
file. - ๐ Configure Sheety to connect your Google Sheet for data logging.
- ๐ Log daily exercises by entering the type and duration of the activity.
- ๐ The application processes this input using the NLP API and sends the data to Sheety, updating the Google Sheet.
- ๐ View your logged exercise data in the connected Google Sheet.
- ๐ Analyze performance trends and statistics using the visual insights provided by the Google Sheet graphs.
- โฌ๏ธ Clone the repository and navigate to the project directory.
git clone https://github.com/yourusername/exercise-tracker.git cd exercise-tracker
- ๐ฆ Install the required dependencies:
pip install requests
- ๐ Set up your API keys and personal details in
config.py
:BASE_URL = "https://api.your_nlp_api.com" NATURAL_LANGUAGE_ENDPOINT = "/v2/natural_language_processing/exercise" URL = "https://api.sheety.co/your_project/sheet" APP_ID = "your_app_id" API_KEY = "your_api_key" GENDER = "your_gender" WEIGHT_KG = your_weight_in_kg HEIGHT_CM = your_height_in_cm AGE = your_age
- ๐ Run the application:
python main.py
- ๐โโ๏ธ Enter your exercise details when prompted:
What exercise have you completed?
Contributions are welcome! Please create an issue or submit a pull request for any improvements or bug fixes.
For any questions or inquiries, please contact [[email protected]].