This is instruction how to make simple time tracking application for terminal on OS X.
Create new folder for storing records:
mkdir ~/worklogs cd ~/worklogs
Create new file
and add following content:
#!/bin/sh echo "[`date`] $1" >> ~/worklogs/`date "+%Y-%m-%d%n"` echo "Added in `date "+%Y-%m-%d%n"`"
Make link to the script to bin folder with
ln -s ~/worklogs/addlog.sh /usr/local/bin/addlog
Add the executing permissions
chmod u+x addlog.sh
Add a note:
addlog "I just wrote the best time tracking application"
or any other date.
Goto https://www.workingon.co/tools#webhook-api and copy the token.
Open ~/worklogs/addlog.sh and add
curl -X POST --data-urlencode "task=$*" https://api.workingon.co/hooks/incoming?token= >/dev/null 2>&1 echo "Task sent to workingon.co"
This is a result of being frustrated by our management trying to find perfect tool for tracking time, and logging who is working on what. Since we (developers) have always open our terminal this was a perfect solution however it all started as a joke.