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.
First install the package to your machine
pip install timewatcherAnd execute the program when you want to fill the time
timewatcherThe first time you run it, you will go through the process of setting up the configuration file.

~/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.
This is the list of the user configuration options:
company_number- Mandatory, your company number in Timewatchemployee_number- Mandatory, you employee number used in Timewatchemployee_password- Mandatory, password used to Timewatch, by default this is your ID numberauto_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:12will 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:11will 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 toTrueit will calculate theend_timebased on the needed hours for each date in Timewatch. This mean the program can handle half days automatically using this option. The default isTrue.
If you want to run this program locally, clone the repo to your machine
https://github.com/birkagal/timewatcher
cd timewatcherInitialize environment using poetry
poetry install --no-root && pre-commit installYou can make any changes you want.
To execute run the timewatcher command inside the directory
timewatcher