ShareShortcuts

Lumens To Watts

For those of us who are frustrated trying to understand which new light bulbs to buy

brihar73
Bifurcar “Lumens To Watts”

¿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 brihar73 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
64K
Guardado
1
Acciones
23
Categoría
Utilities
Versión
1.0
Idioma
EN

For those of us who are frustrated trying to understand which new light bulbs to buy.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 18 de nov. de 2019

First release

Qué hace

23 acciones
  1. Choose from Menu
    Input Type
  2. Choose from Menu
    lumens
  3. Ask for Input
    Value
  4. Set Variable
    lumens
  5. Choose from Menu
    watts (incandescent)
  6. Ask for Input
    Value
  7. Calculate
  8. Set Variable
    lumens
  9. Choose from Menu
    watts (LED)
  10. Ask for Input
    Value
  11. Calculate
  12. Set Variable
    lumens
  13. If
  14. Calculate
  15. Round Number
  16. Set Variable
    watts_inc
  17. Calculate
  18. Round Number
  19. Set Variable
    watts_led
  20. Show Alert
    Results
  21. If
  22. Show Alert
    Results
  23. Stop This Shortcut

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'
#define color yellow
#define glyph lightbulb


menu "Input Type" {
item "lumens":
	const ProvidedInput = prompt("Value", "Number")
	@lumens = ProvidedInput
item "watts (incandescent)":
	const ProvidedInput = prompt("Value", "Number")
	@lumens = ProvidedInput * 15
item "watts (LED)":
	const ProvidedInput = prompt("Value", "Number")
	@lumens = ProvidedInput * 90
}

if @lumens >= 1 {
	const CalculationResult = @lumens / 15
	ceil(CalculationResult, "Hundredths")
	@watts_inc
	const CalculationResult = @lumens / 90
	ceil(CalculationResult, "Hundredths")
	@watts_led
	alert("Lumens: {@lumens}\nWatts (Incandescent): {@watts_inc}\nWatts (LED): {@watts_led}", "Results")
} else {
	alert("Input number too low.", "Results")
}
stop()
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 brihar73

Ver todo

También te puede gustar

Ver todo
Publicidad