For vaccination slot booking in INDIA : https://www.cowin.gov.in/home
website is used but due to unavailability of sufficient vaccine user have to check regularly and waste more time. This setup helps user not only customize his requirement but also helps in setup on hosting on Raspberry pi.
Software :
- Python 3.9+ required for source code build.
- INSTALL : pip install cowin (Thanks to https://pypi.org/project/CoWIN-API-by-Kunal-Kumar-Sahoo)
- INSTALL : pip install pyttsx3 (Python Text to speech)
- INSTALL : pip install requests (For IFTTT webhook request)
- INSTALL : pip install gpio (Raspberry Pi GPIO support)
After setup is done download code from GITHUB link.
Source Code modification :
- If you are setting up in laptop comment out GPIO codes.
- district_id = '446' : Update your district ID
- goto IFTTT in -> THIS -> select WEBHOOK -> get your webhook keyreplace "https://maker.ifttt.com/trigger/vAvailable/with/key/cjnKf87f12oRWfsNuDNSF0?&value1= ".
- THAT -> IFTTT notifications -> whenever webhook invoked IFTTT notifies user with slot details.
- User can configure frequency of notification by setting time.sleep(120) // 120 sec.
Hardware :
- Raspberry Pi GPIO pin 4 used as input switch.
- Connect pin4 with 3.3v to give raspberry pi interrupt.
- When button pressed Raspberry pi can announce nearest slot available using connected speaker.
Please comment If you face any difficulties in setting it up.
Thanks
Comments
Please log in or sign up to comment.