Skip to content

VaccineNotifier checks the cowin portal (🇮🇳) to find vaccination slots available in your pin code and for your age. Sends email if available.

Notifications You must be signed in to change notification settings

adi-g15/VaccineAvailabilityNotifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VaccineNotifier 🇮🇳

VaccineNotifier checks the cowin portal to find vaccination slots available in your pin code and for your age. If found, it will send you an email with all found available slot details.

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) Enter the details in the file .env, present in the same folder
Step 3) Install dependencies; And run: node vaccineNotifier.js \

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

Changes from original repository

  1. Send single email with all dates, vaccine are available (How many days, you can control, change the number in fetchNDays(7))

  2. Free vaccine - Just change IS_FREE to false, if you also want to look for paid vaccines. By default it looks for free vaccines

  3. Use weekly API instead of daily for 7 days, this ensures your IP doesn't get blocked : ), and you can request more times (also it will help keep the COWIN servers more responsive :D )

  4. NOT using node's cronjob and pm2. Since the API is severly limited now. You may run it manually, since it gives result for many days at a time Personally, I setup a cron-job on Linux, to run it daily.

  5. Minor dependency change - Removed axios (Replaced with node-fetch), moment, pm2, cronjob, node-cron dependencies

About

VaccineNotifier checks the cowin portal (🇮🇳) to find vaccination slots available in your pin code and for your age. Sends email if available.

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 97.3%
  • Shell 2.7%