Skip to content

A rough script designed to add Google Tasks into Obsidian's Daily Notes.

Notifications You must be signed in to change notification settings

rbuttery/obsidian_daily_google_tasks

Repository files navigation

Add Google Tasks Into Obsidian With Python

How It Works

  1. Python uses the watchdog library to observe changes in your Obsidian Vault.
  2. clients\google_tasks_client.py is a basic Google Tasks client. For this to work, you must first obtain a credentials.json service account file from Google Cloud Console - this is free, but is not straight forward for anyone not familiar. Reach out if you need help setting this up!
  3. clients\obsidian_client.py needs your "OBSIDIAN_VAULT" environment variable. To set this up, navigate to .env and input the folder in which your Obsidian Valut is located.

Installation

  1. Clone this repo (requires git is installed)

    git clone https://github.com/rbuttery/obsidian_daily_google_tasks.git
  2. Have python installed, or install python.

  3. Run setup.bat

    setup.bat
    • you can also just click on this file to run it!
  4. Update the ".env" file with the proper paths. You'll need to specify where your Obsidian Vault is located.

  5. Run launch_obsidian_with_watchdog.bat ⚠️ Requires that you have added your Google Cloud credentials.json file into the same directory. Follow the Google Task Python Quickstart from Google to get started. Specifically, the part on Authentication

    launch_obsidian_with_watchdog.bat

Optional but recommended: Pin to your taskbar

  1. Create a shortcut on your desktop.

    • Right click & create a new "shortcut" on your desktop.

    • The "location" of this shortcut should point towards launch_obsidian_with_watchdog.bat.

    • Name this something like "Obsidian Python".

    • Next, let's edit the shortcut:

      • right click + "properties"
      • under "shortcut" select "change icon..."
      • browse & select the included "obsidian-icon.ico" file. Apply this changes.
      • next, still from inside the "properties" panel, find the line that is "Target". Add the word "explorer " with a space to the BEGINNING of the "Target" field:
      explorer C:\YOUR\PATH\HERE
      • apply these changes & close the "properties".
      • Now drag the new shortcut to your task bar, and you will have a 1 click launcher that launches the python script & your Obsidian.exe application.

Notes:

  • Only tested on Windows

About

A rough script designed to add Google Tasks into Obsidian's Daily Notes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published