All of you know how difficult it has been to find a vaccine slot through the government website owing to how quickly it gets filled up.
People soon realised that the Govt. of India made the API to check vaccine slot availability public and started building all sorts of bots like WhatsApp Bot, telegram bot, twitter bot etc. that sends a notification when vaccine slot is available. And it basically became an unofficial nation-wide hackathon
Me being a hardware enthusiast decided to make a hardware device that notifies me when a slot is available.
I grabbed my favourite microcontroller, ESP8266 and started writing code.
I was not able to call the API directly from ESP8266 so I made a proxy server in node.js that forwards my request.
Initially, I just added an LED that blinks when slots are available at a given district.
Later I added a 2.4 inch TFT LCD that shows information about the vaccine centres as well.
It's still a fairly simple project that involves only two components,
ESP8266 development board like NodeMCU or WeMos D1 and ILI9341 Display.
Connect ESP and display using this connection diagram;
Replace the following with your own WiFi SSID and password
const char* SSID = "ZTE_2.4G_ExQCMa"; // Your WiFi SSID
const char* PASSWORD = "NullReferenceException#123"; // Your WiFi Password
Replace minAge
with your desired age (should be 18 or 45)
const int minAge = 45; // 45 or 18
Replace date
with the date you want
const String date = "11-05-2021"; // Date for slot in DD-MM-YYYY format
Replace districtID = 1
with your District ID (can be found from the github repo).
const int districtID = 1; // District ID
Make sure that you have installed all the necessary libraries.
Click upload and you have got a device that shows you vaccine availability.
Comments