It's a simple selenium automation implementation. It logs in your account. Then goes to to attendance url and gives attendance and takes a screenshot.
- You will need have Python3
- Setup virtualenv and install selenium
your_pc$ virtualenv -p /usr/bin/python3 venv
your_pc$ source venv/bin/activate
(venv)your_pc$ pip install -r requirements.txt
- Have chrome installed
- I used chromedriver for mac.
- download link https://chromedriver.chromium.org/downloads
- Rename env_sample.json to env.json and configure it with your username, password, links and path.
(venv)your_pc$ python main.py
- goes to odoo_link
- logs in to your account
- goes to attendance_url
- clicks to to give attendance
- takes a screenshot