Skip to content

Shortcuts

John Doe edited this page Jun 6, 2021 · 1 revision

Setup Guide for Shortcut app (iOS)

  1. Open the shortcuts app
  2. Tap on the + button at the top right
  3. Tap on Create Personal Automation
  4. Select the Message option
  5. Put CoWIN in the Message Contains option & leave everything blank. Tap on Next button
  6. Tap on Add action and search for the option Set Variable. Give the variable name text and input as Shortcut Input
  7. 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
  8. Then add another action and select Get Contents of Url. Click on show more. Change the method to PUT. Request Body to File and in the file row tap on Choose Variable and select text which we defined in Step 6.
  9. Click Next and save this automation.
  10. Clone this repository Go to src directory and run the script cd src && python covid-vaccine-slot-booking.py
  11. On Mac I had to do the following too
    • brew install python-tk
    • brew install SoX
  12. Run the script, enter your phone number.
  13. 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.
  14. Use the steps given below to enter your preferences.
  15. Now whenever the script session expires, it will send the notification described in step 13 and repeat the process to trigger OTP auto read.
  16. It is recommended that you set a different notification tone for this notification to be able to distinguish.
  17. Hopefully you get the slot
  18. Stay healthy and stay safe!

Shortcuts steps in screenshots

Step 1 Step 1 Step 2 Step 2 Step 3 Step 3
Step 4 Step 4 Step 5 Step 5 Step 6 Step 6
Step 7 Step 7 Step 8 Step 8 Step 9 Step 9
Step 10 Step 10 Step 11 Step 11
Clone this wiki locally