Commit Graph

17 Commits

Author SHA1 Message Date
schism 92ce4cda8d Telegram message correction
- Shadow correction
2021-03-05 16:31:55 +05:30
schism 33b13af1dc Add telegram linking
- Add init script
- Apply error toggle from config file
2021-03-05 14:42:31 +05:30
schism e8d9d89b7a Add schedule time to table, total requests in index 2021-02-20 19:01:42 +05:30
Square Root 2f031d38dc Merge branch 'scheduler' 2021-02-19 10:16:56 +05:30
Square Root dec6c81510 Bugfix: compatability for older systemd versions
- Older systemd versions do not support RestartPreventExitStatus
- Use exit code 0 to abort, but record code 2 in db as a workaround
2021-02-19 10:14:32 +05:30
schism 5f5ef6f0ce Add details to dashboard and add favicon
- Add name for user
- Add usage details in bashboard
2021-02-19 09:59:47 +05:30
Square Root b82979c5e2 Support for changing schedules
- Run scheduler multiple times a day to deal with updates in calendar
  timings
- Updates the schedule based on whether time has changed
- Clears aborted timers on startup
- Add primary key to avoid duplicate schedules
- fix dependency missing in requirements.txt
- minor bugfixes
2021-02-18 23:12:55 +05:30
Square Root ef3c82a3bd Add dashboard styling
- use dummy values to style the dashboard
- initial styling done. room for cleanup
- responsive design not implemented
2021-02-17 15:42:23 +05:30
Square Root a552cff572 Merge branch 'web' into scheduler 2021-02-17 11:18:19 +05:30
Square Root ddf7acac70 Bugfixes: daystamp, invalid url
- use a common datestamp for all users. this allows clearing the
  schedules for a day on startup to prevent duplicates
- fix url for markattendance. missing a '/'
2021-02-17 11:16:18 +05:30
Square Root d3627a7c9d Fix gitignore
- move .vim/ to root .gitignore
2021-02-16 19:54:06 +05:30
schism ce00ed91ec Add basicstyle sheet
- Add style for login
- Change login and signup to one form
- Hide about page
2021-02-16 19:28:45 +05:30
Square Root d56a7a7683 Switch to mysql, keep daily logs
- use mysql to help with sqlite locking issues
- add config.json to provide db credentials
- use date to seperate schedules. this allows to keep previous logs
- minor refoactoring and code cleanup
2021-02-16 16:42:21 +05:30
schism 4a3a774809 Add configuration file
- Support other databases other than sqlite
- Add documentation for changes
2021-02-16 12:23:16 +05:30
Square Root afc9e30742 Add db logging for scheduled events
- records success, faulures and aborts to db
- uses data from db to abort rather than startlimit bursts
- Parse courseid to use in db
- Store course name in db for stats
2021-02-16 11:26:45 +05:30
Square Root 8e13b04c5d First working prototype
- central config
- add sqlite db class
- Basic scheduling
    - tries 5 times with 1 min intervals
    - aborts on returncode 2 for irrecoverable failures
- attendance marking just barely works
- reuses login cookies if possible
- no real error handling so far ;)
2021-02-15 16:30:20 +05:30
schism 9019c42560 Add basic web page files 2021-02-15 13:31:28 +05:30