-
Get Nimrod messenger API key -> https://m.me/251459615313202
-
Modify config.py.example to contain UdeS user and password and the api key.
-
Rename to config.py
-
Navigate inside repo and build image:
$ cd grade-alert/ $ docker build -t grade_alert_image .
-
Set-up cronjob to run script every 30 minutes:
$ crontab -e
-
Add this line to the cronjobs, where REPO is the full path to cd into the grade-alert directory:
*/30 * * * * cd REPO && docker run -v "$(pwd)":/deploy/ grade_alert_image
-
Install python 3
-
Navigate inside repo:
$ cd grade-alert/
-
Download dependencies:
$ pip install -r requirements.txt
-
Open cronjob editor:
$ crontab -e
-
Add this line to the cronjobs, where REPO is the full path to cd into the grade-alert directory:
*/30 * * * * cd REPO && python3 grade-alert.py