Skip to content

Cowin Notifier for open vaccine slots with IFTTT & Telegram integration

Notifications You must be signed in to change notification settings

rkyshz/cowin-notifier

Repository files navigation

cowin-notifier (with IFTTT & Telegram integration)

NodeJS app to monitor vaccine slots using Cowin API and notify via IFTTT to Telegram.

  1. Get notified based on pincode
  2. Get notified based on district

Supports incremental updates => Alerts once sent out for an open slot (Identified by session ID) won't be sent again unless server is restarted.

Run on Gitpod
Open in Gitpod 

Steps to compile & run

  1. git clone https://github.com/rkyshz/cowin-notifier.git (Skip this step if using Gitpod)
  2. npm install
  3. npm run build (npm run watch for watch mode)
  4. npm start -- -t 10 -k abcd1234
    • -tto poll every 10 minutes. Defaults to 5 if no args passed
    • -k IFTTT Webhooks api key from IFTTT & Telegram integration. If no key passed, Telegram alerts will be disabled.

Configurations
cowin-config.json

[
    {
        "param": "400081",
        "dateFrom": "16-06-2021",
        "dateTo": "18-06-2021",
        "type": "P"
    },
    {
        "param": "395",
        "dateFrom": "16-06-2021",
        "dateTo": "18-06-2021",
        "type": "D"
    }
]

type P - Get by Pincode

type D - Get by District

param - Either Pincode or District based on type (P/D)

IFTTT webhook integration

Refer IFTTT & Telegram integration

About

Cowin Notifier for open vaccine slots with IFTTT & Telegram integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published