{"id":16138179,"url":"https://github.com/ul/tocal","last_synced_at":"2025-04-06T17:24:05.323Z","repository":{"id":146517443,"uuid":"375969996","full_name":"ul/tocal","owner":"ul","description":"Stash your todos directly into calendar.","archived":false,"fork":false,"pushed_at":"2021-07-28T05:35:45.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T12:07:32.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ul.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":"2021-06-11T09:18:11.000Z","updated_at":"2023-01-22T23:55:36.000Z","dependencies_parsed_at":"2024-04-19T11:01:33.181Z","dependency_job_id":null,"html_url":"https://github.com/ul/tocal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Ftocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Ftocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Ftocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ul%2Ftocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ul","download_url":"https://codeload.github.com/ul/tocal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247519274,"owners_count":20951950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-09T23:32:42.886Z","updated_at":"2025-04-06T17:24:05.288Z","avatar_url":"https://github.com/ul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ToCal\n\nA small script to automate adding tasks as events into your Google calendar.\n\n## Getting started\n\n- It's a Python script, and `make deps` will call `pip` to install its dependencies.\n- You'll need a GCP project with Calendar API enabled and create OAuth 2.0 Client credentials: https://developers.google.com/workspace/guides/create-project\n- Copy `client_secrets.example.json` to `client_secrets.json` and fill in `client_id` and `client_secret` from the previous step.\n- Optionally configure your business hours and other hardcoded parameters in `main.py`.\n- Optionally symlink `main.py` to somewhere in the `PATH` for a more convenient use.\n\n## Usage\n\n```\nmain.py +3 /60 Recompile the kernel\n```\n\nis interpreted by ToCal as \"starting from 3 days in the future, within my business hours, find a free slot of 60 minutes and create an event 'Recompile the kernel'.\nIf there will be no suitable slot for 7 days then just book it during the business hours after the last event you checked while looking for a free spot.\"\n\nOffset `+DAYS` is optional and is `1` by default (i.e. \"starting from tomorrow\").\nDuration `/MINUTES` is optional and is `30` by default.\nBusiness hours are hardcoded to be from 9am to 5pm.\n\nBoth default values, business hours and the search window could be changed by editing script code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ful%2Ftocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ful%2Ftocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ful%2Ftocal/lists"}