ShareShortcuts

배터리 상태 (충전 종료)

Second shortcut of 배터리 상태 series

guinea
Dupliquer « 배터리 상태 (충전 종료) »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que guinea soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
9K
Enregistré
0
Actions
82
Catégorie
API
Version
1.0
Langue
EN

Second shortcut of 배터리 상태 series.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 24 déc. 2025

First release

Ce qu’il fait

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
    …

Afficher en tant que code
Bêta

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

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité