Skip to content

๐Ÿ•’ This code tracks and stores time spent on different activities using classes and methods that interact with Windows and Google Chrome. It also plots a graph of the activity durations over time using Matplotlib.

License

Notifications You must be signed in to change notification settings

TheHumanoidTyphoon/activity-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Activity Tracker

The Activity Tracker is a Python program that tracks the amount of time spent on various activities, such as working on a project or browsing the internet. It records the start and end times for each activity and stores them in a JSON file, which can be used to visualize the duration of each activity over time.

Preview

Prerequisites

Before running the Activity Tracker, you must have the following dependencies installed:

  • matplotlib
  • dateutil
  • uiautomation
  • win32gui

It is recommended to use a virtual environment for running the Activity Tracker. If you do not have a virtual environment set up, follow these steps:

  • Install virtualenv by running the following command: pip install virtualenv
  • Create a new virtual environment by running the command: virtualenv venv
  • Activate the virtual environment by running the command: source venv/bin/activate on Linux/Mac or .\venv\Scripts\activate on Windows.
  • Install the required dependencies using pip: pip install -r requirements.txt

Installation

To install the Activity Tracker, follow these steps:

  • Clone the repository to your local machine.
  • Navigate to the project directory in your terminal.
  • Activate the virtual environment using the above-mentioned commands.
  • Install the required dependencies using pip: pip install -r requirements.txt
  • Run the program: python activity_tracker.py

Usage

To use the Activity Tracker, follow these steps:

  • Start the program by running activity_tracker.py.
  • The program will track your activity in real-time and log it to a JSON file named activities.json.
  • Once the program is finished running, the graph of your activity over time will be displayed automatically.

License

This program is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please create an issue on the GitHub repository.

About

๐Ÿ•’ This code tracks and stores time spent on different activities using classes and methods that interact with Windows and Google Chrome. It also plots a graph of the activity durations over time using Matplotlib.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages