Skip to content

A CLI tool to calculate working hours logged in the Time@Web application

License

Notifications You must be signed in to change notification settings

samuelru/timeweb-genie-neo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timeweb Genie Neo

A CLI tool to calculate working hours logged in the Time@Web application.

⚠️ WARNING
This is a beta release and errors may occur.

Installation

  1. Create a ~/.timeweb-genie.json file (in your home directory):

    {
      "timewebUrl": "https://.../TwNet.dll",
      "username": "...",
      "password": "..."
    }

    Optional config options:

    • justificationTypesNotCountingAsWorkingTime: Overwrite the default types to subtract from the working times (array of strings)
    • targetWorkingHours: Overwrite the default target working hours (number)
    • targetBreakMinutes: Overwrite the default lunch break time (number)
  2. Simply run it with

    npx timeweb-genie-neo

    or for specific date range

    npx timeweb-genie-neo 01/10/2022 31/10/2022

Contributing

Feel free to send a pull request if you want to add any features or if you find a bug. Check the issues tab for some potential things to do.

Development

# Install dependencies
yarn install

# Run typescript compiler in watch mode
# This generates js application in /dist folder
yarn dev

# Execute application
node dist/application.js

Debugging

Make sure to run the typescript compiler on watch mode by executing yarn dev.

Add Jetbrains Run/Debug Configuration: Alt text

License

License: MIT

About

A CLI tool to calculate working hours logged in the Time@Web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.3%
  • JavaScript 5.7%