Skip to content

Simple AWS Lambda function to record your work attendance to Jobcan

Notifications You must be signed in to change notification settings

potsbo/jobcan-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jobcan-lambda

Simple AWS Lambda function to record your work attendance to Jobcan. This enables you to build a GPS-based automatic attendance recording system using IFTTT.

Installation

  • Create two AWS Lambda functions
    • jobcanStart
    • jobcanEnd
  • Set env var JOBCAN_ADIT to work_start and work_end respectively
  • Create Amazon API Gateway to trigger the functions
  • Create IFTTT applets to call the API
    • Note that you have to send credential as body

Usage

Below is an example body to send.

{
  "credential": {
    "client_id": "your-company-name",
    "account_type": "staff",
    "login_id": "[email protected]",
    "password": "yoursecretpassword"
  }
}

Note

Currently, once your API endpoint exposed, anyone around the world can invoke the function without any limitation. You might want throttling and/or authentication to call the API.

Future Works

  • Detailed installation
  • Guide to add authentication
  • Publish IFTTT applet

About

Simple AWS Lambda function to record your work attendance to Jobcan

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published