{"id":26707095,"url":"https://github.com/dkunin/cronos","last_synced_at":"2025-03-27T06:27:26.446Z","repository":{"id":279248587,"uuid":"938180956","full_name":"DKunin/cronos","owner":"DKunin","description":"Reminder of calendar events","archived":false,"fork":false,"pushed_at":"2025-03-11T05:33:44.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T06:27:05.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/DKunin.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":"2025-02-24T14:50:26.000Z","updated_at":"2025-03-11T05:33:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f0309d6-2893-4c1c-95c1-2434fcf1f541","html_url":"https://github.com/DKunin/cronos","commit_stats":null,"previous_names":["dkunin/cronos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKunin%2Fcronos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKunin%2Fcronos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKunin%2Fcronos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKunin%2Fcronos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DKunin","download_url":"https://codeload.github.com/DKunin/cronos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245794786,"owners_count":20673281,"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":"2025-03-27T06:27:25.866Z","updated_at":"2025-03-27T06:27:26.433Z","avatar_url":"https://github.com/DKunin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### **📅 Google Calendar Telegram Reminder**\nThis Node.js script fetches upcoming events from **Google Calendar** using a **service account** and sends daily reminders via **Telegram**.\n\n[![Deploy to Server](https://github.com/DKunin/cronos/actions/workflows/deploy.yml/badge.svg)](https://github.com/DKunin/cronos/actions/workflows/deploy.yml)\n\n---\n\n## **📌 Features**\n✅ Fetches **events for today + 3 days ahead**  \n✅ Sends a **Telegram notification** with event details  \n✅ Includes **event time, description, location, and a direct link**  \n✅ Runs **daily at 12:00 PM** using a cron job  \n\n---\n\n## **🚀 Setup \u0026 Installation**\n\n### **1. Clone the repository**\n```sh\ngit clone https://github.com/your-repo/calendar-reminder.git\ncd calendar-reminder\n```\n\n### **2. Install dependencies**\n```sh\nnpm install\n```\n\n### **3. Set up Google Calendar API**\n- Enable **Google Calendar API** in [Google Cloud Console](https://console.cloud.google.com/)\n- Create a **Service Account** and download the JSON key (`cronus.json`)\n- **Share your Google Calendar** with the service account email\n\n### **4. Create a `.env` file**\n```ini\nTELEGRAM_BOT_TOKEN=your_telegram_bot_token\nTELEGRAM_CHAT_ID=your_chat_id\nCALENDAR_ID=your_calendar_id (or use \"primary\")\n```\n\n---\n\n## **📜 Usage**\nRun the script manually:\n```sh\nnode index.js\n```\nIt will also **run automatically every day at 12:00 PM**.\n\n---\n\n## **Customization**\n- Modify `runJob()` in **`index.js`** to adjust the message format.  \n- Change the cron schedule in:\n  ```js\n  cron.schedule(\"0 12 * * *\", runJob);\n  ```\n  (Uses **cron syntax**, adjust timing as needed.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkunin%2Fcronos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkunin%2Fcronos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkunin%2Fcronos/lists"}