Git Product home page Git Product logo

vaccineavailabilitynotifier's Introduction

VaccineNotifier

VaccineNotifier checks the cowin portal periodically to find vaccination slots available in your pin code and for your age. If found, it will send you emails every minute until the slots are available.

Steps to run the script:

Step 1) Enable application access on your gmail with steps given here: https://support.google.com/accounts/answer/185833?p=InvalidSecondFactor&visit_id=637554658548216477-2576856839&rd=1

Step 2) Create a .env file as per the following template

ENABLE_EMAIL=1
ENABLE_MSG91_SMS=1
SENDER_EMAIL=[email protected]
EMAIL_APPLICATION_PASSWORD=XXXXXXXXXX
MSG91_API_KEY=XXXXXXXXXXXXXXXXXXXX
MSG91_SENDER_ID=XXXX
DLT_TE_ID=XXXXXXXXXXXXX
SMS_TEMPLATE="Vaccine available at your pincode {{pincode}}:\n{{centers}}\n\nRegister at https://selfregistration.cowin.gov.in"

Please note that you will have to create an account on MSG91, add transactional credits and register DLT template to send SMSs. You can disable SMS functionality by setting ENABLE_MSG91_SMS to 0

Step 3) Create a data file called data.csv in root of the project as per the following template

email,phone,pincode,age
[email protected],91987654321,380013,32
[email protected],919988776655,380014,54

Step 4) On your terminal run: npm i && pm2 start vaccineNotifier.js

To close the app run: pm2 stop vaccineNotifier.js && pm2 delete vaccineNotifier.js

Here's a sample of the resultant emails: image info

vaccineavailabilitynotifier's People

Contributors

kartikey54 avatar kinnarshah08 avatar abhilashkulkarniofficial avatar

Watchers

James Cloos avatar NightSlayer avatar

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.