GithubHelp home page GithubHelp logo

jamesbiederbeck / toggl_target Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mos3abof/toggl_target

0.0 1.0 0.0 84 KB

A little project to make sure I keep on track of my monthly goals of working hours.

Home Page: http://mos3abof.github.io/toggl_target/

License: GNU General Public License v2.0

Python 100.00%

toggl_target's Introduction

Toggl Target

Codacy Badge

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.

You will need to install requests and dateutil python libraries to be able to use this.

Installation on linux

If you are using linux, you most probably have Python already installed on your machine. If not, use your distro's package management system to install Python 2.7

  • Download and extract the source code from here
  • Navigate to the extracted directory and run the following command to install the required packages :
$ pip install -r requirements.txt
  • Copy config.py-example to config.py
  • In config.py add your Toggl API token, which can be found in your Toggl account's settings.
  • Change other values in config.py to match your case

Installation on Windows

  • If you don't have Python installed, then you must install Python 2.7 from here
  • Open the Windows command shell
  • In the command shell, run the following commands
python distribute_setup.py
easy_install pip
pip install python-dateutil requests
  • Download toggl_target from here
  • Extract the downloaded zip file, copy config.py-example & paste it as config.py beside run.py
  • Change your API key in config.py Your Toggl API token can be found in your Toggl account's settings.
  • Run python run.py

Usage

To use the script run the following command :

$ python run.py

The output will be something like :

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% [=================================================--------------|------]

Contributores

Support or Contact

If you have trouble using this code, your can contact [email protected] and I’ll help you sort it out if I have enough time :).

Bug Reports & Feature Requests

To report bugs, issues or feature requests please use the Issues Queue on this Github repository to make it easier for me to maintain. Please don't send those to my email.

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/>.

toggl_target's People

Contributors

mos3abof avatar mtayseer avatar himanshugarg avatar codacy-badger avatar xyb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.