Hello, I've just published Songwhip! for Spotify users to link their accounts through the Spotify API at the first run, then get options to open or share the Songwhip or YouTube URL for the currently playing song on your Spotify account.
You can also use it from the Share Sheet and it will do the same thing and disregard the current listening activity.
The reason I created this shortcut is because, not all my friends are Spotify users in fact, most of them just listen to songs on YouTube even if they have Spotify or any other platform that they're subscribed to they prefer to "try out" a song or listen to it for the first time on YouTube or if they prefer their platform, either Tidal, Apple Music, YouTube music.. etc they can just click their platform on the Songwhip page, which makes it easier for them to check out a song that I sent.
This is my first upload on RoutineHub, if you have any questions/suggestions feel free to point them out.
Edit: I didn't know at the time when I posted this, but sadly, Songwhip had announced their EOL, and that their services will cease from July 22, 2024 so, since everything is still running, the API and the track links.. etc, I'll cross my fingers and hope they don't actually shut everything down, but in case they do, then RIP đ
What in the world is going on with the RoutineHub website and notifications? Haven't gotten an email in probably 2 years, but now I'm getting spammed to death via email of different shortcut updates. But I can't even log back in to unsubscribe. Anyone else?
Unleash the full potential of your Shortcuts library! đ Join RoutineHub Academy for a quick guide on organizing your shortcuts into folders. Learn to create, rename, and manage folders effortlessly. Streamline your daily routine with the power of organization. đïžđĄ #ShortcutsMastery #RoutineHubAcademy
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.
Click âSubmit.â
Your shortcut is now live on RoutineHub, for example: https://routinehub.co/shortcut/20452/ Note the last five digits; this is your shortcutâs ID.
So Far, So Good
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.
Apple's Shortcuts app has become an indispensable tool for many iPhone users, offering a simple and convenient way to automate various tasks and streamline daily routines. As the popularity of Shortcuts continues to grow, so does the demand for new and innovative workflows. That's where RoutineHub comes in.
RoutineHub is a community-driven platform where users can upload, share, and download Shortcuts. It's the ultimate destination for Apple Shortcuts enthusiasts, offering a wealth of user-created Shortcuts that cover a wide range of tasks, from simple reminders to complex workflows. With RoutineHub, users can discover new and creative ways to use Shortcuts on their iPhone, and share their own workflows with the community.
The best repository of Apple shortcuts
RoutineHub is by far the best platform to share shortcuts with the community, there are similar sites like Shortcuts Gallery, which incorporate less functionality for both shortcut users and developers. In RoutineHub you can add descriptions and customize them as you want with Markdown, add multimedia elements, links, headers and text, practically making a complete mini-site of your published shortcuts.
It's all about the developer and his work
Each of the published Shortcuts refers to its author's page in RoutineHub, where you will be able to see all the shortcuts he has developed for the community, as well as links to his sites simply and quickly. The most important thing for RoutineHub is that each developer can get the credit they deserve for their creations and share more of their work for the community.
With a community overflowing with talented developers
We are very proud to have such talented developers who actively participate in the RoutineHub community on Discord, such as: @mvan231,@gluebyte,@martindb1988,@atnbueno,@blue,@FifiTheBulldog, just to mention a few, it is enough to enter their profiles and see the quality of their contributions to know what their skills as developers have contributed to the community, plus they help new community members to improve their development skills.
But, why don't you see for yourself?, accessour Discord communityand discover for yourself the value of this community.
Hey everyone! I'm u/mvan231, a moderator of r/routinehub. This is our new home for all things related to RoutineHub of course.
What to Post Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts or questions.Site related material should be the theme.
Community Vibe We're all about being friendly, constructive, and inclusive. Let's build a space where everyone feels comfortable sharing and connecting.
How to Get Started
Introduce yourself in the comments below.
Post something today! Even a simple question can spark a great conversation.
If you know someone who would love this community, invite them to join.
Interested in helping out? We're always looking for new moderators, so feel free to reach out to me to apply.
Thanks for being part of the very first wave. Together, let's make r/routinehub amazing.