ShareShortcuts
Fork “Weather summary”

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 twilsonco 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
26K
Saved
0
Actions
129
Category
Weather
Version
1.0
Language
EN

Description

This shortcut demonstrates one of the best current abilities of generative AI text models, summarize lists of detailed information using natural language. This fetches weather data for your current location and have Gemini read back a natural language summary of the upcoming weather

Uses "Gemini via API" shortcut.

This shortcut can also be called from other shortcuts, providing as input one or more "Weather conditions" items, and it will return a nicely formatted and contextual string of the condition(s), as in the list provided to Gemini Pro shown below.

Here's an example list of weather data provided to Gemini Pro (with other parts of the prompt removed):

Current weather: Wed: 33°F, low of 24°F and high of 38°F, Windy

Hourly forecast:

10AM: 33°F (feels like 21°F), Windy, 21 mph wind with 27 mi visibility, air quality Good

11AM: 35°F (feels like 24°F), Windy, 20 mph wind with 28 mi visibility

12PM: 37°F (feels like 26°F), Windy, 20 mph wind with 28 mi visibility

1PM: 38°F (feels like 29°F), Windy, 17 mph wind with 30 mi visibility

2PM: 38°F (feels like 28°F), Windy, 17 mph wind with 29 mi visibility

3PM: 37°F (feels like 28°F), Windy, 15 mph wind with 29 mi visibility

4PM: 35°F (feels like 27°F), Mostly Clear, 12 mph wind with 27 mi visibility

5PM: 33°F (feels like 25°F), Mostly Clear, 9 mph wind with 23 mi visibility

6PM: 31°F (feels like 22°F), Mostly Clear, 11 mph wind with 22 mi visibility

7PM: 30°F (feels like 23°F), Mostly Clear, 8 mph wind with 23 mi visibility

8PM: 28°F (feels like 23°F), Mostly Clear, 4 mph wind with 23 mi visibility

9PM: 26°F (feels like 19°F), Partly Cloudy, 6 mph wind with 22 mi visibility

10PM: 25°F (feels like 19°F), Mostly Clear, 5 mph wind with 21 mi visibility

11PM: 25°F (feels like 19°F), Partly Cloudy, 5 mph wind with 21 mi visibility

12AM: 24°F (feels like 19°F), Partly Cloudy, 4 mph wind with 19 mi visibility

1AM: 24°F (feels like 17°F), Partly Cloudy, 6 mph wind with 18 mi visibility

2AM: 24°F (feels like 18°F), Partly Cloudy, 4 mph wind with 16 mi visibility

3AM: 22°F (feels like 16°F), Partly Cloudy, 4 mph wind with 15 mi visibility

4AM: 21°F (feels like 16°F), Partly Cloudy, 4 mph wind with 15 mi visibility

5AM: 21°F (feels like 14°F), Mostly Cloudy, 4 mph wind with 15 mi visibility

6AM: 20°F (feels like 13°F), Mostly Cloudy, 5 mph wind with 17 mi visibility

7AM: 19°F (feels like 10°F), Mostly Cloudy, 7 mph wind with 17 mi visibility

8AM: 19°F (feels like 9°F), Mostly Cloudy, 9 mph wind with 14 mi visibility

9AM: 22°F (feels like 11°F), Mostly Cloudy, 10 mph wind with 11 mi visibility

10AM: 24°F (feels like 12°F), Cloudy, 13 mph wind with 11 mi visibility

Daily forecast:

Wed: 38°F, low of 24°F and high of 38°F, Mostly Clear

Thu: 25°F, low of 10°F and high of 25°F, Mostly Cloudy

Fri: 34°F, low of 11°F and high of 34°F, Mostly Clear

Sat: 19°F, low of -3°F and high of 19°F, Snow with 0.31% chance of precipitation (0.056 in)

Sun: 1°F, low of -9°F and high of 1°F, Mostly Cloudy

Mon: 5°F, low of -14°F and high of 5°F, Mostly Cloudy with 0.14% chance of precipitation (0.033 in)

Tue: 42°F, low of -6°F and high of 42°F, Partly Cloudy

Wed: 38°F, low of 6°F and high of 38°F, Partly Cloudy

Thu: 47°F, low of 16°F and high of 47°F, Partly Cloudy with 0.28% chance of precipitation (0.056 in)

Fri: 30°F, low of 8°F and high of 30°F, Snow with 0.31% chance of precipitation (0.162 in)

And here's its response:

Good morning,

Right now in Arvada, the temperature is 34, and it's windy, with winds at 21 mph and 27-mile visibility. You'll definitely want to bundle up today as temperatures are not expected to rise much, and the wind chill is making it feel about 10 colder.

The weather today will evolve as follows. At 1:00 PM, it's going to get a bit warmer, with temperatures reaching 38° F, though the wind will still be significant at 17 mph. By 4:00 PM, the winds will start to die down and temperatures will begin to drop. By 7:00 PM, expect partly cloudy skies, calm winds, and a temperature of 30. Overnight temperatures will continue to fall, reaching 24 by 10:00 PM, accompanied by partly cloudy skies and light winds.

