{"id":28222560,"url":"https://github.com/dante4rt/sr32-schedule-checker","last_synced_at":"2025-08-30T16:41:54.771Z","repository":{"id":261896425,"uuid":"885649602","full_name":"dante4rt/sr32-schedule-checker","owner":"dante4rt","description":"An automated schedule checker for SR32 badminton courts that sends notifications to Google Chat.","archived":false,"fork":false,"pushed_at":"2025-02-10T03:27:58.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T18:03:58.164Z","etag":null,"topics":["automation","badminton","bot","cron","google-chat","notifications","schedule-checker","sr32"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dante4rt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-11-09T03:07:03.000Z","updated_at":"2025-02-10T03:28:01.000Z","dependencies_parsed_at":"2024-12-08T04:18:25.815Z","dependency_job_id":"61714edb-f48d-4d28-972b-e34e1a34a1d4","html_url":"https://github.com/dante4rt/sr32-schedule-checker","commit_stats":null,"previous_names":["dante4rt/sr32-schedule-checker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dante4rt/sr32-schedule-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2Fsr32-schedule-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2Fsr32-schedule-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2Fsr32-schedule-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2Fsr32-schedule-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dante4rt","download_url":"https://codeload.github.com/dante4rt/sr32-schedule-checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2Fsr32-schedule-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878212,"owners_count":25008340,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automation","badminton","bot","cron","google-chat","notifications","schedule-checker","sr32"],"created_at":"2025-05-18T07:13:33.770Z","updated_at":"2025-08-30T16:41:54.743Z","avatar_url":"https://github.com/dante4rt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SR32 Schedule Checker\n\nAn automated schedule checker for SR32 badminton courts that sends availability notifications to a Google Chat room. This project uses a cron job to periodically check and notify you of badminton court availability on specified dates and times.\n\n## Features\n\n- Checks SR32 badminton court availability on Tuesdays within the current month.\n- Sends notifications to Google Chat with court availability status for specified time slots.\n- Easy setup using environment variables for secure data handling.\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/) (version 14.x or higher)\n- [Google Chat API webhook URL](https://developers.google.com/chat) to receive notifications\n\n## Setup\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/dante4rt/sr32-schedule-checker.git\ncd sr32-schedule-checker\n```\n\n### 2. Install dependencies\n\n```bash\nnpm install\n```\n\n### 3. Set up environment variables\n\nCreate a `.env` file in the root directory and add the following environment variables:\n\n```plaintext\nSPACE_ID=\u003cyour-google-chat-space-id\u003e\nSPACE_KEY=\u003cyour-google-chat-api-key\u003e\nSPACE_TOKEN=\u003cyour-google-chat-api-token\u003e\nSR32_UID=\u003cyour-sr32-uid\u003e\n```\n\nThese values are required to post messages to a specific Google Chat space.\n\n### 4. Configure Schedule and Run Time\n\nThe app is set to check availability every minute. Adjust the cron schedule as needed in `index.js`:\n\n```javascript\nconst job = new cron.CronJob(\n  '* * * * *',   // Every minute\n  checkScheduleAndNotify,\n  null,\n  true,\n  'Asia/Jakarta'\n);\n```\n\n## Usage\n\nRun the application with the following command:\n\n```bash\nnpm start\n```\n\nThe script will automatically start checking the schedule and posting availability updates to Google Chat.\n\n### Example Message\n\n```text\nBadminton court availability for Tuesday, 14-Nov-2024:\n✅ 10:00 - 12:00 - Available\n❌ 17:00 - 18:00 - Not available\n```\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdante4rt%2Fsr32-schedule-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdante4rt%2Fsr32-schedule-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdante4rt%2Fsr32-schedule-checker/lists"}