All Projects → rohitanil → cowin-slot-tracker

rohitanil / cowin-slot-tracker

Licence: MIT license
Tracker to check the covid shot slot availability in India and send mobile alerts via Telegram Bot.

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to cowin-slot-tracker

CoWin-Vaccine-Notifier
Automated Python Script to retrieve vaccine slots availability and get notified when a slot is available.
Stars: ✭ 102 (+240%)
Mutual labels:  vaccination, coronavirus, covid-19
COVID-19-Datasets
Novel Coronavirus (COVID-19) Cases for India, provided by University of Kalyani.
Stars: ✭ 19 (-36.67%)
Mutual labels:  india, coronavirus, covid-19
covaccine-notifier
CoWIN Vaccine availability notifier for India
Stars: ✭ 63 (+110%)
Mutual labels:  india, vaccination, covid-19
COVID19
A web app to display the live graphical state-wise reported corona cases in India so far. It also shows the latest news for COVID-19. Stay Home, Stay Safe!
Stars: ✭ 122 (+306.67%)
Mutual labels:  india, coronavirus, covid-19
auto-vaccine-appointment
Automatically searches for and completes booking of Covid-19 vaccination appointment. New York State only.
Stars: ✭ 12 (-60%)
Mutual labels:  vaccination, coronavirus, covid-19
citf-public
Official data on Malaysia's National Covid-​19 Immunisation Programme (PICK). Powered by MySejahtera.
Stars: ✭ 495 (+1550%)
Mutual labels:  vaccination, covid-19
COVID-19-Greece
A python-generated website for visualizing the novel coronavirus (COVID-19) data for Greece.
Stars: ✭ 21 (-30%)
Mutual labels:  coronavirus, covid-19
cli-corona
📈 Track COVID-19 (2019 novel Coronavirus) statistics via the command line.
Stars: ✭ 14 (-53.33%)
Mutual labels:  coronavirus, covid-19
iorestoacasa
#covid19 Ciò che stiamo facendo è creare un servizio informazioni, aggiornato in tempo reale, relativo ad ospedali e supporto medico, attività produttive, servizi di approvvigionamento e molto altro. COVID-19
Stars: ✭ 23 (-23.33%)
Mutual labels:  coronavirus, covid-19
Covid-19-API
A realtime API for coronavirus cases on Heroku. Data automatically updated every 10 minutes!
Stars: ✭ 59 (+96.67%)
Mutual labels:  coronavirus, covid-19
COVID19 AgentBasedSimulation
COVID-ABS: An Agent-Based Model of COVID-19 Epidemic to Simulate Health and Economic Effects of Social Distancing Interventions
Stars: ✭ 56 (+86.67%)
Mutual labels:  coronavirus, covid-19
covid-19-sg
Visualising COVID-19/Coronavirus cases and cluster zones in Singapore
Stars: ✭ 15 (-50%)
Mutual labels:  coronavirus, covid-19
covid19-br-info
Coronavirus frontend info about Brazil's states and cities
Stars: ✭ 12 (-60%)
Mutual labels:  coronavirus, covid-19
COVID-19-STAT
A web application to keep track of COVID-19 numbers & growth across the world
Stars: ✭ 19 (-36.67%)
Mutual labels:  coronavirus, covid-19
cotect
🛡Crowd-sourced COVID-19 reporting and assessment system.
Stars: ✭ 14 (-53.33%)
Mutual labels:  coronavirus, covid-19
covid19
Visualize and compare COVID 19 growth rates of different countries
Stars: ✭ 22 (-26.67%)
Mutual labels:  coronavirus, covid-19
covid-19-status
Menu bar widget for MacOS with COVID-19 statistics
Stars: ✭ 50 (+66.67%)
Mutual labels:  coronavirus, covid-19
covid19-visualized
COVID-19 World update with data Visualization (Include Indonesia cases)
Stars: ✭ 23 (-23.33%)
Mutual labels:  coronavirus, covid-19
CoronaVirus-2019-nCoV-Live-Tracking
CoronaVirus(COVID-19) Live Map Tracker Android Kotlin App
Stars: ✭ 43 (+43.33%)
Mutual labels:  coronavirus, covid-19
rid-covid
Image-based COVID-19 diagnosis. Links to software, data, and other resources.
Stars: ✭ 74 (+146.67%)
Mutual labels:  coronavirus, covid-19

Cowin-Slot-Tracker

Tracker to check the covid vaccine slot availability in your district and send mobile notifications through Telegram.

Requirements

Python 3.0+ or Docker must be installed in the local system.

  • For Docker: Refer docker documentation to set it locally based on your machine specification.If you are a Windows user and wants to setup docker, follow this video
  • If you cannot install Docker on your system, install Python by following this link

How to use?

There are two parts to this system

  1. Pinging the public COWIN API to get district wise data and checking for availability, every 15 minutes.
  2. Relaying this information to the user's mobile via Telegram Bot.
    • For that, you need to create a bot. Follow this tutorial to create a telegram bot. Refer the How to Create a New Bot for Telegram section. Note the TOKEN.
    • Now, open Telegram App and type @Get_Channel_User_Telegram_ID_Bot, and go to the chat. Type something and this should help you get your Telegram ID, which is your chat id. Note that as well.
    • After successfully completing the above steps, you are good to go.

Once all the above requirements are met, do the following

  1. Git clone this repository(if you are techie enough), otherwise download the repository by clicking on Download ZIP under Code.
  2. Open Terminal and change your directory to the folder you have just cloned/ downloaded. (Remember to extract the .zip file if you have downloaded it)
  3. Modify settings.json with your settings.
  4. If you are going the Docker way, make sure Docker Desktop is running.
    • Run docker build -t covin --rm .
    • Run docker run -it --name covin-schedule --rm covin
    • If you want to change settings.json, rebuild the image and run Step 4
  5. If you have Python already installed on your system,
    • Run pip install -r requirements.txt
    • Run python covin_slot_tracker.py
  6. If there is a slot available in the district id or pincode you have provided, you will receive an SMS on your phone.

Example Response

You can either use pincode or districtId.

Sample settings.json with pincode

{
  "pincode": "695013",
  "authToken": "1602################",
  "chatId" : "71############",
  "userAge": "45"
}

Sample settings.json with districtId

{
  "districtId": "391",
  "authToken": "1602################",
  "chatId" : "71############",
  "userAge": "45"
}

Response

Slots Available at 16 places.
SAKUR RH 2, Samsherpur RH, NIRAMAY HOSPITAL, Rahata RH, Chichondi Patil RH, Sakur RH, WAMBORI RH 2, 
Wambori RH, JAMKHED RH 2, Topkhana HP, Rajur RH, SHRIRAMPUR RH 2, CHICHONDI PATIL RH 2, TAKALI DHOKESHWAR RH 2, 
RAJUR RH 2, SAMSHERPUR RH 2

Here 391 is the district id for Ahmednagar, Maharashtra

Sample District Codes in Kerala

  • 301: Alappuzha
  • 307: Ernakulam
  • 306: Idukki
  • 297: Kannur
  • 295: Kasaragod
  • 298: Kollam
  • 304: Kottayam
  • 305: Kozhikode
  • 302: Malappuram
  • 308: Palakkad
  • 300: Pathanamthitta
  • 296: Thiruvananthapuram
  • 303: Thrissur
  • 299: Wayanad

Other States

To find District ID for other states:

Got to Cowin Portal in the browser

  • Open Network tab in browser
  • Search for vaccine availabilty in portal
  • Check Network tab for requests
  • Find district_id property value from the requests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].