ShareShortcuts

배터리 상태 (충전 종료)

Second shortcut of 배터리 상태 series

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

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que guinea reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
9K
Guardado
0
Acciones
82
Categoría
API
Versión
1.0
Idioma
EN

Second shortcut of 배터리 상태 series.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 24 de dic. de 2025

First release

Qué hace

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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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(, "충전이 {}%에서 중단됨")
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de guinea

Ver todo

También te puede gustar

Ver todo
Publicidad