ShareShortcuts
Dupliquer « Charge Time »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que rifatclcode4 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
38K
Enregistré
1
Actions
18
Catégorie
Utilities
Version
1.0
Langue
EN

Aperçu

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.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 19 avr. 2023

First release

Ce qu’il fait

18 actions
  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

Afficher en tant que code
Bêta

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 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%")
}
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é

Plus de rifatclcode4

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité