Отсканируй на iPhone, чтобы установить
First shortcut of 배터리 상태 series.
Что нового
Версия 1.0
First release
Что делает
Действий: 46-
Get Device Details
-
Text
-
Find Notes
-
Get Text from Input
-
Split Text
-
Count
-
Get Item from List
-
If
-
Get Battery Level
-
If
-
Nothing
-
If
-
Text
-
Find Notes
-
Get Text from Input
-
Split Text
-
Set Variable메모
-
Count
-
Calculate Expression
-
Repeat
-
Calculate Expression
-
Get Item from List
-
Add to Variable
-
Calculate Statistics
-
Round Number
-
Get Battery Level
-
If
-
Text
-
Date
-
Append to Note
-
Get Battery Level
-
Get Text from Input
-
Append to Note
-
Text
-
Append to Note
-
Calculate Expression
-
Round Number
-
Date
-
Adjust Date
-
Format Date
-
Text
-
Show Notification…
-
If
-
Nothing
-
If
-
Nothing
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/device'
#define color blue
#define glyph battery
getDeviceDetail("Device Model")
rawAction("is.workflow.actions.filter.notes", {
"AppIntentDescriptor": "",
"WFContentItemFilter": ""
})
const 1 = getText()
const 2 = splitText(1)
const 3 = count(2)
const 4 = getListItem(2, 3)
if 4 == "충전 종료됨" {
const 5 = getBatteryLevel()
if 5 == 100 {
} else {
rawAction("is.workflow.actions.filter.notes", {
"AppIntentDescriptor": "",
"WFContentItemFilter": ""
})
const 7 = getText(6)
splitText(7)
@
count(@)
const 8 = (-1)/3
repeat _ for 8 {
const 9 = 3*@RepeatIndex+1
getListItem(@, 9)
@
}
const 10 = statistic("", nil)
round(10)
const 11 = getBatteryLevel()
if 11 == {
const 12 = "배터리 사용 ({})"
currentDate()
appendNote(12)
const 13 = getBatteryLevel()
getText(13)
appendNote(12)
appendNote(12)
const 14 = ((100-5)/100)*
round(14)
currentDate()
adjustDate(, "")
formatDate(, "None", "HH시 MM분")
showNotification()
} else {
}
}
} else {
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от guinea
Вам также может понравиться
Реклама