Coder Social home page Coder Social logo

divyeshdhokiya / covid-vaccine-availability-notifier Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 14 KB

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.

JavaScript 100.00%
covid19 vaccine vaccine-availability vaccine-slots-availability pincodes districts alert availability cowin cowin-vaccine-tracker

covid-vaccine-availability-notifier's Introduction

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.

covid-vaccine-availability-notifier's People

Contributors

divyeshdhokiya avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.