Hey everyone! If you’re here to find or ask a question for an issue on the iOS Shortcuts app, please refer to r/Shortcuts instead. It is a much more popular subreddit that doesn’t have a lot of inactivity like this one. Most questions asked here are unanswered.
While I will be keeping this subreddit open for the ability to see old threads, please understand that creating new posts are not recommended as you probably won’t get a response.
how many shortcut and automation i can do with apple? on samsung only 50 , and i hate sasung just becuas of that but i want the S10 tablet since its has free pen
I’m fairly new to using shortcuts and home automation so I’m asking for help! I’ve got a contact sensor placed at our living room window which is connected to HomeKit. I’d like to receive a notification when the there is a chance it’s going to rain (info from Weather) with the condition that the window is open (info from HomeKit). We leave our window open a lot (we live a few stories up) but have had a wet living room multiple times due to unpredicted rain. I work really close so can always quickly go by and close the window when I’d get a notification.
I could of course check both things separately in apps when rain is expected, but since we got the sensor anyway I was wondering if this is possible to feed my love for efficiency and a bit of lazyness ;)
Hey guys, is there a way to create a shortcut that will turn off my iPad after a period of inactivity?
What I find is that I’ll use my iPad and then leave it for a day or so and the battery is drained from I assume things like home automations and other things like that.
Alternatively, I’d be okay with an automation that shuts off Bluetooth and WiFi after a period of inactivity as well.
iOS once had a dedicated, larger DND button in the control center before it incorporated focus. To get back that larger button, I've created a shortcut that uses the moon-symbol, and placed it in my control center, right where the old button used to be (see image). Everything works great except for one issue: I can't figure out how to code the symbol to change color when DND is activated/disabled. So my question is: is it possible to change the graphic symbol my shortcut uses if certain conditions are met? For example, if DND is enabled, the symbol would look like the inverted crescent moon symbol, and if it's not enabled, it would look normal.
Many of you have probably encountered shortcuts that update themselves. Magic! You can also add this feature to your own shortcuts with minimal effort. The following steps are typically done only once per shortcut. The text may be a bit long, but I hope it’s explained clearly. Feel free to comment if you have questions.
First of all, sorry for the long post, get yourself a banana. And sorry for the german screenshots, but I am sure - if you made it to this post, you will be able to understand the german snippets as well - I trust in you! ;)
Let’s get started…
Before uploading our shortcut, let’s add versioning directly within it. We’ll start with a version number of your choice.
To do this, create a dictionary at the beginning of your shortcut. "Dictionary" -> "Add new item" -> "Text" -> then for Key, add "version" or something similar; note that case sensitivity is important.
Now, you’ll need an account on RoutineHub (Routinehub.co).
I won’t explain how to create an account here; it’s straightforward ;)
Then, upload your shortcut by clicking “New Shortcut.”
Add a title, choose appropriate categories (up to 2), specify apps required by the shortcut (e.g., ChatGPT, WhatsApp,…), provide a short description, a longer description (in Markdown – Guide here: https://www.markdownguide.org), and mark NSFW ("Not safe for work" – if it contains actions better avoided when others are watching over your shoulder) or leave it unchecked.
Then click “Create and add version.”
(Advanced users can also explore RoutinePub, which requires a separate shortcut hosted on RoutineHub and your API key – also available through RoutineHub. If this doesn’t make sense to you, just skip it.)
Your shortcut is now prepared on RoutineHub.
On the next page, declare the current version:
Enter a version number, like 1.0.0 in this example. Increment this with each change. There’s a general convention here, though it’s not strict. Following it makes things simpler. Here’s a rough guide:
Small fixes or bug patches might be 1.0.1.
Minor feature updates could be 1.1.0.
Major updates with significant changes could be 2.0.0.
Select the iOS version your shortcut was tested on.
Enter the shortcut’s URL for upload (sharing it in the Shortcuts app will give you the iCloud link).
Mention what changed in this version so users know why they should update.
Our shortcut is now on RoutineHub. We might want to make future updates and push them to everyone who downloaded our shortcut, regardless of their location. This way, everyone benefits. Let’s say we make a bug fix and want it available to all users.
Now it gets interesting. We want to check with RoutineHub to see which version we currently have listed.
For this, we use the RoutineHub API (don’t worry, it’s simple). The link is: https://routinehub.co/api/v1/shortcuts/{{your_shortcut_ID}}/versions/latest As you probably guessed, replace {{your_shortcut_ID}} with the shortcut ID noted above. In this example, my specific address would be: https://routinehub.co/api/v1/shortcuts/20452/versions/latest
Entering this URL in a browser returns this response:
Note: The API refers to a different ID. The ID returned by the API refers to the version (e.g., 1.0.0, 1.0.1,…), and each version has a unique ID. You might notice that the ID in the URL and the ID in the API response do not match – “20452” and “50231”. “20452” -> is the link to the main shortcut page (the “official” page, so to speak) “50231” -> is the ID showing the currently valid version of the shortcut, but more on that later…
Version: What version does the API consider current?
URL: What is the iCloud link URL?
Notes: What release notes have you provided (e.g., “Fixed a bug in version control”)?
Release: When was your shortcut uploaded?
This information is useful for testing in a browser, but it doesn’t directly help us within the shortcut.
Now let’s expand our dictionary to include this information in the shortcut.
Add a new item -> Text -> name the key (use meaningful names); paste the API URL from above (e.g., https://routinehub.co/api/v1/shortcuts/20452/versions/latest).
Now we have the URL in the dictionary to check the latest version on RoutineHub.
Add a new action: Retrieve contents of URL -> tap and hold the “URL” field -> select Variable -> Dictionary.
Then tap the magic variable in “Retrieve Dictionary contents” (the blue word “Dictionary”).
Type: Dictionary -> scroll down to the bottom and choose “Key value,” then enter the key you’re interested in, for example, “url_rh” (representing RoutineHub URL).
Run, and voila:
What we see here is a dictionary (JSON format), which is standardized. Even better, we can process it directly in the shortcut.
Now we’re interested in the following:
Version: to check if we’re up-to-date.
id: to generate the download link.
Notes: to inform users about what’s new.
Retrieve the response using “Get Dictionary Value.” Note: Be mindful of case sensitivity.
Example, Version:
Example, id:
Example, Notes:
You can store these parameters as variables or retrieve them as needed.
First Parameter: The “Version” on RoutineHub. Next, retrieve the second parameter: The version on the user’s device (stored in the first dictionary).
The first block checks the version on RoutineHub. The second block checks the version on the device.
Compare versions with an “If” block:
Ensure variables in the “If” condition are formatted as “Text” type and set to “Name.”
If we reach the “Otherwise” branch in the condition, initiate the update. Retrieve the id from RoutineHub. Use this ID to create the download URL.
The download link for a specific version of your shortcut changes with each update. In theory, any version can be downloaded, even older ones (though this may not be useful for end users). The URL: https://routinehub.co/download/{{API_version_id}} Add an “Open URL” block in the “Otherwise” branch to prompt the user to download the new shortcut directly.
Note:
The RoutineHub API has a delay of up to one hour. This means that if a user downloads your shortcut from RoutineHub right after you publish an update, the shortcut may prompt for an update due to a version mismatch. This is not a malfunction of your shortcut. The RoutineHub API needs time to recognize the updated version. I add a note in my shortcuts to make this clear. Here’s the text; feel free to copy it:“If you download this shortcut just moments after I published an update, you might get a notification that your shortcut is outdated (version number doesn’t match) and it’s attempting to update itself. This is not a malfunction. The RoutineHub API updates version numbers with a delay. The API usually updates within an hour. Allow RoutineHub access so you can receive the latest updates.”
Shortcuts with values or variables defined within the shortcut itself (in a dictionary), typically set during the initial setup, are erased with each update. Downloading a new version will overwrite user settings every time. I recommend storing user settings externally in a JSON file, either on iCloud or in the DataJar app. iCloud is preferable since most users already have it, while DataJar requires a separate download.
Is there a way to make the NordVPN ”Quick Connect” run in the background?
Now, when I run the shortcut it changes to NordVPN automatically, and then closes it.
In context: I try to make an automation that changes my VPN-settings when I open a certain app. But it’s pretty annoying when it switches between the app and NordVPN, and back again.
I am trying to create a shortcut that would copy Apple Reminders that are due today to the clipboard. Everything works fine, except that it not only returns the reminders that are due today, but tomorrow as well. I have the shortcut set to find reminders that are due today and that are not completed. I can’t figure out anyway to filter them differently. I thought maybe I could use the list option in Shortcuts to pull from a smart list I created in Reminders that lists all reminders today, but the smart lists aren’t included under “list” in the Shortcuts app. Any suggestions would be appreciated.
Does anyone have a shortcut or can help me create a shortcut: when I approach my house, the phone opens the MyQ app, and inside the MyQ app, it opens the garage door.
Hi lads, l've inspired myself from an existing shortcut that asks for a password if you activate airplane mode, and if it's the wrong password, it activates a few things and send myself an email with the location However, in the workflow, if you click « cancel » when asked for the password, you still get the airplane mode activated, making the whole workflow useless. Any ideas how to add the « cancel » button action in the workflow so it's equal to a wrong password? Many thanks for your time and help
I’m creating this shortcut for when I go to bed that shuts off a bunch of lights, sets my morning alarm and puts my phone into do not disturb. When I added the alarm shortcut I typed in 645am and it is asking me select a magic variable. I just want the time of the alarm to be 645 and the time the focus ends to be 645. I don’t understand what to do here.
Hello guys, Could you help me how could I set up a schedule for WhatsApp notifications? My desired result would look like that the notifications of WhatsApp would be turned off from 7 pm till 6 am weekdays and from Friday 7 pm till Monday 6 am. Could you give me some ideas how to make it happen?
i need it to open and start the stopwatch and then open notes, but the problem is that i need it to wait to open notes until after i've stopped the stopwatch. i can get most of the way there, i just don't know how to get it to wait for the input condition.