GitHub action to get notification whenever vaccine slot is availble in cowin portal :tada:

Overview

Covid Vaccine availability notifier

demo sms

Setup

  • Fork this repo
  • Update the config at src/config.js
  • Delete the db file src/db.json
module.exports = {
  // options in the array form a "or" condition while filtering
  minAge: [45, 18],
  pincode: "560008",
  // only pincode or districtId can be provided
  districtId: "265",
  vaccines: ['COVISHIELD', 'COVAXIN', 'SPUTNIK V']
}
  • Push the updated config
  • Create a free twilio account, they have a generous 15 USD credit which you can use for sending sms
  • Verify your mobile numbers in the twilio console https://www.twilio.com/console/phone-numbers/verified
  • Create following GitHub secrets in your repository, you can read more about it here

gh-secret-image

  • You can find the TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, FROM in the twilio dashboard

twillio-dashboard

  • SEND_TO is a comma separated list of numbers you wish to send sms to, eg: 9533234554,9533234552

Caveats

  • Since the Cowin api is geofenced and we cannot control the region of GitHub action we use the tor network, I have hardcoded a exit node in the action file as some of the exit nodes are from digital ocean and Cowin blocks their servers also. If the hardcoded exit node goes away just find a new india exit node ip from https://www.bigdatacloud.com/insights/tor-exit-nodes and replace it.
  • We have cron job every 5m but GitHub does not promise to follow it strictly so the action might execute every 15m to 30m based on GitHub server loads.
  • The actions might fail for few times in the start and then will get stablized.
- name: Install Tor
  run: |
    sudo apt-get -y install tor
    sudo sh -c "echo 'ExitNodes 216.10.247.146' >> /etc/tor/torrc"
    sudo /etc/init.d/tor restart

Show your support by the repo

License

MIT © Ameer Jhan

You might also like...

Github-ci-cd-react - I followed CI/CD course from codedamn to learn how to implement github actions in a project, in this practical lesson with codedamn am using ReactJS

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Jan 2, 2022

POST stories. GET features.

POST stories. GET features.

User Story Introduction The goal of User Story is to design and present a scalable backend infrastructure that delivers a web interface allowing users

Jan 5, 2023

Get updates in Telegram when a vaccination center available in your pin code. We can win Covid 🤝

Cowin Bot Get updates in Telegram when an vaccination center available in your pin code. We can win Covid 🤝 Commands: /start - Start the Bot /help -

Oct 3, 2022

Get all the Hackathons in one place!

Get all the Hackathons in one place!

Find Hacks An easy way to find hackathons Technologies Used React.js Flask Heroku Firebase This is an open source project, feel free to contribute. Fo

Sep 8, 2021

A web application to search all the different countries in the world and get details about them which can include languages, currencies, population, domain e.t.c This application is built with CSS, React, Redux-Toolkit and React-Router.

A web application to search all the different countries in the world and get details about them which can include languages, currencies, population, domain e.t.c This application is built with CSS, React, Redux-Toolkit and React-Router.

A web application to search all the different countries in the world and get details about them which can include languages, currencies, population, domain e.t.c This application is built with CSS, React, Redux-Toolkit and React-Router. It also includes a theme switcher from light to dark mode.

Jun 5, 2022

Get an array of all React Spectrum modules, useful for integrating with Next.js

get-react-spectrum-modules This package exports a function that returns an array of all React Spectrum modules that it finds in the node_modules direc

Mar 8, 2022

A simple example on how to get WalletConnect to authenticate wallets in the Expo Go app.

A simple example on how to get WalletConnect to authenticate wallets in the Expo Go app.

WalletConnect Example on Expo This is a simple example how to get WalletConnect up and running with Expo for React Native. WalletConnect's dependency

Dec 30, 2022

Named slices with slice-scoped set and get functions for Zustand

Zustand Opine Opine Definition transitive verb To state as an opinion Purpose An opinionated Zustand store. Automates naming of actions for Redux Dev

Oct 20, 2022

here in this git repo you will get react js basic layout, having in responsive mode.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Feb 23, 2022
Owner
Ameer Jhan
Working on that dent in the universe
Ameer Jhan
⚡️ Look for Covid-19 Resources, Get Vaccine Availability Notification, Complete source code for covidrescue.co.in website.

covidrescue.co.in ⚡️ Get real-time, verified leads on Oxygen, Remdesivir, ICU, Beds, Food and more based on your location. Get notifications on Vaccin

Placeholder Tech 15 Jul 10, 2022
CoWIN Vaccination Tracker, Below is the PRODUCTION LINK this is updated at end of each day. To see any latest Updates, please check the documentation

CoWIN Vaccination Slots Checking App. CoWIN Vaccination Slots Checking App is a user-friendly website that allow users to find vaccine in nearby avail

Stephin Reji 31 Jan 28, 2022
A Tracker to Check the availability of vaccine through pincode and buzzer in case of availability

Welcome to covid-vaccine-tracker ?? A Tracker to Check the availability of vaccine through pincode and buzzer in case of availability ?? Homepage Prer

Ayush Bansal 21 Jun 7, 2021
Fill the boring catsalud covid vaccine form with a console command

vacunacovid-catsalud-autofullfill form Fill the boring catsalud covid vaccine form with a console command Manual use, pasting in the script in the con

null 18 Jul 27, 2021
This is a TypeScript/JavaScript library which verifies the QR codes of certificates issued by the South African COVID-19 Vaccine Certificate System.

This is a TypeScript/JavaScript library which verifies the QR codes of certificates issued by the South African COVID-19 Vaccine Certificate System.

Adrian Frith 2 Feb 16, 2022
An application to help in the automatic booking of COVID vaccination slots in India whenever they become available.

Co-WIN automated slot booking Automatically book vaccine slots as and when they become available This application aims to automatically book vaccine s

Arindam Ray 24 Nov 23, 2022
alt:V - ZoneManager to trigger events whenever you leave or enter a Polygon

Features Create 3D polygons Trigger events when enter or leave them How to use Create 3D Polygon (without event): alt.emit("ZoneManager:DrawZoneBy2",s

Phill 10 Oct 12, 2022
Wall Covering Calculator and Material Procurement Portal

Wall-Pro MPP --Wall Covering Calculator and Material Procurement Portal-- Table of Contents: Links Description UserStory DevelopmentTeam Installation

Mike Bussert 4 Jul 7, 2021
Glob - Github action to match glob patterns and retrieve the relative file paths.

Glob - Github action to match glob patterns and retrieve the relative file paths.

tj-actions 8 Dec 12, 2022
GitHub action that compares basehead commits and provides all changed files in a pull request or push.

Get PR/push Files Get all added/modified/removed/renamed files in a pull request or push's commits. You can choose to get all files, only added files,

Ruslan Dulina 3 May 21, 2022