{"id":24071089,"url":"https://github.com/shanto268/markdown2calendar","last_synced_at":"2026-05-03T22:32:13.364Z","repository":{"id":241159738,"uuid":"804500388","full_name":"shanto268/markdown2calendar","owner":"shanto268","description":"Automatically creating Google Calendar Events from time sensitive items on my to do lists (.md files)","archived":false,"fork":false,"pushed_at":"2024-05-25T21:06:18.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T03:31:43.205Z","etag":null,"topics":["google-calendar","llama3","machine-learning","neovim","ollama","productivity","to-do-app","to-do-list","zettelkasten"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shanto268.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-22T17:49:59.000Z","updated_at":"2024-12-01T13:13:23.000Z","dependencies_parsed_at":"2024-05-22T18:58:23.276Z","dependency_job_id":"d5e65b26-96e7-4fac-8083-d1a1cd589b2a","html_url":"https://github.com/shanto268/markdown2calendar","commit_stats":null,"previous_names":["shanto268/zettelkasten2calendar","shanto268/markdown2calendar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shanto268/markdown2calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fmarkdown2calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fmarkdown2calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fmarkdown2calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fmarkdown2calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shanto268","download_url":"https://codeload.github.com/shanto268/markdown2calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fmarkdown2calendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-calendar","llama3","machine-learning","neovim","ollama","productivity","to-do-app","to-do-list","zettelkasten"],"created_at":"2025-01-09T16:38:27.665Z","updated_at":"2026-05-03T22:32:13.341Z","avatar_url":"https://github.com/shanto268.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Time Sensitive Events from Markdown To Do Lists to Google Calendar Events\n\nI use the neovim plugins - [zettlekasten.nvim](https://github.com/Furkanzmc/zettelkasten.nvim), [nvim-telekasten.nvim](https://github.com/nvim-telekasten/telekasten.nvim) (with my custom config) - to make daily to-do lists (in `markdown` format). I wanted to use my local llama3 model to extract time-sensitive action items from my daily to-do lists and create Google Calendar events for them. This project automates that process. It runs as a background service on macOS, using `launchd` to schedule daily execution at 12:10 AM PDT.\n\n## Features\n\n- **Markdown Parsing**: Reads daily tasks from markdown files.\n- **Action Item Extraction**: Uses a local LLM (e.g., Ollama) to extract time-sensitive action items.\n- **Google Calendar Integration**: Creates events in Google Calendar based on extracted action items.\n- **Scheduled Execution**: Runs as a `launchd` service on macOS, executing the script daily at 12:10 AM PDT.\n\n## Requirements\n\n- Python 3.x\n- `google-auth`, `google-api-python-client`\n- `dotenv`\n- `langchain-community`\n- A Google Cloud project with the Calendar API enabled and a service account with appropriate permissions.\n\n## Setup\n\n### 1. Clone the Repository\n\n```sh\ngit clone https://github.com/shanto268/zettelkasten2calendar.git\ncd zettelkasten2calendar\n```\n\n### 2. Install Dependencies\n\n```sh\npip install -r requirements.txt\n```\n\n### 3. Configure Google Calendar API\n\n- Create a Google Cloud project and enable the Calendar API.\n- Create a service account and download the JSON credentials file.\n- Share your calendar with the service account email.\n\n### 4. Create `.secrets` File\n\nCreate a `.secrets` file in the project root directory with the following content:\n\n```dotenv\nGOOGLE_CALENDAR_ID=your_calendar_id@group.calendar.google.com\nGOOGLE_CREDENTIALS_PATH=/path/to/your/credentials.json\n```\n\n### 5. Configure `launchd`\n\nCreate a plist file for `launchd` to schedule the Python script. Save it as `com.yourusername.zettelkasten_to_calendar.plist` in `~/Library/LaunchAgents/`.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n    \u003cdict\u003e\n        \u003ckey\u003eLabel\u003c/key\u003e\n        \u003cstring\u003ecom.yourusername.zettelkasten_to_calendar\u003c/string\u003e\n        \u003ckey\u003eProgramArguments\u003c/key\u003e\n        \u003carray\u003e\n            \u003cstring\u003e/usr/local/bin/python3\u003c/string\u003e \u003c!-- Path to your Python interpreter --\u003e\n            \u003cstring\u003e/path/to/zettelkasten_to_calendar.py\u003c/string\u003e \u003c!-- Path to your Python script --\u003e\n        \u003c/array\u003e\n        \u003ckey\u003eStartCalendarInterval\u003c/key\u003e\n        \u003cdict\u003e\n            \u003ckey\u003eHour\u003c/key\u003e\n            \u003cinteger\u003e00\u003c/integer\u003e\n            \u003ckey\u003eMinute\u003c/key\u003e\n            \u003cinteger\u003e10\u003c/integer\u003e\n        \u003c/dict\u003e\n        \u003ckey\u003eStandardOutPath\u003c/key\u003e\n        \u003cstring\u003e/tmp/zettelkasten_to_calendar.log\u003c/string\u003e\n        \u003ckey\u003eStandardErrorPath\u003c/key\u003e\n        \u003cstring\u003e/tmp/zettelkasten_to_calendar.err\u003c/string\u003e\n        \u003ckey\u003eRunAtLoad\u003c/key\u003e\n        \u003ctrue/\u003e\n    \u003c/dict\u003e\n\u003c/plist\u003e\n```\n\nLoad the plist file into `launchd`:\n\n```sh\nlaunchctl load ~/Library/LaunchAgents/com.yourusername.zettelkasten_to_calendar.plist\n```\n\n### 6. Verify the Job\n\nEnsure the job is scheduled:\n\n```sh\nlaunchctl list | grep com.yourusername.zettelkasten_to_calendar\n```\n\n## Usage\n\n### Running the Script\n\nThe script will automatically run every day at 12:10 AM PDT, check for that day's markdown file, and create events in Google Calendar based on the extracted action items.\n\n### Manual Execution\n\nYou can also run the script manually:\n\n```sh\npython main.py\n```\n\n## Troubleshooting\n\n- Ensure the paths in your plist file are correct.\n- Check `/tmp/zettelkasten_to_calendar.log` and `/tmp/zettelkasten_to_calendar.err` for logs and errors.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanto268%2Fmarkdown2calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshanto268%2Fmarkdown2calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanto268%2Fmarkdown2calendar/lists"}