Skip to content

tunney/Clocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clocker

A utility that can be used to programmatically perform a clocking operation in MYTIME

Requires Java, assumes MacOS

The rootURL property is the subdomain and domain from the URL that you use to clock in. For example in the below it is "mytime.company.com"

https://mytime.company.com/Clocking/index.htm

Outstanding:

  • Query inclusion of randomisation around clocking in and out, there but left out, needs testing with crontab
  • Addition of Calendar integration for public holidays and holidays

Usage:

  • Edit clock.sh to include the location of the compiled clocker class, the root url of your clocking, your username, and password
  • chmod 777 clock.sh
  • At a terminal "crontab -e"
  • Add crontab entries to reflect when you want a "clocking" to occur

Example crontab:

00 09 * * 1-5 /Users/username/dev/clock.sh >/tmp/stdout.log 2>/tmp/stderr.log
30 17 * * 1-5 /Users/username/dev/clock.sh >/tmp/stdout.log 2>/tmp/stderr.log

About

Automate clocking in and out

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published