Skip to content

Track your screen time and turn it into insights, stats, and creative equivalents.

Notifications You must be signed in to change notification settings

lotouux/lost-time-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⏳ Lost Time Tracker

Status Python License

πŸ“Œ Overview

Lost Time Tracker is a Python project that analyzes system usage logs and estimates how much time you spend in different applications.

It generates weekly reports with detailed statistics and translates wasted time into creative equivalents, such as:

  • How many books you could have read πŸ“š
  • How many movies you could have watched πŸŽ₯
  • How many kilometers you could have run πŸƒ

The project now includes automatic application categorization using Hugging Face's Zero-Shot Classification and shows a progress bar for classification with tqdm.


πŸš€ Features

βœ”οΈ Collects running process data from the operating system
βœ”οΈ Automatic app categorization (Browser, Games, Productivity, etc.) using AI
βœ”οΈ Classification progress shown with a progress bar
βœ”οΈ Reports in tables (terminal output)
βœ”οΈ Stats per category and per application
βœ”οΈ Creative conversion of hours β†’ productivity (e.g. books, movies, km run)

πŸ› οΈ Planned:

  • Export reports to .txt and .pdf
  • Graphs with matplotlib
  • Cross-platform support (Windows, macOS, Linux)

πŸ› οΈ Technologies

  • Python 3.12
  • Main libraries:
    • wmi β†’ process collection on Windows
    • pandas β†’ data handling
    • tqdm β†’ classification progress bar
    • transformers β†’ zero-shot classification of apps
    • tabulate / prettytable β†’ terminal table reports
    • matplotlib β†’ chart generation (planned)

πŸ“Š Example Output

 --- Screen Time Report (Last 7 Days) ---
 
Estimated Total Screen Time: 45.23 hours

Total Process Execution Time by Category:
Productivity     18.50
Browser          12.30
Games             8.20
Entertainment     5.80

You could have read 2.05 books (10h each) with the time spent on games and browsing.

πŸ“Œ Roadmap

  • Historical data collection (last 7 days)
  • Automatic AI-based app categorization
  • Classification progress display (tqdm)
  • Usage reports by category
  • Creative conversions (books, movies, marathons, km run)
  • Report export (.txt, .pdf)
  • Graphical visualization with matplotlib
  • Cross-platform support (Windows, macOS, Linux)

βš™οΈ How to Run

  1. Clone the repository:
git clone https://github.com/lotouux/lost-time-tracker.git
  1. Create and activate a virtual environment (optional but recommended):
python -m venv venv
# On Windows
.venv\Scripts\activate
# On macOS/Linux
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the script:
python main.py

πŸ“œ License

This project is under the MIT License – feel free to use, modify, and contribute.


🀝 Contribution

Contributions are welcome!

Suggestions, improvements, and new ideas can be discussed via issues or pull requests.

About

Track your screen time and turn it into insights, stats, and creative equivalents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages