Skip to content

TeamSUEP/SUEP-health-report

Repository files navigation

SUEP-health-report

An automation script for SUEP daily health report.

Note

The program automatically uses the last filled information when filling out the report.

Therefore, you should manually submit a report once before using this script.

Usage

Local environment

cp envconfig.example.py envconfig.py
vim envconfig.py                      # please edit the configuration
pip install -r requirements.txt
python main.py

Docker

cp envconfig.example.py envconfig.py
vim envconfig.py                      # please edit the configuration
docker build -t suep-health-report .
docker run -it suep-health-report

GitHub Actions

  1. Copy the configuration file to Actions secrets in your repository and edit it.
  2. Name it CONFIG and save it.
  3. Run the workflow.

Please follow the GitHub Terms of Service if you use GitHub Actions.

Configuration

Variable Description
username 8-digit student ID in string
password password at IDS
wait_time Maximum time to wait for the page to load, in seconds
confirm_time Time to wait for the user to confirm the report, in seconds
headless Whether to run the browser in headless mode
fullscreen Whether to run the browser in fullscreen mode
quit_on_error Whether to quit the program when an error occurs
private Reduce the amount of information output

License

AGPLv3

This program is provided as is, without warranty or liability, please see the LICENSE file for more details.

By using this program, you agree to the terms of the license.