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
First release
Was er macht
18 Aktionen-
Get Battery Level
-
Calculate
-
Set Variablebattery needed
-
Calculate
-
Calculate
-
Round Number
-
Set Variabletime left
-
If
-
Calculate
-
Set Variableminutes
-
Show Result
-
If
-
If
-
Calculate
-
Set Variableminutes
-
Show Result
-
If
-
Show Result
Als Code ansehen
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%")
}
Bewertungen und Rezensionen
Rezension schreibenNo reviews yet. Be the first to share what you think!