This gets your location and current weather conditions around you and sends them to the person that you choose to send it too.
What's New
Version 1.4
Changed comment
What it does
18 actions-
Set VariableMessage
-
Get Current Location
-
Set VariableCurrentLocation
-
Get Current Weather
-
Set VariableCurrentWeather
-
Ask for InputDo you want to add a personal message?
-
If
-
Dictate Text
-
Set VariablePersonalText
-
If
-
Text
-
Add to Variable
-
If
-
Text
-
Add to Variable
-
CommentAdd the person that you want the text to go too.
-
Send Message
-
Show NotificationDone!
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/text'
#include 'actions/location'
#define color red
#define glyph personRunning
@Message = nil
getCurrentLocation()
@CurrentLocation
getCurrentWeather()
@CurrentWeather
const ProvidedInput = prompt("Do you want to add a personal message?")
if ProvidedInput contains "Yes" {
listen()
@PersonalText
}
if !@PersonalText {
@Message += "--Pre made--\nI need help! This is my current location: {@CurrentLocation}\n\nAnd the weather is: {@CurrentWeather}"
} else {
@Message += "--Pre made--\nI need help! This is my current location: {@CurrentLocation}\n\nAnd the weather is: {@CurrentWeather}\n--Personal message-- \n{@PersonalText}"
}
// Add the person that you want the text to go too.
sendMessage(nil, @Message, false)
showNotification("Done!", "From shortcuts app", false)
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 shortgram
You Might Also Like
Advertisement