Keeping an eye on your tracked time.
At work, we track our working hours on Toggl (www.toggl.com), so I created this small project to calculate how many hours I should work to achieve my monthly goals.
Installation on Windows
- If you don't have Python installed, then you must install Python 2.7 from here
- Download the file
- Press the start button, select run, and run
cmd.exe
-
In the command shell, run these commands
python distribute_setup.py easy_install pip pip install python-dateutil requests
- Download toggl_target from here
- Expand the downloaded zip file, copy
config.py-example
& paste it asconfig.py
besiderun.py
- Change your API key in
config.py
- Run
python run.py
Example Usage
Then run the following command
$ python run.py
The output will look something like this :
Hi
Hi
Checking Internet connectivity...
Internet seems fine!
Trying to connect to Toggl, hang on!
So far you have tracked 120.00 hours
Business days left till deadline : 7
Total days left till deadline : 10
Required working hours for this month : 170
To achieve the minimum :
you should log 4.00 hours every business day
or log 3.00 hours every day
To achieve the required :
you should log 7.00 hours every business day
or log 5.0 hours every day
So far you have achieved:
70.59% [=================================================--------------|------]
Authors and Contributors
In June 2013, @mos3abof started this project and had plenty of help and guidance from @mtayseer
Support or Contact
Having trouble using this code, your can contact toggl@mos3abof.com and I’ll help you sort it out if I have enough time :).
Bug Reports & Issues
To report bugs, issues or feature requests please use the Issues Queue on the Github repository to make it easier for me to maintain.
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.