Scanne avec ton iPhone pour installer
Kiểm tra thời gian sạc đầy đến 100%
Nouveautés
Version 1.0
First release
Ce qu’il fait
18 actions-
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/math'
#include 'actions/device'
#define color green
#define glyph rectangleSplitThreeOutline
const McPin = getBatteryLevel()
@BatteryNeeded = 100 - McPin
const RsultatDuCalcul = @BatteryNeeded * 110
const RsultatDuCalcul1 = RsultatDuCalcul / 60
round(RsultatDuCalcul1)
@TimeLeft
if @TimeLeft > 120 {
@minutes = @TimeLeft - 120
show("Máy của bạn đang ở {McPin}%\nNó sẽ mất 2 tiếng và {@minutes} phút để sạc đến 100%")
}
if @TimeLeft > 60 {
if @TimeLeft <= 120 {
@minutes = @TimeLeft - 60
show("Máy của bạn đang ở{McPin}%\nNó sẽ mất 1 tiếng và {@minutes} phút để sạc đến 100%")
}
} else {
show("Máy của bạn đang ở {McPin}%\nNó sẽ mất {@TimeLeft} phút để sạc đến 100%")
}
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é
Ça pourrait aussi te plaire
Publicité