Vista previa
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.
Novedades
First release
Qué hace
18 acciones-
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
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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%")
}
Valoraciones y reseñas
Escribe una reseñaAún no hay reseñas. ¡Sé el primero en compartir tu opinión!