Skip to content

susshikan/moodle-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moodle to Google Calendar Sync

This script synchronizes your Moodle calendar with your Google Calendar. It fetches events from Moodle feed and upserts them into a specified Google Calendar, keeping your schedule automatically updated.

Requirements

Python 3

How to Run

  1. Clone the repository
    git clone https://github.com/susshikan/moodle-sync
    cd moodle-sync
  2. Install dependencies
    pip install -r requirements.txt
  3. Set up your environment variables
    MOODLE_BASE_URL=https://scele.cs.ui.ac.id 
    MOODLE_USERNAME=your_moodle_username
    MOODLE_PASSWORD=your_moodle_password
    GOOGLE_CALENDAR_SUMMARY=SCELE
    TIMEZONE=Asia/Jakarta
    DELETE_MISSING=true
    
  4. Configure Google Calendar API Follow the steps in the "Google Calendar API Configuration" section below to get your credentials.json file and place it in the root directory of the project.
  5. Run the script
    python main.py

Google Calendar API Configuration

To use this script, you'll need to enable the Google Calendar API and get OAuth 2.0 credentials Video

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages