- https://ifttt.com/create
- Add If This
- Search and click "Webhooks"
- Set Event Name as vaccine_slot
- Create Trigger
- Add Then That
- Notifications
- Send Notifications to IFTTT app (Download from PlayStore)
- Paste below text in Message field:
{{EventName}}: {{Value1}} - {{Value2}} - {{Value3}}
- Create Action
- Continue
- Finish
- Go here https://ifttt.com/maker_webhooks/settings
- Find a URL that looks like: https://maker.ifttt.com/use/{API_KEY}
- Copy the API_KEY section from the URL
- Set IFTTT_KEY with API_KEY value in vaccine_slots.py script
The script queries district wise hospitals.
- Find State ID: https://cdn-api.co-vin.in/api/v2/admin/location/states
- Find District ID using State ID: https://cdn-api.co-vin.in/api/v2/admin/location/districts/<State_ID> ( if you get unauthorized access above, check if State ID is set in the URL )
- Set District ID in vaccine_slots.py
Won't provide walkthrough, but entirely doable with some googling https://dev.to/tharindadilshan/running-a-python-script-every-x-minutes-in-windows-10-3nm9
-
crontab -e
-
Paste below command in the file that opens ( 5 => Ping cowin every 5 minute, change to desired interval )
*/5 * * * * /<path to script>/vaccine_slots.py
A python script to notify you via IFTTT app whenever a slot becomes available at https://www.cowin.gov.in/