ShareShortcuts

Charging Time

Know how many time till your phone is fully charged!

ammrmuhmmed
Fazer fork de “Charging Time”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que ammrmuhmmed receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
213K
Salvo
9
Ações
19
Categoria
Utilities
Versão
1.0
Idioma
EN

Know how many time till your phone is fully charged!

Novidades

Versão 1.0

First release

Histórico de versões
1.0 4 de mai de 2022

First release

O que ele faz

19 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de ammrmuhmmed

Ver tudo

Você também pode gostar

Ver tudo
Publicidade