July 22, 2018

Siri Shortcuts - Episode 3

Shortcut Name: Running Challenge - Percent Complete
Revision: 1.0
Add to Shortcuts!

What does it do?
This one is really for me, but it might spark an idea in your head of how you can use parts of it for yourself! This Shortcut accepts my total running mileage to date and tells me how far along I am in my yearly goal. It then checks to see how far we are through the year, and let’s me know if I am behind or ahead of schedule with percentages and words of wisdom”.

How does it work?

  1. Accept my current mileage in the form of a number and divides it by 250 (my miles goal for 2018).
  2. Trims the number output and converts it to text and gives that number a variable of run.
  3. Current date is obtained and converted to ordinal date formate (DDD), and divides it by 365.
  4. Just like above it trims and formats this output to text. Setting it to a variable of days.
  5. Now it checks to see if days is greater than run and displays the appropriate message.

Example
Shortcut Code Screenshot

Source Code”
Shortcut Code Screenshot

Check out other shortcuts!


iOS Shortcuts Siri


Previous post
Siri Shortcuts - Episode 2 Shortcut Name: Twitch Live Announcement to Micro.blog Revision: 1.1 Add to Shortcuts! What does it do? This shortcut allows you to select a game
Next post
Siri Shortcuts - Episode 4 Shortcut Name: Logging Water With HomePod Revision: 1.0 Add to Shortcuts! What does it do? Since you can trigger Shortcuts using Siri, this extends
Jason Burk | 1999-2019
blot.im!
📦 Blog Archives 📦

status icon credit iconfinder.com/bogdanrosu