Skip to main content

Automatically update hours card on TimeWatch

Project description

TimeWatcher

Automatically update hours card on TimeWatch

Python CLI program to help you automate filling up Timewatch card. Integrate with launchd to make this fully automated process every month. NOTE: This program should only be used on MacOS currently.

Usage

First install the package to your machine

pip install timewatcher

And execute the program when you want to fill the time

timewatcher

The first time you run it, you will go through the process of setting up the configuration file. enter image description here After you set it up for the first time, it will be save to ~/Library/Preferences/TimeWatcher/config.ini and it can be changed in any time.

Furthermore, if you set the auto_execute parameter to True it will also add a launchdagent to automatically execute the program at specific date and time.

Configuration

This is the list of the user configuration options:

  • company_number- Mandatory, your company number in Timewatch
  • employee_number - Mandatory, you employee number used in Timewatch
  • employee_password - Mandatory, password used to Timewatch, by default this is your ID number
  • auto_execute - Do you want to automatically execute this program at specific date and time? Default is 'True'
  • day_to_execute - If you chose 'True' to the previous one, you can set the day of the month to run on. Input only digit. E.g: 12 will make the program execute on the 12th day of each month.
  • hour_to_execute - If you chose 'True' to the previous one, you can set the time in the day you want to execute the program. Input only digit. E.g: 11 will make the program execute on 11 A.M.
  • start_time - Optional, the time to set as your start time in Timewatch. Default to 0900 (9 A.M)
  • end_time - Optional, the time to set as your end time in Timewatch. Default to 1800 (6 P.M)
  • auto_end_time - Optional, if set to True it will calculate the end_time based on the needed hours for each date in Timewatch. This mean the program can handle half days automatically using this option. The default is True.

Development

If you want to run this program locally, clone the repo to your machine

https://github.com/birkagal/timewatcher
cd timewatcher

Initialize environment using poetry

poetry install --no-root && pre-commit install

You can make any changes you want. To execute run the timewatcher command inside the directory

timewatcher

Project details


Download files

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

Source Distribution

timewatcher-2.2.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timewatcher-2.2.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file timewatcher-2.2.1.tar.gz.

File metadata

  • Download URL: timewatcher-2.2.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure

File hashes

Hashes for timewatcher-2.2.1.tar.gz
Algorithm Hash digest
SHA256 b8e565f0b087cfecee1edf9c69cf0c13baa31c12de519cfc5f7615f260a2a821
MD5 c6b9706bc9ba1bf69a4b8f3d1fb45cd1
BLAKE2b-256 082b5f5ed8b4a6a55ff15d58781023142c0e195bdf9e6ccad47263bce5049511

See more details on using hashes here.

File details

Details for the file timewatcher-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: timewatcher-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure

File hashes

Hashes for timewatcher-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23f95a125013962899332686500f0bc458d39a00c851cc8ff16bcba85412a32b
MD5 fcb9cd5069b45f33e9c641aea5d56bf1
BLAKE2b-256 3073aad73fb6ac781112007a3ddce11ca72043a5983268ead5f6d2414f39de05

See more details on using hashes here.

Supported by

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