Skip to content

Covid 19 vaccine slots availability notifier for India. It notifies by system pop-ups with sound alerts and logging details of available slots to the terminal.

Notifications You must be signed in to change notification settings

meetalodariya/covid-vaccine-availability-notifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid Vaccine Slots Availability Notifier - India

Overview

Covid-19 Vaccine Slots Availability Notifier - India

Vaccine slots are getting booked within the time you blink your eyes. You can't expect it to be available by the time you receive SMS or Email alert. Here, you get the alerts by system pop-up alerts with sound and more information directly on your terminal within the seconds slots get open. Also, you can get results by dose number as well.

How it works

It is a schedule based task runner to get notified when vaccine slots are available in provided district(s) or pincode(s). It uses public APIs provided by cowin.

This script is written based on my need. you're welcome to modify as per yours. :) Hope this helps someone!

This is how it notifies with the provided filters

Screenshot 2021-05-16 at 6 56 41 PM

Steps to run the scheduler job:

Install Nodejs if not there already

Install NPM modules

npm i

Run scheduler

npm start   // Looks for the pincode(s)
npm run start:dist   // For district(s)

Default it checks in every 3 seconds. you can modify the time in the code as per your need.

Options

// Basic Filters
const AGE = 18;
const DATE = "15-05-2021";
const DOSE = 2;

// Other Options
const type = process.env.TYPE || "pincode"; // Find slots by "pincode" or "dist"
const PINCODES = ["360004"];
const DISTRICT_IDS = [775]; //Rajkot Corp

const SCHEDULE = "*/3 * * * * *"; // Every 3 seconds
SOUND_ALERT = true; // More detail on https://www.npmjs.com/package/node-notifier

List of districts and it's ids are under data > district-ids.txt file.

About

Covid 19 vaccine slots availability notifier for India. It notifies by system pop-ups with sound alerts and logging details of available slots to the terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%