Log, analyze, and visualize when you were using your computer.
This package is currently not on PyPI. You need to install it manually:
$ git clone git@github.com:MartinThoma/activity_tracker.git ~/activity_tracker
$ cd ~/activity_tracker
$ pip install -e .
Some additional dependencies you might want to install:
# Dependencies of xprintidle
sudo apt-get install python3-dev libx11-dev libxss-dev
# System dependencies for the autostart option
sudo apt-get install screen
$ activity_tracker --help
Usage: activity_tracker [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
log-activity
visualize
Start tracking:
$ activity_tracker log-activity
Token: 383d723a-85bb-4a88-89db-5e74fefa6ba3
Store activity log at: /home/moose/activity_log/2021-11-04.csv
last_activity: 150
...
This produces a CSV file like this. That CSV can be visualized via:
$ activity_tracker visualize --help
Usage: cli.py visualize [OPTIONS]
Options:
-i, --input FILE [required]
-o, --output FILE [required]
--help Show this message and exit.
This depends very much on your operating system.
On Ubuntu, you can install screen
:
sudo apt-get install screen
and add this line to your ~/.profile
or ~/.bashrc
:
python -m activity_tracker autostart