Отсканируй на iPhone, чтобы установить
Aktuellere Versionen in Routinehub
Что нового
Версия 1.1
Test Auto-Update
Что делает
Действий: 29-
Get IP Address
-
If
-
Text
-
Save File
-
If
-
Text
-
Save File
-
Set Cellular Data
-
Location
-
Location
-
Show Directions
-
Get Weather Forecast
-
Get Weather Forecast
-
Get Item from List
-
Get Item from List
-
Get Current Location
-
Show Notification…: … …: …
-
File
-
Text
-
If
-
Set Cellular Data
-
If
-
Delete Files
-
Get My Shortcuts
-
Text
-
If
-
Dictionary
-
Run ShortcutShortcuts Updater
-
If
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/network'
#define color red
#define glyph tramTunnel
const AktuelleIPAdresse = getExternalIP()
if AktuelleIPAdresse {
const Text = "Verbunden"
saveFile("Status.txt", Text, true)
} else {
const Text1 = "Nicht Verbunden"
saveFile("Status.txt", Text1, true)
setCellularData(false)
}
const Start = location("")
const Ziel = location("")
rawAction("is.workflow.actions.getdirections", {
"WFDestination": "Ziel",
"WFGetDirectionsActionApp": "Maps",
"WFGetDirectionsActionMode": "Transit",
"WFLocation": "Start"
})
const Wetterbedingungen = getWeatherForecast("Hourly")
const Wetterbedingungen1 = getWeatherForecast("Hourly")
getFirstItem(Wetterbedingungen)
getRandomItem(Wetterbedingungen1)
const AktuellerStandort = getCurrentLocation()
showNotification("{Start['City']}: {}\n{Ziel['City']}: {}", "Wetter für {Start['City']} und {Ziel['City']}:", AktuellerStandort)
file()
const Text2 = "{}"
if Text2 beginsWith "Nicht" {
setCellularData(0)
} else {
}
deleteFiles(, true)
getShortcuts()
const Text3 = "{}"
if Text3 contains "Shortcuts Updater" {
const Wrterbuch = {
"name": "Nächste Zugverbindung",
"shareid": 2753,
"version": "1.0"
}
run("Shortcuts Updater", Wrterbuch)
} else {
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Вам также может понравиться
Реклама