ShareShortcuts

Thời gian sạc

Kiểm tra thời gian sạc đầy đến 100%

khaicute2009
Bifurcar “Thời gian sạc”

¿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 khaicute2009 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
43K
Guardado
0
Acciones
18
Categoría
Utilities
Versión
1.0
Idioma
VI

Kiểm tra thời gian sạc đầy đến 100%

Novedades

Versión 1.0

First release

Historial de versiones
1.0 11 de mar. de 2022

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

También te puede gustar

Ver todo
Publicidad