Skip to content

Port of pi-time to work with Workday

License

Notifications You must be signed in to change notification settings

byuoitav/workday-pi-time

 
 

Repository files navigation

pi-time

This is the source code deployed on the raspberry-pi based timeclocks around BYU. Hourly employees use these clocks to clock in/out of their jobs, to review/correct their punches, etc.

Environment vars required:

  • WORKDAY_DB_HOST
  • WORKDAY_DB_NAME
  • WORKDAY_DB_PASSWORD
  • WORKDAY_DB_PORT
  • WORKDAY_DB_USER
  • BDP_TOKEN_REFRESH_URL
  • WORKDAY_API_PASSWORD
  • WORKDAY_API_TENANT
  • WORKDAY_API_URL
  • WORKDAY_API_USER

pflags

  • -p -port --TCP port to listen defaults to 8643

endpoints:

  • GET 127.0.0.1:8463/status
  • GET 127.0.0.1:8463/ping
  • GET 127.0.0.1:8463/healthz
  • GET 127.0.0.1:8463/get_employee_data/byuID - queries our database and Lukes API (might be adding workday to this mix) and serves employee info for the front end
  • GET 127.0.0.1:8463/logLevel/level - sets log level and returns current level
  • GET 127.0.0.1:8463/logLevel - returns current level
  • POST 127.0.0.1:8463/punch/byuID - records a punch (comment is set to os.hostname, punch time is current device time)

About

Port of pi-time to work with Workday

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • TypeScript 38.2%
  • Go 27.0%
  • SCSS 13.4%
  • HTML 11.1%
  • PowerShell 3.9%
  • HCL 3.0%
  • Other 3.4%