Tracks the time spent on the MAC.
it does so by tracking:
- screen On/Off
- Startup (same as screen on)
- Shutdown (specific command)
It's written in python and uses few plist to trigger the scripts.
the new version also manages logs, so you can log your activity in a semi-autoamted way, check log.py (with -t -s options)
The script to create the files (status.py) is in python2, compatible with python3
the show.py script is python3 only
- Clone this repo
- go to
scripts chmod +x install.sh- run
bash install.sh(optionally specify the folder where the data must be stored, such as a dropbox folder) - it will ask for root password at some point
- launch
python3 log.py(you can make an alias)
the parameters are the following:
-s: how many mitues ago it started-t: when it started (hh:mm)--last: use as description the previous status (eg: you didwritingthenlunchwith --last it storeswriting. It ignores-status)
Note: status starting with - will be set as sleep
- install the
requirements.txt - launch
python3 show.py(you can make an alias)
the parameters are the following:
-a: prints all the day that are found in theDATA FOLDER-m: the interval in minute, default is5for small terminal use10or more-d: the day to print, in the form ofYYYYMMDDif not specified, it'stoday-v: enable theverbose version, works only for single day (not with the-a)-b: the hour from where the printing start (default8)-e: the hour till the print ends (default:20)-dh: Do NOT show the detail per hour-dc: Do NOT show the detail per category-l: Print detail of the daily log to be easily copied.--cron: cron notification for OSX