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.
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
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
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.
This program is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you find a bug or have a feature request, please create an issue on the GitHub repository.