ShareShortcuts

10 Day Forecast

10-Day Forecast for Your Location

jamesjhb
Bifurcar “10 Day Forecast”

¿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 jamesjhb 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
7K
Guardado
0
Acciones
23
Categoría
API
Versión
1.0
Idioma
EN

10-Day Forecast for Your Location

Novedades

Versión 1.0

First release

Historial de versiones
1.0 26 de feb. de 2026

First release

Qué hace

23 acciones
  1. Text
  2. Set Variable
    10 Day Forecast
  3. Get Weather Forecast
  4. Get Details of Weather
  5. Get Details of Weather
  6. Get Details of Weather
  7. Text
  8. Set Variable
    Zero Count
  9. Date
  10. Adjust Date
  11. Repeat
  12. Text
  13. Add to Variable
  14. Count
  15. Adjust Date
  16. Calculate
  17. Get Item from List
  18. Get Item from List
  19. Text
  20. Add to Variable
  21. Get Item from List
  22. Combine Text
  23. Quick Look

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/location'
#define color blue
#define glyph raincloud

@10DayForecast = "nil"
const WeatherConditions = getWeatherForecast()
const High = getWeatherDetail(WeatherConditions, "High")
const Low = getWeatherDetail(WeatherConditions, "Low")
getWeatherDetail(WeatherConditions, "Date")
@ZeroCount = "0"
currentDate()
adjustDate(, "Subtract")

const RepeatResults = repeat _ for 10 {
	@ZeroCount += "0"
	const Count = count(@ZeroCount)
	adjustDate(, "")
	const CalculationResult = Count - 1
	getListItem(High, CalculationResult)
	getListItem(Low, CalculationResult)
	@10DayForecast += "{} | {}/{}\n_________________________________"
}
const ItemFromList = getListItems(RepeatResults, 55, 65)
const CombinedText = joinText(ItemFromList)
quicklook(CombinedText)
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 jamesjhb

Ver todo

También te puede gustar

Ver todo
Publicidad