Skip to main content

Automatic hour fill for TimeWatch

Project description

AutoWatch

Setup:

pip install .

.env example:

COMPANY_NUMBER=123
EMPLOYEE_NUMBER=10
MY_EMPLOYEE_NUMBER=10
PASSWORD=whatever
START_TIME=0900
END_TIME=1800
AUTOMATIC_TIME_FRAME=True
FILL_MONTH=7
FILL_YEAR=2022

Information about environment variables

  • MY_EMPLOYEE_NUMBER - your own employee number, a safety measure for the case where EMPLOYEE_NUMBER is different because you filled hours for a colleague.
  • START_TIME - the time you came to the office (default is 09:00)
  • END_TIME - the time you left the office (default is 18:00)
  • AUTOMATIC_TIME_FRAME - if True, it will fill in 9 hours from START_TIME (unless it's a half day, then it'll fill in 5 hours). If False, it'll just use END_TIME
  • FILL_YEAR, FILL_MONTH - optional variables for if you need to fill a specific month and not the current month

Execution:

python -m autowatch.app

Project details


Release history Release notifications | RSS feed

This version

2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto-timewatch-2.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

auto_timewatch-2.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page