This gets your location and current weather conditions around you and sends them to the person that you choose to send it too.
Nouveautés
Version 1.4
Changed comment
Ce qu’il fait
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!
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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)
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de shortgram
Ça pourrait aussi te plaire
Publicité