https://github.com/adnanmula/ocean-checking-in-bot
Automate your clock in.
https://github.com/adnanmula/ocean-checking-in-bot
Last synced: 3 months ago
JSON representation
Automate your clock in.
- Host: GitHub
- URL: https://github.com/adnanmula/ocean-checking-in-bot
- Owner: adnanmula
- Created: 2019-06-20T07:06:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T14:12:21.000Z (over 1 year ago)
- Last Synced: 2024-12-27T18:46:10.113Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 760 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ocean checking-in bot
Tired of receiving HR mails because you always forget (or you are too lazy) to check-in?
Then it's your lucky day, just plug in your raspberry pi or whatever and forget that you are subdued to this archaic control system.## Not working days
A sqlite db is used to keep track of non working days, add them using your favorite client or with the following commands:```bash
# add specific days
ocib:not-working-days:add 2019-07-01,2019-07-02
# add weekends of year
ocib:not-working-days:load 2019
```## Checking-in
--random (or -r) is optional and defines if there should be a random delay(in seconds) in the checking-in, 10 min is the default amount, which can be overwritten.```bash
# check-in example in crontab
0 8 * * 1-5 docker-compose run php php bin/console ocib:checkin:add -r 600
```## Get checking-ins
Returns checking-ins of a given date or interval, if no argument is provided current date is used.```bash
# examples
ocib:checkin:get
ocib:checkin:get 2019-07-01
ocib:checkin:get 2019-07-01 2019-07-10
```