forked from pallupz/covid-vaccine-booking
-
Notifications
You must be signed in to change notification settings - Fork 215
Shortcuts
John Doe edited this page Jun 6, 2021
·
1 revision
- Open the shortcuts app
- Tap on the + button at the top right
- Tap on
Create Personal Automation
- Select the
Message
option - Put
CoWIN
in the Message Contains option & leave everything blank. Tap on Next button - Tap on
Add action
and search for the optionSet Variable
. Give the variable nametext
and input asShortcut Input
- Then add another action and select
URL
and paste the url: https://kvdb.io/<kvdb_bucket>/99XXXXXXXX replace 99XXXXXXXX with your phone number and <kvdb_bucket> with your bucket value from the KVDB setup step - Then add another action and select
Get Contents of Url
. Click on show more. Change the method toPUT
. Request Body toFile
and in the file row tap onChoose Variable
and selecttext
which we defined in Step 6. - Click Next and save this automation.
- Clone this repository
Go to
src
directory and run the scriptcd src && python covid-vaccine-slot-booking.py
- On Mac I had to do the following too
brew install python-tk
brew install SoX
- Run the script, enter your phone number.
- Now as soon as OTP is recieved you will also get a notification from shortcuts app. Long press it and click on run. It will start OTP auto read process.
- Use the steps given below to enter your preferences.
- Now whenever the script session expires, it will send the notification described in step 13 and repeat the process to trigger OTP auto read.
- It is recommended that you set a different notification tone for this notification to be able to distinguish.
- Hopefully you get the slot
- Stay healthy and stay safe!
Step 1 | Step 2 | Step 3 |
Step 4 | Step 5 | Step 6 |
Step 7 | Step 8 | Step 9 |
Step 10 | Step 11 |