Skip to content

HRLog automation script to check-in and check-out

License

Notifications You must be signed in to change notification settings

rmyz/hrlog-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HRLog-Auto

This tool allows you to automatically check-in and check-out on HRLog (MAC only for now, linux should work, didn't tested)

Usage

  1. Download the exec according to your platform(ex. hrlog-auto-macos) and crontab.txt on this link

  2. Create a scripts folder under ~/.scripts

  3. Place the hrlog-auto-... script under ~/.scripts. The script accepts 4 params in the following order: email(string), password(string), type(string, 'check-in' or 'check-out'), showWindow(boolean/number, this last is for debug purposes only)

  4. Modify the crontab.txt call to the script to include your credentials by replacing "YOUR_EMAIL" and "YOUR_PASSWORD"

  5. Give crontab Full Disk Access and execute the following command (this doesn't need to be under the ~/.scripts folder)

crontab ./crontab.txt

To see if this worked you should run

crontab -l

Configuration

To change the interval, by default 9:05 start, 17:05 finish (8 hours without pause), please check CrontabGuru, then modify crontab.txt and run again

crontab ./crontab.txt