NodeJS app to monitor vaccine slots using Cowin API and notify via IFTTT to Telegram.
- Get notified based on pincode
- 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.
Steps to compile & run
git clone https://github.com/rkyshz/cowin-notifier.git
(Skip this step if using Gitpod)npm install
npm run build
(npm run watch
for watch mode)npm start -- -t 10 -k abcd1234
-t
to poll every 10 minutes. Defaults to 5 if no args passed-k
IFTTTWebhooks
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)