Git Product home page Git Product logo

cowin-notifier-script's Introduction

COWIN VACCINE AVAILABILITY NOTIFICATION

Self host your own vaccine slot checker

Setting up IFTTT Notifications

  1. https://ifttt.com/create
  2. Add If This
  3. Search and click "Webhooks"
  4. Set Event Name as vaccine_slot
  5. Create Trigger
  6. Add Then That
  7. Notifications
  8. Send Notifications to IFTTT app (Download from PlayStore)
  9. Paste below text in Message field:

{{EventName}}: {{Value1}} - {{Value2}} - {{Value3}}

  1. Create Action
  2. Continue
  3. Finish
  4. Go here https://ifttt.com/maker_webhooks/settings
  5. Find a URL that looks like: https://maker.ifttt.com/use/{API_KEY}
  6. Copy the API_KEY section from the URL
  7. Set IFTTT_KEY with API_KEY value in vaccine_slots.py script

District ID

The script queries district wise hospitals.

  1. Find State ID: https://cdn-api.co-vin.in/api/v2/admin/location/states
  2. 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 )
  3. Set District ID in vaccine_slots.py

Running the script repeatedly

Windows

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

Linux

  1. crontab -e

  2. 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/

cowin-notifier-script's People

Contributors

govindjeevan avatar

Stargazers

Dolly Gupta avatar Sashank S avatar Sumukha Pk avatar

Watchers

 avatar

Forkers

sashanksridhar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.