Skip to content

Fetch SCeLe assignments and adds them to your Google Tasks.

Notifications You must be signed in to change notification settings

kawijayaa/scele_gcal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scele_gcal

Fetches SCeLe assignments and adds them to your Google Tasks.

Limitations

  • You need to setup your own OAuth authentication using Google Cloud. Not planning to host this at the moment.
  • Only adds tasks to the first task list on your Google Tasks.
  • Only gets current month's tasks from SCeLe.
  • Codebase is very messy and slow, will try to refactor later.

Assumptions

(re: Not gonna bother explaining how to do these things)

  • You have set up the OAuth2 credentials and enabled the Google Tasks API on Google Cloud.
  • You have downloaded the OAuth client json and saved it as config.json

Warnings

  • DO NOT SHARE YOUR TOKENS AND SECRETS!
  • Since this will interact with your Google account, please make sure you set up your OAuth correctly and are comfortable with whatever the code here is doing.
  • Do not request to SCeLe too frequently (I think ~15-30 minutes is fine).

Example Config JSON

scele_config.json

{
    "username": "",
    "password": "",
    "excluded_courses": [
        // enter course id to ignore
    ],
    "excluded_keywords": [
        // enter keywords to ignore (e.g. "Attendance", "Feedback")
    ]
}

Setup

git clone --depth 1 git@github.com:kawijayaa/scele_gcal
docker-compose up --build

How To Use

  1. Again, I will assume you have done all the steps above.
  2. If you are running this for the first time, it will prompt you to open a link to authenticate yourself using Google. Open the link on your browser
  3. Login using the Google account you want your tasks to be in.
  4. Copy the code parameter after being redirected. The link usually looks like this http://localhost/?state=state-token&code=<YOUR-CODE-HERE-COPY-THIS-PART>&scope=....
  5. ???
  6. Profit!

References on Setup

About

Fetch SCeLe assignments and adds them to your Google Tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published