ShareShortcuts
„Charge Time“ 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 rifatclcode4 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
38K
Gesichert
1
Aktionen
18
Kategorie
Utilities
Version
1.0
Sprache
EN

Vorschau

Keeping an eye on your iPhone’s battery level can be a daunting task, especially when you’re busy doing something else. There’s always a risk of forgetting to unplug your phone once it’s fully charged, which can be detrimental to the device’s battery life in the long run.

However, you can use Siri shortcuts to solve this problem and get notified when your iPhone’s battery is fully charged. The Siri Charge Time shortcut can save you the hassle and provide you with an estimated charge time for your device.

In this blog post, we will discuss how you can use Siri shortcuts to announce when your iPhone battery is fully charged. With this shortcut, you won’t have to keep an eye on your iPhone’s battery level or worry about forgetting to unplug it. So, let’s get started.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 19. Apr 2023

First release

Was er macht

18 Aktionen
  1. Get Battery Level
  2. Calculate
  3. Set Variable
    battery needed
  4. Calculate
  5. Calculate
  6. Round Number
  7. Set Variable
    time left
  8. If
  9. Calculate
  10. Set Variable
    minutes
  11. Show Result
  12. If
  13. If
  14. Calculate
  15. Set Variable
    minutes
  16. Show Result
  17. If
  18. Show Result

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/math'
#include 'actions/device'
#define color green
#define glyph lightningBolt

const NiveauDeLaBatterie = getBatteryLevel()
@BatteryNeeded = 100 - NiveauDeLaBatterie
const RsultatDuCalcul = @BatteryNeeded * 110
const RsultatDuCalcul1 = RsultatDuCalcul / 60
round(RsultatDuCalcul1)
@TimeLeft

if @TimeLeft > 120 {
	@minutes = @TimeLeft - 120
	show("Your phone is at {NiveauDeLaBatterie}%\nIt will take 2 hours and {@minutes} minutes to charge to 100%")
}

if @TimeLeft > 60 {
	if @TimeLeft <= 120 {
		@minutes = @TimeLeft - 60
		show("Your phone is at {NiveauDeLaBatterie}%\nIt will take 1 hour and {@minutes} minutes to charge to 100%")
	}
} else {
	show("Your phone is at {NiveauDeLaBatterie}%\nIt will take {@TimeLeft} minutes to charge to 100%")
}
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 rifatclcode4

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung