Attendance assist https://proxybro.xyz
Go to file
schism e8d9d89b7a Add schedule time to table, total requests in index 2021-02-20 19:01:42 +05:30
scheduler Bugfix: compatability for older systemd versions 2021-02-19 10:14:32 +05:30
web Add schedule time to table, total requests in index 2021-02-20 19:01:42 +05:30
.gitignore Merge branch 'web' into scheduler 2021-02-17 11:18:19 +05:30
README.md Add configuration file 2021-02-16 12:23:16 +05:30

README.md

ProxyBro

Mark your attendance in eduserver automatically.

Running

This project has two parts the web server which gives the UI to enter new users and the scheduler which does all the heavy lifting and marks the attendance.

Web server

Requires

  • php >= 7
  • php-sqlite3
  • curl
  • php-curl
  • web server (only needed in production)
  • mysql/postgres (recommended)

In production hide the folder php from the webserver. For development use,

php -S localhost:8001 -t web

All is well.

More configuration

The default database is sqlite. If you are using any other database engine, specify the configuration in web/php/config.json. For a starting reference see web/php/config.sample.json.

{
  "DBPATH": "mysql:host=localhost;dbname=myDb",
  "DBUSERNAME": "user",
  "DBPASSWORD": "pass"
}

The configuration can also be read from enviroment variables but the config.json is given precedence.