ShareShortcuts

10 Day Forecast

10-Day Forecast for Your Location

jamesjhb
„10 Day Forecast“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit jamesjhb die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
7K
Gesichert
0
Aktionen
23
Kategorie
API
Version
1.0
Sprache
EN

10-Day Forecast for Your Location

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 26. Feb 2026

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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)
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von jamesjhb

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung