Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.7 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.7 KB

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