ShareShortcuts

배터리 상태 (충전 종료)

Second shortcut of 배터리 상태 series

guinea
Fork “배터리 상태 (충전 종료)”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so guinea gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
9K
Saved
0
Actions
82
Category
API
Version
1.0
Language
EN

Second shortcut of 배터리 상태 series.

What's New

Version 1.0

First release

Version History
1.0 Dec 24, 2025

First release

What it does

82 actions
  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
    …

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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(, "충전이 {}%에서 중단됨")
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by guinea

See All

You Might Also Like

See All
Advertisement