Skip to content

Dealing with attendance and approvals can be about as fun as watching paint dry. But don't worry, I'll take one for the team and handle all that boring stuff. You go focus on the exciting things, like brainstorming ways to make coffee taste even better!

Notifications You must be signed in to change notification settings

manojSRawat/darwin-attendance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attendance automation

Dealing with attendance and approvals can be about as fun as watching paint dry. But don't worry, I'll take one for the team and handle all that boring stuff. You go focus on the exciting things, like brainstorming ways to make coffee taste even better!


Pre-requisites

Getting started

  • Clone the repository
git clone  <project url>/darwin-attendance
  • Install dependencies
cd darwin-attendance
npm install
  • Build and run the project
npm start

Configuring the project

Add URL and credentails in config.js

{
    isProduction: true,
    baseUrl: 'https://company_name.darwinbox.in',
    credentials: [
        {
            email: 'someemail@gmail.com',
            password: 'some_password',
            markApproveAttendance: true
        }
    ]
}

Cron setup

On linux and mac you can type following command to setup a cron

crontab -e

add the following expression this will run the cron at 10:00 on every day-of-week from Tuesday through Saturday.

0 10 * * 2-6 node /path/darwin_attendance/index.js >> /darwin_attendance/cron.log

About

Dealing with attendance and approvals can be about as fun as watching paint dry. But don't worry, I'll take one for the team and handle all that boring stuff. You go focus on the exciting things, like brainstorming ways to make coffee taste even better!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published