Login About Gallery
Turn ON TV
COMMENT
Auto-Update RoutineHub API ———=———•———=———•———=——— This shortcut serves as a base for new shortcuts to avoid copy-paste of each actions from one shortcut to another.
COMMENT
» Glossary: The <RoutineHub_id> is a numeric value assigned to a shortcut on the site when a new shortcut is submitted. To find this ID after creating the shortcut on RoutineHub, tap/click on the address bar and view the numeric ID value. Ex: https://routinehub.co/shortcut/14008 ↳ RoutineHub ID: 14008
NOTHING
Nothing
COMMENT
【Auto-Update Routine】 ↳ https://routinehub.co/shortcut/14008
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
True
SCRIPTING
Get
Value
for
Version Check
in
Info
SCRIPTING
If
Version Check
is
Yes
SCRIPTING
Get current IP address
Options Under Construction
SCRIPTING
If
Current IP Address
has any value
NETWORK
Get contents of
https://routinehub.co/api/v1/shortcuts/
RoutineHub ID
/versions/latest
Options Under Construction
SCRIPTING
If
Result
contains
success
TEXT
Split
Result
by
Custom
.
SCRIPTING
Repeat with each item in
Split Text
NUMBER
1.0
MATHS
Number
÷
1000.0
Options Under Construction
MATHS
Options Under Construction
MATHS
Calculation Result
×
Repeat Item
Options Under Construction
MATHS
Calculation Result
+
Latest Version
Options Under Construction
VARIABLES
Set variable
Latest Version
to
Calculation Result
End Repeat
TEXT
Split
Version
by
Custom
.
SCRIPTING
Repeat with each item in
Split Text
NUMBER
1.0
MATHS
Number
÷
1000.0
Options Under Construction
MATHS
Options Under Construction
MATHS
Calculation Result
×
Repeat Item
Options Under Construction
MATHS
Calculation Result
+
Current Version
Options Under Construction
VARIABLES
Set variable
Current Version
to
Calculation Result
End Repeat
SCRIPTING
If
Latest Version
is greater than
Current Version
SCRIPTING
Choose from Menu
Update → Result (Version)
SAFARI
SCRIPTING
Exit shortcut with
Result
Skip (Info (Version))
End Menu
End If
Otherwise
SCRIPTING
Get the
System Version
SCRIPTING
Get the
Device Model
NETWORK
Get contents of
https://updatekit.mikebeas.com/v1
Options Under Construction
VARIABLES
Set variable
Contents of URL
to
Response
SCRIPTING
Get
Value
for
update
in
Contents of URL
SCRIPTING
If
Dictionary Value
is
<value>
SCRIPTING
Choose from Menu
Update
SAFARI
SCRIPTING
Exit shortcut with
Result
Skip
End Menu
End If
End If
End If
End If
COMMENT
【Auto-Update Routine Ends Here】
MISSING
Donated Action
homeaccessory Under Construction
Error Loading Action
Error Loading Action
NOTHING
Nothing

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0