Scanne avec ton iPhone pour installer
Second shortcut of 배터리 상태 series.
Nouveautés
Version 1.0
First release
Ce qu’il fait
82 actions-
Get Device Details
-
Text
-
Find Notes
-
Get Text from Input
-
Split Text
-
Count
-
Get Item from List
-
If
-
Nothing
-
If
-
Get Battery Level
-
If
-
Nothing
-
If
-
Text
-
Date
-
Append to Note
-
Get Battery Level
-
Get Text from Input
-
Append to Note
-
Text
-
Append to Note
-
Get Text from Input
-
Split Text
-
Set Variable메모
-
Count
-
Calculate Expression
-
Get Item from List
-
Get Dates from Input
-
Get Item from List
-
Calculate Expression
-
Get Item from List
-
Get Dates from Input
-
Get Item from List
-
Get Time Between Dates
-
Get Text from Input
-
Calculate Expression
-
Get Item from List
-
Get Numbers from Input
-
Calculate Expression
-
Get Item from List
-
Get Numbers from Input
-
Calculate Expression
-
Get Text from Input
-
Text
-
Append to Note
-
Append to Note
-
Get Numbers from Input
-
If
-
Text
-
Find Notes
-
Get Text from Input
-
Split Text
-
Count
-
Calculate Expression
-
Repeat
-
Calculate Expression
-
Get Item from List
-
Add to Variable
-
Calculate Statistics
-
Round Number
-
Get Text from Input
-
Set Variable평균 충전시간
-
Append to Note
-
If
-
Calculate Expression
-
Round Number
-
Get Text from Input
-
Set Variable평균 충전시간
-
Append to Note
-
Get Battery Level
-
Calculate Expression
-
Date
-
Format Date
-
Adjust Date
-
Format Date
-
Calculate Expression
-
Round Number
-
Adjust Date
-
Format Date
-
Text
-
Show Notification…
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/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 == "충전 종료됨" {
} else {
const 5 = getBatteryLevel()
if 5 == {
} else {
const 6 = "배터리 사용 ({})"
currentDate()
appendNote(6)
const 7 = getBatteryLevel()
getText(7)
appendNote(6)
const 8 = appendNote(6)
}
const 9 = getText(8)
splitText(9)
@
count(@)
const 10 = -5
const 11 = getListItem(@, 10)
const 12 = getDates(11)
getListItem(12, 2)
const 13 = -2
const 14 = getListItem(@, 13)
const 15 = getDates(14)
getListItem(15, 2)
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{}",
"WFTimeUntilFromDate": "{}"
})
const dtime = getText(16)
const 17 = -4
const 18 = getListItem(@, 17)
getNumbers(18)
const 19 = -1
const 20 = getListItem(@, 19)
getNumbers(20)
const 21 = -
const dbattery = getText(21)
const 22 = "배터리 기록 ({})"
appendNote(22, dtime)
appendNote(22, dbattery)
getNumbers(16)
if dbattery == 0 {
const 30 = "배터리 기록 ({})"
rawAction("is.workflow.actions.filter.notes", {
"AppIntentDescriptor": "",
"WFContentItemFilter": "",
"WFContentItemLimitEnabled": false
})
const 24 = getText(23)
const 25 = splitText(24)
count(25)
const 26 = (/3)-1
repeat _ for 26 {
const 27 = (@RepeatIndex*3)+1
getListItem(25, 27)
@MeanList
}
const 28 = statistic("", nil)
const 29 = ceil(28, "Hundredths")
getText(29)
@
appendNote(30)
} else {
const 31 = *(100/21)
const 32 = ceil(31, "Hundredths")
getText(32)
@
appendNote(22)
}
}
getBatteryLevel()
currentDate()
formatDate(, "None")
adjustDate(, "Subtract")
formatDate(, "None")
const 33 = ((100-)/100)*@
round(33)
adjustDate(, "Add")
formatDate(, "None")
showNotification(, "충전이 {}%에서 중단됨")
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 guinea
Ça pourrait aussi te plaire
Publicité