Commit Graph

28 Commits

Author SHA1 Message Date
Square Root 6c52ab58b5 Swap user and cid position for service file naming
- allows better globbing for manual intervention if required
2021-03-12 18:23:19 +05:30
Square Root b29d97d28a Change from assertion to printing for renew
- fixes renew after already marked. successful service would be deleted.
  Therefore renew fails
2021-03-12 17:52:56 +05:30
Square Root 0722174ca6 Merge branch 'master' of git.disroot.org:sQr00t/ProxyBro 2021-03-09 13:34:05 +05:30
Square Root 0fdae968f7 Daemon-client model for markattendance
- central daemon to manage attendances
- use sockets to pass messages
- no error handling done for sockets ;(
2021-03-09 13:33:04 +05:30
schism 7ab899545a Merge branch 'web' 2021-03-05 16:32:45 +05:30
schism 92ce4cda8d Telegram message correction
- Shadow correction
2021-03-05 16:31:55 +05:30
Square Root 00d8d45e1d Bugfix: fix chatid parse from db query 2021-03-05 16:28:15 +05:30
Square Root aca22e7875 Merge branch 'web' 2021-03-05 15:20:21 +05:30
Square Root 91dc832ac3 Add telegram notifications
- Add helper to fetch telegram chat id
- send telegram message when recording a scheduled run
- Add different message according to record status
- Include subject in the telegram message
- Update config sample
2021-03-05 15:17:21 +05:30
schism 33b13af1dc Add telegram linking
- Add init script
- Apply error toggle from config file
2021-03-05 14:42:31 +05:30
Square Root 278dbed799 Merge branch 'master' of git.disroot.org:sQr00t/ProxyBro 2021-02-24 11:28:41 +05:30
Square Root 36cbc6f413 Add license - MIT 2021-02-24 11:27:39 +05:30
Square Root 154b70a05d Add exception handling for scheduler tasks
- Doesnt abort on a failed command. But send to log
- Systemd sometimes gives a bad return code if it cant find the service
  file for new users
2021-02-24 11:22:49 +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