Skip to content

AlexTelon/ActivityTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows Activity Tracker

This is a local only way to track your activity on Windows. It runs in the background and periodicaly checks for which window is active and logs it to a local sqlite database.

The code for this is short and easy to modify.

There is also a configuration file patterns.json that allows you to specify which patterns to match for. I should create a tool to more easily debug this. I basically ran a modified main that looked at the current window every second only printed the result of the regex match. If it did not match it wrote the window title and the classname. That way you can quickly debug which patterns you need to add/change for the tools you are using daily.

Then there are some tools to visualise the data. But with chatGPT it should be easy to generate your own if I never get around to improve these myself.

These two visualisation tools are currently available:

  • activity_tracker/calendar_view.py
    • You select a day on a calendar and get a plot for what during that day at what time
  • activity_tracker/piechart.py
    • Produces a piechart of the total time spent across all data.

You can also just run python activity_tracker/database.py to get a line-by-line view of the data stored in the db.

Setup

pip install .
activity_tracker
# this will now run and track your activity and store it.
# Data is store to the local file: time_tracking_data.sqlite

About

A local only activitytracker for windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages