ryanaidilp / talentless

Automate clock in/clock out in Talenta.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Talentless

Automate clock in/clock out in Talenta.

Setup

Install the following items:

  • Google Chrome or Chromium

  • Ruby 3.1.1

  • Dependencies

    bundle install --without=development
    

Usage

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

Automation

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.

About

Automate clock in/clock out in Talenta.


Languages

Language:Ruby 100.0%