Mit dem iPhone scannen, um zu installieren
10-Day Forecast for Your Location
Neue Funktionen
Version 1.0
First release
Was er macht
23 Aktionen-
Text
-
Set Variable10 Day Forecast
-
Get Weather Forecast
-
Get Details of Weather
-
Get Details of Weather
-
Get Details of Weather
-
Text
-
Set VariableZero Count
-
Date
-
Adjust Date
-
Repeat
-
Text
-
Add to Variable
-
Count
-
Adjust Date
-
Calculate
-
Get Item from List
-
Get Item from List
-
Text
-
Add to Variable
-
Get Item from List
-
Combine Text
-
Quick Look
Als Code ansehen
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
Das gefällt dir vielleicht auch
Werbung