ShareShortcuts

배터리 상태 (충전 종료)

Second shortcut of 배터리 상태 series

guinea
Создать форк «배터리 상태 (충전 종료)»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы guinea получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
9K
Сохранено
0
Действия
82
Категория
API
Версия
1.0
Язык
EN

Second shortcut of 배터리 상태 series.

Что нового

Версия 1.0

First release

История версий
1.0 24 дек 2025 г.

First release

Что делает

Действий: 82
  1. Get Device Details
  2. Text
  3. Find Notes
  4. Get Text from Input
  5. Split Text
  6. Count
  7. Get Item from List
  8. If
  9. Nothing
  10. If
  11. Get Battery Level
  12. If
  13. Nothing
  14. If
  15. Text
  16. Date
  17. Append to Note
  18. Get Battery Level
  19. Get Text from Input
  20. Append to Note
  21. Text
  22. Append to Note
  23. Get Text from Input
  24. Split Text
  25. Set Variable
    메모
  26. Count
  27. Calculate Expression
  28. Get Item from List
  29. Get Dates from Input
  30. Get Item from List
  31. Calculate Expression
  32. Get Item from List
  33. Get Dates from Input
  34. Get Item from List
  35. Get Time Between Dates
  36. Get Text from Input
  37. Calculate Expression
  38. Get Item from List
  39. Get Numbers from Input
  40. Calculate Expression
  41. Get Item from List
  42. Get Numbers from Input
  43. Calculate Expression
  44. Get Text from Input
  45. Text
  46. Append to Note
  47. Append to Note
  48. Get Numbers from Input
  49. If
  50. Text
  51. Find Notes
  52. Get Text from Input
  53. Split Text
  54. Count
  55. Calculate Expression
  56. Repeat
  57. Calculate Expression
  58. Get Item from List
  59. Add to Variable
  60. Calculate Statistics
  61. Round Number
  62. Get Text from Input
  63. Set Variable
    평균 충전시간
  64. Append to Note
  65. If
  66. Calculate Expression
  67. Round Number
  68. Get Text from Input
  69. Set Variable
    평균 충전시간
  70. Append to Note
  71. Get Battery Level
  72. Calculate Expression
  73. Date
  74. Format Date
  75. Adjust Date
  76. Format Date
  77. Calculate Expression
  78. Round Number
  79. Adjust Date
  80. Format Date
  81. Text
  82. Show Notification
    …

Посмотреть как код
Бета

Все действия этой команды, записанные на 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 == "충전 종료됨" {
} 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(, "충전이 {}%에서 중단됨")
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от guinea

См. все

Вам также может понравиться

См. все
Реклама