{"id":15944888,"url":"https://github.com/govindjeevan/cowin-notifier-script","last_synced_at":"2025-04-03T21:44:23.274Z","repository":{"id":110681027,"uuid":"367264884","full_name":"govindjeevan/cowin-notifier-script","owner":"govindjeevan","description":"A python script to notify you via IFTTT app whenever a slot becomes available at https://www.cowin.gov.in/","archived":false,"fork":false,"pushed_at":"2021-05-14T16:46:10.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T09:43:44.074Z","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/govindjeevan.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-05-14T06:03:48.000Z","updated_at":"2021-05-14T17:53:52.000Z","dependencies_parsed_at":"2023-04-25T12:31:21.771Z","dependency_job_id":null,"html_url":"https://github.com/govindjeevan/cowin-notifier-script","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/govindjeevan%2Fcowin-notifier-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govindjeevan%2Fcowin-notifier-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govindjeevan%2Fcowin-notifier-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/govindjeevan%2Fcowin-notifier-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/govindjeevan","download_url":"https://codeload.github.com/govindjeevan/cowin-notifier-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085993,"owners_count":20881158,"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-07T08:42:25.454Z","updated_at":"2025-04-03T21:44:23.249Z","avatar_url":"https://github.com/govindjeevan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COWIN VACCINE AVAILABILITY NOTIFICATION\n### Self host your own vaccine slot checker\n\n## Setting up IFTTT Notifications\n\n1. https://ifttt.com/create\n2. Add If This\n3. Search and click \"Webhooks\"\n4. Set Event Name as vaccine_slot\n5. Create Trigger\n6. Add Then That\n7. Notifications\n8. Send Notifications to IFTTT app (Download from PlayStore)\n9. Paste below text in Message field:\n\n```{{EventName}}: {{Value1}} - {{Value2}} - {{Value3}}```\n\n10. Create Action\n11. Continue\n12. Finish\n13. Go here https://ifttt.com/maker_webhooks/settings\n14. Find a URL that looks like: https://maker.ifttt.com/use/{API_KEY}\n15. Copy the API_KEY section from the URL\n16. Set IFTTT_KEY with API_KEY value in vaccine_slots.py script\n\n## District ID\nThe script queries district wise hospitals.\n1. Find State ID: https://cdn-api.co-vin.in/api/v2/admin/location/states\n2. Find District ID using State ID: https://cdn-api.co-vin.in/api/v2/admin/location/districts/\u003cState_ID\u003e\n( if you get unauthorized access above, check if State ID is set in the URL )\n3. Set District ID in vaccine_slots.py\n\n## Running the script repeatedly\n\n### Windows\nWon't provide walkthrough, but entirely doable with some googling\nhttps://dev.to/tharindadilshan/running-a-python-script-every-x-minutes-in-windows-10-3nm9\n\n### Linux\n1. ```crontab -e```\n2. Paste below command in the file that opens ( 5 =\u003e Ping cowin every 5 minute, change to desired interval )\n  \n   ```*/5 * * * * /\u003cpath to script\u003e/vaccine_slots.py```\n\n\nA python script to notify you via IFTTT app whenever a slot becomes available at https://www.cowin.gov.in/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovindjeevan%2Fcowin-notifier-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgovindjeevan%2Fcowin-notifier-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovindjeevan%2Fcowin-notifier-script/lists"}