Desktop notifier for canvas assignments and information. This program will send a desktop notification telling you what assignments are due the day that the program is run. I have my program scheduled to run every day in the morning when I know I will be on my computer. See step 5 for scheduling the program to run as a task.
Notes:
- If an assignment is due before the time that you run the program, it will not be a part of the notification, evening though that assignment was still due 'today,' because its due date has already passed. The program does however account for assignments that are marked as 'all_day', and they will appear on the desktop notification the day that they are due.
- The command prompt will briefly open as part of running the program as a task, but you don't have to use it, and it will automatically close when the task has been executed.
- The canvas API uses times in UTC, so this program converts those times to the time zone used by the machine the code is run on, in order to determine due dates.
- Install the correct libraries with the command line:
pip install canvas api
pip install plyer
pip install python-dateutil
- Obtain your canvas user-id, the five-digit number at the end of your canvas URL
https://canvas.schoolname.edu/about/12345
-
Obtain your API access key from your canvas profile settings under 'approved integrations'
-
Paste your canvas URL, API access key, and user-id into main.py
-
To schedule when your Windows computer will run the program, you must put it in a task (you must use task scheduler, not task manager). Follow these steps.