ShareShortcuts

Charge Time

İnstagram:furkan2427\

furkan2427
Bifurcar “Charge 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 furkan2427 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
29K
Guardado
0
Acciones
18
Categoría
API
Versión
1.0
Idioma
EN

İnstagram:furkan2427_

Novedades

Versión 1.0

First release

Historial de versiones
1.0 29 de sep. de 2023

First release

Qué hace

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

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 magicWand

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 furkan2427

Ver todo

También te puede gustar

Ver todo
Publicidad