1.1.0 • Published 5 years ago

noko-overtime v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

noko-overtime

Node.js CLI tool for calculating overtime for nokotime.com.

NOTE: Currently does not support selecting a user. This tool will only be beneficial to you if you are the sole person making entries in your Noko sub-domain.

How to use

To install:

npm install noko-overtime -g

To run the initial setup:

noko-overtime configure

To calculate overtime:

noko-overtime

For help:

noko-overtime -h

FAQ

Where do I get my Noko API authentication token?

  • Log in to your Noko sub-domain
  • From the bar on the left select Integrations & Apps
  • Click the Noko API tab
  • Click on the Settings... button next to API v1 Token
  • Click on click to reveal to get the token
  • Then copy/paste the token into the command line

How does the overtime calculation work?

  • If there is at least one time entry on a work-day (default: Mon, Tue, Wed, Thu, Fri), we assume it is an actual work day
  • If there is no time entry on a work-day, we assume it is a holiday or vacation. Might seem dangerous at first, but this makes using the tool a lot easier.
  • If it is a work day then calculate overtime: daily overtime = sum(all time entries for that day) - configured working hours per day
  • For non work-days (default: Sat, Sun) we do not subtract the configured working hours. Basically all time entries on such a day will be added to overtime. The calculation becomes: daily overtime = sum(all time entries for that day)

How do I use overtime in the tool?

Just work less than you are supposed to. If you are supposed to work 8 hours each day and you only make time entries for 6 hours, then 2 hours will be deducted from your overtime.

If you want to take a full day off then just add a time entry with zero hours.