LeTime is a desktop application activity tracker, similar in functionality to applications like ActivityWatch. It's built with a C++ backend for tracking application usage and a Python/Flask frontend for a web-based user interface to visualize the data.
Note: To be fair I'm not actively maintaining this app currently 👍 At least for now. A lot of things doesn't work and a lot of things are still not added. This was supposed to be my "I want to learn C++" project, but after a while I decided I'd had enough, so I'm leaving it for now. But if you want you can add it yourself. 💀💀💀
| Light Mode | Dark Mode |
|---|---|
- Application Usage Tracking: Monitors the time spent on various applications.
- Data Persistence: Saves daily usage data to a CSV log file.
- Web-Based Dashboard: Provides a clean and interactive dashboard to visualize your activity.
- Daily Summary & Trend Analysis: Displays total time usage for a selected day and a trend chart for recent activity.
- Dark Mode: A toggle for a more comfortable viewing experience.
Dark Mode doesn't fully work, text color is kinda the same as background in dark mode.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need the following installed:
- A C++ compiler (e.g., MinGW, MSVC)
- Python 3.x
- pip (Python package installer)
The project also has a requirements.txt file which you will need to install.
-
Clone the repository:
git clone [https://github.com/McDjXdLol/LeTime.git](https://github.com/McDjXdLol/LeTime.git) cd LeTime -
Install the required Python packages:
pip install -r requirements.txt
-
Build the C++ backend: Navigate to the directory containing
main.cppand compile it. The executable file must be namedapp.exefor the Python script to find it.Example using g++ (on Windows):
g++ main.cpp -o app.exe
-
Run the Python application: After building the C++ executable, start the main Python script from the project's root directory. This script will launch both the C++ tracker and the Flask web server.
python main.py
-
Access the Dashboard: Open your web browser and navigate to the local server address (usually
http://127.0.0.1:5000) to view your activity dashboard.
main.cpp: The C++ backend for tracking active applications and saving data.main.py: The Python application that manages the C++ process and serves the web frontend.front/main.py: The Flask web server that handles the API and serves the dashboard.front/index.html: The web-based dashboard interface.front/logs/: Directory where the daily CSV logs are stored.requirements.txt: A list of all required Python libraries.