GIF and QR maker
What's New
Version 1.0
First release
What it does
42 actions-
Dictionary
-
Get IP Address
-
If
-
Get File
-
If
-
Get Time Between Dates
-
If
-
Nothing
-
If
-
Create Folder
-
Nothing
-
If
-
Save File
-
Get Contents of URLhttps://routinehub.co/api/v1/shortcuts/…/versions/latest
-
Get Dictionary Value
-
If
-
Choose from MenuA new Version is available. Version: … -> … Changes: …
-
Choose from MenuGet new Version
-
Replace Text
-
Open URLs
-
Stop This Shortcut
-
Choose from MenuSkip Update
-
Get Device Details
-
If
-
If
-
Stop This Shortcut
-
Select Photos
-
Make GIF
-
Quick Look
-
Choose from Menu
-
Choose from MenuSave to Camera roll
-
Save to Photo Album
-
Choose from MenuSave to iCloud Drive
-
Save File
-
Choose from Menu
-
Choose from MenuMake QR code
-
Generate QR Code
-
Quick Look
-
Choose from MenuSave GIF
-
Save to Photo Album
-
Show Result
-
Choose from MenuExit ❌
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/network'
#define color darkblue
#define glyph QRCode
const CurrentIPAddress = getExternalIP()
if CurrentIPAddress contains "." {
const File = getFile("{['Path']}/LastUpdateCheck.txt", false)
if File {
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{CurrentDate}",
"WFTimeUntilFromDate": "{File}",
"WFTimeUntilUnit": "Hours"
})
if TimeBetweenDates > 8 {
}
} else {
createFolder(['Path'])
}
if !IfResult {
saveFile("{['Path']}/LastUpdateCheck.txt", true)
const ContentsOfURL = downloadURL("https://routinehub.co/api/v1/shortcuts/{['ID']}/versions/latest")
const DictionaryValue = getValue(ContentsOfURL, "Version")
if DictionaryValue != Dictionary['Version'] {
menu "A new Version is available.\nVersion: {['Version']} -> {ContentsOfURL['Version']}\n\nChanges:\n{ContentsOfURL['Notes']}" {
item "Get new Version":
const UpdatedText = replaceText("https://www.icloud.com", "shortcuts:/", ContentsOfURL['URL'])
openURL(UpdatedText)
stop()
item "Skip Update":
}
}
}
}
const SystemVersion = getDeviceDetail("System Version")
if SystemVersion beginsWith "14" {
} else {
stop()
}
const Photos = selectPhotos(true)
const GIF = makeGIF(Photos)
quicklook(GIF)
menu nil {
item "Save to Camera roll":
savePhoto(GIF)
item "Save to iCloud Drive":
saveFilePrompt(GIF)
}
menu nil {
item "Make QR code":
const QRCode = makeQRCode(GIF, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
quicklook(QRCode)
item "Save GIF":
savePhoto(GIF)
show()
item "Exit ❌":
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by iconickr
You Might Also Like
Advertisement