Skip to content

esseti/-schrodinger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-schrodinger

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.

log

the new version also manages logs, so you can log your activity in a semi-autoamted way, check log.py (with -t -s options)

Demo

asciicast

Install

The script to create the files (status.py) is in python2, compatible with python3 the show.py script is python3 only

For collecting data:

  • 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

For logging data

  • 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 did writing then lunch with --last it stores writing. It ignores - status)

Note: status starting with - will be set as sleep

For displaying the data

  • 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 the DATA FOLDER
  • -m: the interval in minute, default is 5 for small terminal use 10 or more
  • -d: the day to print, in the form of YYYYMMDD if not specified, it's today
  • -v: enable the verbose version, works only for single day (not with the -a)
  • -b: the hour from where the printing start (default 8)
  • -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

About

auto-tracking of time spent at the PC

Resources

License

Stars

Watchers

Forks

Packages

No packages published