This gets your location and current weather conditions around you and sends them to the person that you choose to send it too.
Nyheder
Version 1.4
Changed comment
Hvad den gør
18 handlinger-
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!
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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)
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra shortgram
Du vil måske også kunne lide
Annonce