forked from pallupz/covid-vaccine-booking
-
Notifications
You must be signed in to change notification settings - Fork 214
What this repo does
John Doe edited this page Jun 6, 2021
·
1 revision
- Automates OTP read from the SMS after the token expires.
- Randomly chooses one of the available slots instead of waiting for input from the user.
- Reduces the polling wait to optimize on the polling frequency (hence the name bombardier)
- https://ifttt.com/ is used to create a SMS trigger. The trigger happens when the OTP SMS is received
- The trigger sends the text of the SMS to a REST service, I have used a free service which needs 0 setup for a shared storage
- The CoWinOTPRetriever Android app has been created to automatically read the OTP SMS and then send it to the shared storage
- You only need to install and start the app, enter your CoWIN registered phone number, and then start the OTP listener.
- Shortcuts app is used to create an SMS trigger. The trigger happens when the OTP SMS is received
- The trigger sends the text of the SMS to a REST service, I have used a free service which needs 0 setup for a shared storage
- The script runs continuously to poll (same logic as the original repository)
- Whenever the OTP expires, an OTP is requested
- When the OTP SMS is received on the Android, phone, the above logic triggers to store the OTP SMS in the shared storage. On iOS, when the OTP SMS is received, the above logic triggers a notification which the user has to long press and confirm after which the OTP is stored in shared storage
- The script polls the shared storage to get the OTP
- Once the OTP is received, the polling resumes
- If a free slot is found, rather than waiting for an input, it randomly chooses a slot and attempts to book