This script for syncing your reminders in markdown files (i.e in obsidian reminder plugin) with your google calendar. The remind file format:
(@[[20240101]] 00:00) Text for event
This is going to google calendar at 2024.01.01 00:00 with the event text "Text for event"
-
Create google project:
- Open Google Cloud Project and API Setup
- Create a Project:
- Go to the Google Cloud Console.
- Create a new project (e.g., "CalendarEventCreator").
-
Enable Google Calendar API:
- In your project, navigate to "APIs & Services" > "Library."
- Search for "Google Calendar API" and enable it.
-
Create Credentials:
- Go to "APIs & Services" > "Credentials."
- Click "Create credentials" and choose "OAuth client ID."
- Application type: Choose "Desktop app"
- Name: Give it a name (e.g., "Calendar Script").
- Click "Create."
- Download the JSON file containing your credentials (it will have a name like client_secret_xxxx.json). Rename it to credentials.json and place it in the same directory as your script.
- Git clone this repo:
git clone https://github.com/caerry/markdown-notes-reminder-gcalendar
- May sure you use python 3.9+, create venv and pip install:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Edit parameters in ./google-remind-sync.sh
crontab -e
0 * * * * /path/to/your/google-remind-sync.sh >> /path/to/your/cron.log 2>&1
For example, getting my crontab -l:
0 * * * * /home/astrocat/Downloads/sync-notes-reminders-gcalendar.sh >> /home/astrocat/Downloads/calendar_event_creator.log 2>&1