Simple script for check-in/out using Intratime API
There are two scripts available to use written in bash
and python
.
Tip: you may want to use in combination with cronjobs.
Usage: ./intratime_checker.sh [OPTIONS]
-u, --user [Required] Intratime user
-p, --password [Required] Intratime password
-a, --action [Required] Clock in/out action: 0 = Check in; 1 = Check out; 2 = Pause; 3 = Return
-d, --date [Optional] Clock in/out date. E.g: 2019-06-16"
-t, --time [Optional] Clock in/out time. E.g: 09:00:00"
-h, --help Show this help.
Example
./intratime_checker.sh -u [email protected] -p 1234 -a 0 -d 2019-06-16 -t 09:00:00
In this mode, the user makes the registration with a single order through some parameters.
Tip: This mode is recommended for automatic insertions, like a
cron job
.
Usage: python intratime-checker.py [OPTIONS]
-u, --user [Required] Intratime user
-p, --password [Required] Intratime password
-a, --action [Required] Action: [in,out,pause,return]
-d, --date [Optional] Clock in/out date. E.g: 2019-06-16"
-t, --time [Optional] Clock in/out time. E.g: 09:00:00"
-h, --help Show this help.
Example
python intratime-checker.py -u [email protected] -p 81 -a out -d 2019-10-18 -t 17:34:22
In this mode the user stores his access credentials in a configuration file, and can interactively enter the rest of the data after executing the script.
Tip: This mode is recommended if the user intends to enter the data manually.
Usage: python intratime-checker.py
Example
python intratime-checker.py
Enter the date [YYYY-MM-DD] (default current date): 2019-10-29
Enter the time [HH:MM:SS] (default current time): 18:05:26
Enter the action [in, pause, return, out]: out
Fork this repository, then make a pull request. The team will review it as soon as possible.
It would be nice to receive ports for other languages, feel free to make your own port.