Shayon Pal
Shayon Pal
Shayon Pal
Shayon Pal
  • About Me
  • Services
  • Experience
  • Uses
  • Blog
  • Let’s Chat!
Menu
  • About Me
  • Services
  • Experience
  • Uses
  • Blog
  • Let’s Chat!
Twitter
Linkedin
Instagram
  • Automation, Productivity, Siri Shortcuts

Using Siri Shortcuts & IFTTT to automate & manage my coffee consumption

I love coffee. The best way I like to brew my coffee is French Press. Every morning, the very first ritual after brushing my teeth is to get started on the coffee. For the brand of coffee I use, the ideal times I like to brew my coffee for is 4 minutes. Additionally, recently, I also decided to start tracking how much coffee I consume in a day. To be able to achieve the same, the tools that I end up using are:

  1. The Apple Watch – primarily because I end up having that gadget on me a lot more than the mobile phone.
  2. Siri Shortcuts – Apple’s acquisition of the Workflow app has been a big game-changer in my world of personal automation.
  3. iOS 14 – Just because it’s wasn’t possible to use Siri Shortcuts on the watch before iOS 14.
  4. Google Sheets – Spreadsheets are bae ♥️.
  5. IFTTT – This is one of the key tools I use, every day, to automate various parts of my life.

The Workflow

Here’s a quick flowchart to understand how the automation runs, in my case. This should make it easier to understand how the data flows from one section to another.

Click on the workflow to enlarge the image

IFTTT Webhooks

The key to connect IFTTT with Google Sheets and share data is by using their Webhooks service. Don’t worry. It might sound a bit technical but I’ll make it quite easy peasy for you.

  1. Make sure that your IFTTT account is connected with Webhooks and your Google Sheets account.
  2. Visit this URL and copy your API Key. Keep it safe, since we’ll need it in the later stages.
Screenshot of the API documentation page

Setting up Siri Shortcuts

Now it’s time to get to the business end of things. Launch the app, and start creating a new Shortcut.

  1. Choose the action Choose from Menu
  2. Under prompt, ask ‘⏱ Start the timer?’
  3. Below, add 3 items:
    1. ✅ Yes
    2. ❌ No
    3. ⛔️ Cancel
  4. If all went well, it should look something like this:
  1. Under the section ‘Yes’, drag the action Start Timer
  2. Set the timer to 4 minutes.
  3. Leave the section under ‘No’.
  4. Under ‘Cancel’ simply drag and drop the action Exit Shortcut.
  5. Next, add the action Get Device Details. After adding it, tap on the action and choose Device Name, if it isn’t already chosen.
  6. Then, drag the URL action. Add the URL below in that field: https://maker.ifttt.com/trigger/<triggerWord>/with/key/<apiKey>
    Note that there are 2 variables in the above URL:
    1. <triggerWord>: We’ll configure this while setting up the IFTTT side of the automation.
    2. <apiKey>: Copy and paste the IFTTT Webhooks API Key that we’d retrieved in the above step.
  7. After this, drag and drop the action Get Contents of URL.
    1. Choose ‘Method’ as POST.
    2. Under the Headers section:
      1. ‘Request Body’ should be JSON.
      2. Add 2 fields:
        1. value1 ⇢ Magic Variable Device Name
        2. value2 ⇢ Magic Variable Current Date
  8. That’s it! Our Siri Shortcut is ready. For now. At this stage, the shortcut should look something like this:

Setting up IFTTT integration

Visit this URL to create a new IFTTT recipe. After that, simply follow the screencast tutorial below.

Screencast of setting up Webhooks in IFTTT

If you notice in the video above, I used the keyword coffee to trigger this recipe. This is nothing but the same triggerWord that needs to be used in the URL https://maker.ifttt.com/trigger/<triggerWord>/with/key/<apiKey> used in the Siri Shortcut we created above.

Next, trigger the shortcut a couple of times from you iPhone, iPad and/or Apple Watch to send a few data sets to Google Sheets.

Open the Sheet named CoffeeLog in the folder My Drive > IFTTT. It should look similar to mine.

My coffee drinking schedule
My coffee drinking schedule

Please don’t judge me for the time when I had coffee late in the evening ????

My Coffee Schedule Chart

Once the data started to get captured, all I did was pivot the above table and configured a chart to be created with updated data, every time a new set of data comes in. This is how my coffee drinking frequency chart looks like.

I am happy to report that in the last 1 month, I haven’t had more than 2 cups of coffees a day ????????

  • October 18, 2020
  • No Comments
automationcoffeeiftttsiri shortcuts
PrevPrevious PostBackup or Migrate a WordPress Website using Duplicator
Next Post7 useful automation ideas for Alfred App on macOSNext

Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About Me

Hello, I’m Shayon! I’m a technology consultant, who is also a lot of other things on the side. I love to code for fun. I am also a half-decent cook and a whiskey snob. In my previous life, I also used to compete professionally in video games. I am passionate about pets and have a Labrador named Sugar. I’m also an Apple fan.

If you’d like, you can reach out to me on Twitter, Instagram, LinkedIn, or by using the contact form on this website.

Recent Posts

Life as a Freelancer

Working from Home

Working from Home means you have to fight the tyranny of the urgent

Count the number of words

Count the number of words using Alfred Workflow on macOS

Notion - featured image

Integrate Siri Shortcuts with Notion note-taking app

Productivity apps I use

10 Best Productivity Apps for macOS

E-commerce Conversion Funnel

Product Analytics can help improve your E-commerce Conversion Funnel

Life as a Freelancer

Working from Home

Working from Home means you have to fight the tyranny of the urgent

Count the number of words

Count the number of words using Alfred Workflow on macOS

Notion - featured image

Integrate Siri Shortcuts with Notion note-taking app

Productivity apps I use

10 Best Productivity Apps for macOS

E-commerce Conversion Funnel

Product Analytics can help improve your E-commerce Conversion Funnel

Share this Article

Share on email
Share on facebook
Share on twitter
Share on whatsapp
Share on linkedin
  • About Me
  • Services
  • Experience
  • Uses
  • Blog
  • Let’s Chat!
Menu
  • About Me
  • Services
  • Experience
  • Uses
  • Blog
  • Let’s Chat!
Twitter
Linkedin
Instagram