ShareShortcuts
Fork “Daylight Hours”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så tonydudley får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
67K
Gemt
0
Handlinger
34
Kategori
Værktøjer
Version
1.0
Sprog
EN

Daylight Hours note for iOS 13 only

Gives you fundamental information about today

Such as Sunrise and Sunset

Nothing great about that? But it also calculates the hours of Daylight and Hours of Darkness too.

Plus the weather where you are.

Nyheder

Version 1.0

First release

Versionshistorik
1.0 1. aug. 2019

First release

Hvad den gør

34 handlinger
  1. Get Current Weather
  2. Get Details of Weather
  3. Set Variable
    Sun Up
  4. Adjust Date
  5. Set Variable
    Uptomorrow
  6. Get Details of Weather
  7. Set Variable
    Sun Down
  8. Get Time Between Dates
  9. Set Variable
    HoursDaylight
  10. Get Time Between Dates
  11. Set Variable
    Darkness
  12. Nothing
  13. Date
  14. Get Time Between Dates
  15. Set Variable
    To Dark
  16. Nothing
  17. Adjust Date
  18. Set Variable
    Golden hour
  19. Nothing
  20. Adjust Date
  21. Set Variable
    Blue
  22. Nothing
  23. Get Details of Weather
  24. Set Variable
    Condition
  25. Get Details of Weather
  26. Set Variable
    Feeling Like
  27. Nothing
  28. Get Time Between Dates
  29. Set Variable
    Tonight
  30. If
  31. Text
  32. If
  33. Text
  34. Show Result

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#include 'actions/location'
#define color yellow
#define glyph sun

const WeatherConditions = getCurrentWeather()
getWeatherDetail(WeatherConditions, "Sunrise Time")
@SunUp
adjustDate(@SunUp, "")
@Uptomorrow
getWeatherDetail(WeatherConditions, "Sunset Time")
@SunDown
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFInput": "{@SunDown}",
	"WFTimeUntilFromDate": "{@SunUp}",
	"WFTimeUntilUnit": "Total Time"
})
@HoursDaylight
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFInput": "{@SunUp}",
	"WFTimeUntilFromDate": "{@SunDown}",
	"WFTimeUntilUnit": "Total Time"
})
@Darkness
nothing()
currentDate()
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFInput": "{@SunDown}",
	"WFTimeUntilFromDate": "{}",
	"WFTimeUntilUnit": "Total Time"
})
@ToDark
nothing()
adjustDate(@SunUp, "")
@GoldenHour
nothing()
adjustDate(@SunDown, "")
@Blue
nothing()
getWeatherDetail(WeatherConditions, "Condition")
@Condition
getWeatherDetail(WeatherConditions, "Feels Like")
@FeelingLike
nothing()
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFInput": "{@Uptomorrow}",
	"WFTimeUntilFromDate": "{@SunDown}",
	"WFTimeUntilUnit": "Total Time"
})
@Tonight

if CurrentDate contains "am" {
} else {
}
show()
Å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 tonydudley

Se alle

Du vil måske også kunne lide

Se alle
Annonce