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:

  1. Download/clone this repository.

  2. To enable this script to be able to send emails using your Gmail account, generate an application-specific password for this script, in your Google account with steps given here: https://support.google.com/accounts/answer/185833
    (This will require you to have 2-step verification enabled in your Google account)

  3. Enter the details for your email account in the .env file, present in the same folder in which you cloned this repository.

  4. Make sure you have nodejs installed.

  5. To run this process in the background, install the pm2 package globally. Enter the below command in your terminal:

    npm install -g pm2
    

    Note: This command usually requires elevation, so run it as administrator or use sudo depending on your platform.

  6. Open a terminal inside the folder where this repository is cloned, and run:

    npm install
    pm2 start vaccineNotifier.js
    
  7. To stop the script running in the background, run:

    pm2 stop vaccineNotifier.js
    
  8. To unregister this script from pm2 (do this if you never want to run this script again), run:

    pm2 delete vaccineNotifier.js
    

Here's a sample of the resultant E-mail sent by this script:

Sample email screenshot

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.