This gets your location and current weather conditions around you and sends them to the person that you choose to send it too.
Что нового
Версия 1.4
Changed comment
Что делает
Действий: 18-
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!
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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)
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от shortgram
Вам также может понравиться
Реклама