As for the rest of the week, tomorrow will be colder, with a high of only 25. Friday will be a bit warmer, with a high of 34. Be prepared for a blast of winter weather over the weekend, though, with snow expected Saturday and Sunday, and temperatures dropping to -3 at their lowest. By early next week, conditions will begin to improve again, with a slight warmup on Monday. Tuesday should be much milder, with temperatures reaching 42.

Dress warmly, drink plenty of water, and avoid spending prolonged periods outdoors in the cold today. Have a great day, and enjoy the winter scenery.

What's New

Version 1.0

First release

Version History
1.0 Feb 9, 2024

First release

What it does

129 actions
  1. Comment
    Weather summary By Tim Wilson, November 2023 Use Google Gemini to read back a natural summary of the day’s weather information. Uses “Gemini via API” shortcut https://routinehub.co/shortcut/17624/.
  2. Text
  3. Get Type
  4. If
  5. Count
  6. If
  7. Get Details of Weather
  8. Get Details of Weather
  9. Get Details of Weather
  10. Get Details of Weather
  11. Get Details of Weather
  12. Get Details of Weather
  13. If
  14. Get Details of Weather
  15. Convert Measurement
  16. Text
  17. If
  18. Nothing
  19. Count
  20. If
  21. Comment
    Daily weather conditions
  22. Text
  23. If
  24. Comment
    Hourly/current weather conditions
  25. Get Details of Weather
  26. If
  27. Text
  28. If
  29. Nothing
  30. Get Details of Weather
  31. Convert Measurement
  32. Round Number
  33. Measurement
  34. Get Details of Weather
  35. Round Number
  36. Measurement
  37. Get Details of Weather
  38. If
  39. Text
  40. If
  41. Nothing
  42. Text
  43. Stop and Output
  44. If
  45. Repeat with Each
  46. Run Shortcut
    Weather summary 1
  47. Add to Variable
  48. Combine Text
  49. Stop and Output
  50. Comment
    Check for shortcut updates
  51. Nothing
  52. Comment
    【Auto-Update Routine】 Checks For Latest Shortcut Version ↳ https://routinehub.co/shortcut/16590/
  53. Dictionary
  54. Get Dictionary Value
  55. If
  56. Get IP Address
  57. If
  58. Get Contents of URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  59. If
  60. Split Text
  61. Repeat with Each
  62. Calculate Expression
  63. Set Variable
    Latest Version
  64. Split Text
  65. Repeat with Each
  66. Calculate Expression
  67. Set Variable
    Current Version
  68. If
  69. Choose from Menu
    New Version: … Release: … Whats New: "…"
  70. Choose from Menu
    Update → Result (Version)
  71. Expand URL
  72. Replace Text
  73. Open URLs
  74. Stop This Shortcut
  75. Choose from Menu
    Skip (Info (Version))
  76. Comment
    【Auto-Update Routine Ends Here】 Support → https://www.reddit.com/r/shortcuts/comments/18j4f9p/ 【⚙️】 Convert Semantic Number to Decimals ↳ https://routinehub.co/shortcut/16589/
  77. Nothing
  78. Comment
    Begin dependency check (using “Check-install dependencies (v1)” by Tim Wilson: https://routinehub.co/shortcut/17694/) Dictionary of dependencies, where each: * Key is the name fo the shortcut (used to check if install, so much match perfectly), and …
  79. Dictionary
  80. Get My Shortcuts
  81. Repeat with Each
  82. Filter Files
  83. If
  84. Get IP Address
  85. If
  86. Show Result
  87. If
  88. Show Result
  89. Get Dictionary Value
  90. Set Variable
    URL
  91. Match Text
  92. If
  93. Get Contents of URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  94. Expand URL
  95. Set Variable
    URL
  96. Replace Text
  97. Open URLs
  98. Stop This Shortcut
  99. Nothing
  100. Comment
    End dependency check
  101. Date
  102. Get Current Location
  103. If
  104. Text
  105. If
  106. Text
  107. Dictionary
  108. Run Shortcut
    Gemini via API
  109. Set Variable
    OutGPT
  110. Speak Text
  111. Get Current Weather
  112. Run Shortcut
    Weather summary 1
  113. Get Weather Forecast
  114. Run Shortcut
    Weather summary 1
  115. Get Weather Forecast
  116. Run Shortcut
    Weather summary 1
  117. Text
  118. Set Variable
    Prompt
  119. If
  120. Text
  121. Set Variable
    Prompt
  122. Dictionary
  123. Run Shortcut
    Gemini via API
  124. Replace Text
  125. Set Variable
    Response
  126. If
  127. Replace Text
  128. Set Variable
    Response
  129. Speak Text

Ratings & Reviews

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

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

Advertisement

More by twilsonco

See All

You Might Also Like

See All
Advertisement