ShareShortcuts

Charging Time

Know how many time till your phone is fully charged!

ammrmuhmmed
Bifurcar “Charging Time”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que ammrmuhmmed reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
213K
Guardado
9
Acciones
19
Categoría
Utilities
Versión
1.0
Idioma
EN

Know how many time till your phone is fully charged!

Novedades

Versión 1.0

First release

Historial de versiones
1.0 4 de may. de 2022

First release

Qué hace

19 acciones
  1. Comment
    This Shortcut Made By Ammrmuhmmed My Instagram : @ammrmuhmmed
  2. Get Battery Level
  3. Calculate
  4. Set Variable
    battery needed
  5. Calculate
  6. Calculate
  7. Round Number
  8. Set Variable
    time left
  9. If
  10. Calculate
  11. Set Variable
    minutes
  12. Show Result
  13. If
  14. If
  15. Calculate
  16. Set Variable
    minutes
  17. Show Result
  18. If
  19. Show Result

Ver como código
Beta

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 battery

/*
This Shortcut Made By Ammrmuhmmed
My Instagram : @ammrmuhmmed
*/
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%")
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de ammrmuhmmed

Ver todo

También te puede gustar

Ver todo
Publicidad