Giter VIP home page Giter VIP logo

timewatch's Introduction

Version Status

timewatch

Tired of reporting work hours every day/month? Your boss trusts you with your time, but HR demands you fill timewatch's form? You're too preoccupied with work, and forget filling up timewatch.co.il?

We've all been there, just set up a monthly timewatch cron and get back to work!

What is this?

This script automatically sets default working hours for all work days using timewatch.co.il's web interface. It reads expected work hours for each day and automatically sets each day's work to that amount. It is therefor handling govt. off days and weekends, and is quite configurable.

Usage

To report required working hours for the current month, simply execute ./main.py <company id> <employee number> <password>

Full usage and functionality

usage: main.py [-h] [-y YEAR] [-m MONTH] [-v] [-o {all,incomplete,regular}]
               [-s STARTTIME] [-j JITTER]
               company user password

Automatic work hours reporting for timewatch.co.il

positional arguments:
  company               Company ID
  user                  user name/id
  password              user password

optional arguments:
  -h, --help            show this help message and exit
  -y YEAR, --year YEAR  Year number to fill
  -m MONTH, --month MONTH
                        Month number or name
  -v, --verbose         increase logging level
  -o {all,incomplete,regular}, --override {all,incomplete,regular}
                        Control override behavior. all - override all working
                        days, unsafe to vacation/sick days. incomplete = only
                        override days with partial records. regular - override
                        regular days (without absence reason) only
  -s STARTTIME, --starttime STARTTIME
                        punch-in time
  -j JITTER, --jitter JITTER
                        punching time random range in minutes.

Installation

git clone https://github.com/nirizr/timewatch.git
cd timewatch
pip install -r requirements.txt

or

pip install timewatch --target './'
cd timewatch
./main.py <args>

Known issues

  • Doesn't sign the doc (I suggest you do it manually after reviewing there are no bugs in the report).
  • no support for reporting vacation/sick days through the script yet (You can report using timewatch's web interface before/after running the script)

timewatch's People

Contributors

nirizr avatar shiftre avatar assafs avatar

Stargazers

 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.