Login About Gallery
SunData updater (public)
VARIABLES
Set variable
Run start
to
Current Date
LOCATION
Get
Daily
forecast at
Current Location
SCRIPTING
Get
First Item
from
Weather Conditions
VARIABLES
Set variable
Last sunrise
to
Item from List
VARIABLES
Set variable
Last sunset
to
Item from List
CALENDAR
Get time between
Last sunrise
and
Last sunset
in
Seconds
VARIABLES
Set variable
Last duration sec
to
Time Between Dates
MATHS
Last duration sec
÷
2
Options Under Construction
CALENDAR
Add
0
seconds
from
Last sunrise
VARIABLES
Set variable
Last Noon
to
Adjusted Date
CALENDAR
Get time between
Last sunrise
and
Last sunset
in
Minutes
SCRIPTING
Repeat with each item in
Weather Conditions
NOTIFICATIONS
Show notification
Repeat Item
Options Under Construction
VARIABLES
Set variable
Current sunrise
to
Repeat Item
VARIABLES
Set variable
Current Sunset
to
Repeat Item
CALENDAR
Get time between
Current sunrise
and
Current Sunset
in
Seconds
VARIABLES
Set variable
Current duration sec
to
Time Between Dates
MATHS
Current duration sec
÷
2
Options Under Construction
CALENDAR
Add
0
seconds
from
Current sunrise
VARIABLES
Set variable
Noon
to
Adjusted Date
CALENDAR
Get time between
Last Noon
and
Noon
in
Total Time
VARIABLES
Set variable
Noon diff
to
Time Between Dates
MATHS
Current duration sec
÷
4
Options Under Construction
CALENDAR
Add
0
seconds
from
Current sunrise
VARIABLES
Set variable
Mid morning
to
Adjusted Date
CALENDAR
Format
Mid morning
Options Under Construction
VARIABLES
Set variable
Mid morning text
to
Formatted Date
CALENDAR
Subtract
0
seconds
from
Current Sunset
VARIABLES
Set variable
Mid afternoon
to
Adjusted Date
CALENDAR
Format
Mid afternoon
Options Under Construction
VARIABLES
Set variable
Mid afternoon text
to
Formatted Date
MATHS
Current duration sec
-
Last duration sec
Options Under Construction
VARIABLES
Set variable
Duration diff
to
Calculation Result
SHORTCUTS
Run
HH:MM:SS
Input
Current duration sec
Show While Running
VARIABLES
Set variable
Duration abs
to
Shortcut Result
SCRIPTING
If
Repeat Index
is greater than
1
COMMENT
Midnight: The time between Last Sunset and Current Sunrise divided by two, added to Last Sunset. Valid only from Repeat Index 2 on. Deltas would only be available from Index 3 on
CALENDAR
Get time between
Last sunset
and
Current sunrise
in
Seconds
MATHS
Options Under Construction
CALENDAR
Add
0
seconds
from
Last sunset
VARIABLES
Set variable
Midnight
to
Adjusted Date
End If
CALENDAR
Get time between
Last sunrise
and
Current sunrise
in
Total Time
VARIABLES
Set variable
Sunrise diff
to
Time Between Dates
SHORTCUTS
Run
Weather Condition Emoji
Input
Repeat Item
Show While Running
TEXT
Sunrise
Midnight
,
Repeat Item
Repeat Item
at
Noon diff
to
Duration diff
. Precip
Duration abs
%. Sunrise delta:
Shortcut Result
. Duration:
Repeat Item
. Duration delta:
Repeat Item
. Noon:
Noon
, Delta
Sunrise diff
Midnight:
Repeat Item
VARIABLES
Set variable
Sunrise Fulltext
to
Text
TEXT
Sunrise
Shortcut Result
,
Repeat Item
Repeat Item
delta:
Sunrise diff
.
VARIABLES
Set variable
Sunrise Title
to
Text
NOTIFICATIONS
Show notification
Text
Options Under Construction
CALENDAR
Get Start of Day
from
Current sunrise
VARIABLES
Set variable
DayZero
to
Adjusted Date
CALENDAR
Add
24
hours
from
DayZero
VARIABLES
Set variable
DayMax
to
Adjusted Date
CALENDAR
Find
All Calendar Events
where
All the following are true
Start Date
is between
DayZero
and
DayMax
Calendar
is
Home
Title
contains
Sunrise
Sort by
None
Limit
SCRIPTING
Count
Items
in
Calendar Events
SCRIPTING
If
Count
is
1
setters.calendarevents Under Construction
setters.calendarevents Under Construction
SCRIPTING
If
Repeat Index
is greater than
1
setters.calendarevents Under Construction
setters.calendarevents Under Construction
Otherwise
End If
Otherwise
SCRIPTING
If
Count
is greater than
1
NOTIFICATIONS
Show notification
Repeat Results
Options Under Construction
DOCUMENTS
Show
Calendar Events
in Quick Look
SCRIPTING
Exit shortcut with
Result
Otherwise
CALENDAR
Add
Sunrise Title
from
Current sunrise
to
Current sunrise
Location
optional
Calendar
Home
All Day
Alert
1 hour before
End If
End If
SCRIPTING
If
Repeat Index
is
2
NULL
CALENDAR
Add
Mid morning
Mid morning text
from
Mid morning
to
Mid morning
Location
optional
Calendar
Weather
All Day
Alert
At time of event
End If
TEXT
Noon
Repeat Item
,
Noon
Repeat Item
at
Noon diff
to
Duration abs
. Precip
Repeat Item
%. Noon delta:
Repeat Item
. Duration:
Shortcut Result
. Midnight:
Midnight
VARIABLES
Set variable
Noon Fulltext
to
Text
TEXT
Noon
Duration diff
. Delta:
Duration abs
. Duration:
Noon diff
. Delta:
Noon
VARIABLES
Set variable
Noon Title
to
Text
NOTIFICATIONS
Show notification
Text
Options Under Construction
CALENDAR
Find
All Calendar Events
where
All the following are true
Start Date
is between
DayZero
and
DayMax
Calendar
is
Weather
Title
contains
Noon
Sort by
None
Limit
SCRIPTING
Count
Items
in
Calendar Events
SCRIPTING
If
Count
is
1
setters.calendarevents Under Construction
setters.calendarevents Under Construction
setters.calendarevents Under Construction
COMMENT
First round has no Deltas. Don’t edit text there
SCRIPTING
If
Repeat Index
is greater than
1
setters.calendarevents Under Construction
setters.calendarevents Under Construction
Otherwise
End If
Otherwise
SCRIPTING
If
Count
is greater than
1
NOTIFICATIONS
Show notification
Repeat Results
Options Under Construction
DOCUMENTS
Show
Calendar Events
in Quick Look
SCRIPTING
Exit shortcut with
Result
Otherwise

Showcuts

Magic Vars

Screenshot

Submitted by kingsave3166 over a year ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

66 more actions