Automate clock in/clock out in Talenta.
Install the following items:
-
Google Chrome or Chromium
-
Ruby 3.1.1
-
Dependencies
bundle install --without=development
To try out in your local environment, set the following environment variables and run the script:
export TALENTLESS_HEADLESS="true"
export TALENTLESS_EMAIL="<your talenta email>"
export TALENTLESS_PASSWORD="<your talenta password>"
export TALENTLESS_LATITUDE="<your preferred latitude>"
export TALENTLESS_LONGITUDE="<your preferred longitude>"
export TALENTLESS_TIME_ZONE="+07:00"
export TALENTLESS_SLACK_WEBHOOK="<your slack webhook url>"
bundle exec ruby talentless.rb
First, fork this repository.
A GitHub Action workflow is defined with workflow_dispatch
trigger.
Add all required action secrets to your fork.
You can change the trigger to cron, but I find them unreliable.
What I personally do is set up a scenario in Make.com that makes request to GitHub REST API by schedule.