ShareShortcuts

배터리 상태 (충전 종료)

Second shortcut of 배터리 상태 series

guinea
„배터리 상태 (충전 종료)“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit guinea die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
9K
Gesichert
0
Aktionen
82
Kategorie
API
Version
1.0
Sprache
EN

Second shortcut of 배터리 상태 series.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 24. Dez 2025

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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(, "충전이 {}%에서 중단됨")
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von guinea

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung