Skip to content

⌚️Python script to connect to Harvest API to find out my over- or undertime

Notifications You must be signed in to change notification settings

Brad-eki/timetracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timetracker

Get your time tracking data via Harvest API.

Getting started

Prerequisites

  • Docker 18 or later

Bootstrap

# Get the code, cd to timetracker, setup timetracker in Docker
git clone [email protected]:emazzotta/timetracker.git && \
    cd timetracker && \
    make bootstrap

Configuration/Authorization

  • Get your personal token here
  • Adapt the .env-file with your personal token
.env variable name Use Default
HARVEST_API_BEARER The harvest API Token None
HARVEST_API_ID The harvest API account ID None
WORK_WEEK_HOURS Hours in a regular full-time week 42
WORK_DAY_HOURS Hours of a regular full-time day 8.4
WORK_QUOTA_DATES Semicolon separated list of "date":"work quota"-combinations. E.g. the example reads starting from 2018-09-01 you worked 100% and from 2018-11-01 you worked 80% 2018-09-01:1; 2018-11-01:0.8

Run

make run

Example Output

Overtime

⏱ Contract: 42.0h / week (100.0%)
💰 You sold 515h of your time working 🤔
‍💻 On average you work 43.14h / week
✅ Overtime: 10.22h (1.22 working days)

Undertime

⏱ Contract: 42.0h / week (100.0%)
💰 You sold 515h of your time working 🤔
‍💻 On average you work 36.02h / week
🛑 Undertime: 53.78h (6.4 working days)

Author

Emanuele Mazzotta

About

⌚️Python script to connect to Harvest API to find out my over- or undertime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.0%
  • Makefile 21.5%
  • Dockerfile 3.5%