ShareShortcuts

10 Day Forecast

10-Day Forecast for Your Location

jamesjhb
Fork “10 Day Forecast”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so jamesjhb gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
7K
Saved
0
Actions
23
Category
API
Version
1.0
Language
EN

10-Day Forecast for Your Location

What's New

Version 1.0

First release

Version History
1.0 Feb 26, 2026

First release

What it does

23 actions
  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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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)
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by jamesjhb

See All

You Might Also Like

See All
Advertisement