API HR Talenta for ClockIn and ClockOut, so you don't need to open the app and clockin/clockout
- npm
- nodejs
- yarn
Just run yarn install
or npm install
At first you need to specify this three variable Cookie
, Latitude
and Longitude
.
You could copy from config.js.tmpl
to config.js
then change it according your value.
Then you could run using script defined in package.json
- you need to login with this url
https://account.mekari.com/users/sign_in?app_referer=Talenta
and sign in - after login on the browser press
F12
- the new window/new window on bottom screen will popup and switch to
Application
tab, pickCookie
->https://hr.talenta.co
and then scroll down until get the Cookie with namePHPSESSID
or_identity
- copy the value
- prepare the value for program with
PHPSESSID=<value>
or_identity=<value>
- open the file
config.js
(copy fromconfig.js.tmpl
) and change the variablecookiesTalenta
toPHPSESSID=<value>
or_identity=<value>
- and good news the cookie will last forever
- its easy, just go to google map
- right click on the location
- and select the first menu, your latitude and longitude will be copied and separated with "
,
" like this
-6.861928521923624, 107.63578698474662
Latitude , Longitude
- open the file
config.js
(copy fromconfig.js.tmpl
) and change the variablelatitude
andlongitude
following with the value copied from google map
after everything complete you just need to run this to clockin
yarn run clockin
or
yarn run clockout
to clockout
It is just by adding timeClockIn
and timeClockOut
within config.js
file. The time format is hh:mm
.
It is important to note, that you have to define both variables, otherwise, the scheduler won't work.
To start the scheduler, simply run
yarn scheduler:start
And to stop the scheduler, run,
yarn scheduler:stop
If you want to change the time for your clockIn and clockOut, you have to stop and restart the scheduler.
Functions: clockIn
and clockOut
Parameters
{ lat: '-6.000', long: '107.000', cookies: 'PHPSESSID=<value>', desc: 'message' }