Scan med din iPhone for at installere
10-Day Forecast for Your Location
Nyheder
Version 1.0
First release
Hvad den gør
23 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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)
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra jamesjhb
Du vil måske også kunne lide
Annonce