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.
Python 3
- Clone the repository
git clone https://github.com/susshikan/moodle-sync cd moodle-sync - Install dependencies
pip install -r requirements.txt
- 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 - Configure Google Calendar API
Follow the steps in the "Google Calendar API Configuration" section below to get your
credentials.jsonfile and place it in the root directory of the project. - Run the script
python main.py
To use this script, you'll need to enable the Google Calendar API and get OAuth 2.0 credentials
