Login About Gallery
Prayer Times
COMMENT
Created by /u/JoeReally in 2018-Nov-3
COMMENT
AlertType - If 0, create Alarms. If 1, create Reminders. If -1, calendar events. MinutesBefore - how many minutes before prayer time to set the alert Note: Select your prayer times after the settings
COMMENT
Calculation Method: 0 - Jafari - Leva Research Institute 1 - Karachi - University of Islamic Services 2 - ISNA - Islamic Society of North America 3 - MWL - Muslim World League 4 - Makkah - Umm al-Qura 5 - Egypt - Egyptian General Authority of Survey
DICTIONARY
method
0
minutesBefore
0
alertType
0
VARIABLES
Set variable
Settings
to
Input
COMMENT
Choose your desired prayer times below.
DICTIONARY
Imsaak
1
Fajr
1
Sunrise
1
Dhuhr
1
Asr
1
Sunset
1
Maghrib
1
Isha
1
COMMENT
End user setup
VARIABLES
Set variable
PrayerOptions
to
Input
SCRIPTING
Get
All Keys
in
Dictionary
SCRIPTING
Repeat with each item in
Input
VARIABLES
Get
PrayerOptions
SCRIPTING
Get
Value
for
Repeat Item
in
Dictionary
SCRIPTING
If
Input
Condition
VARIABLES
Get
Repeat Item
Otherwise
NOTHING
Nothing
End If
End Repeat
VARIABLES
Set variable
Prayers
to
Input
REMINDERS
Find
All Reminders
where
Notes
contains
anything
Sort by
None
Limit
SCRIPTING
Count
Items
in
Input
SCRIPTING
If
Input
Condition
SCRIPTING
Choose from Menu
Remove
VARIABLES
REMINDERS
Remove
Reminders
Keep
NOTHING
Nothing
End Menu
End If
NOTHING
Nothing
SCRIPTING
Choose from Menu
Today (prayers not yet finished)
DATE
Current Date
Tomorrow (finished todays prayers)
DATE
Current Date
CALENDAR
Add
0
seconds
from
Date
Other (reminders & events only)
VARIABLES
Get
Settings
SCRIPTING
If
Input
Condition
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
Otherwise
SCRIPTING
Ask
Which date?
Input Type
Date
Default Answer
Time
End If
End Menu
CALENDAR
Get dates from
Input
VARIABLES
Set variable
PrayerDate
to
Input
NOTHING
Nothing
VARIABLES
Set variable
Location
to
Input
TEXT
PrayerDate
00:00
CALENDAR
Get dates from
Input
TEXT
PrayerDate
00:00 UTC
CALENDAR
Get dates from
Input
CALENDAR
Get time between
First Date
and
Second Date
in
Minutes
VARIABLES
Set variable
GMTdiff.minutes
to
Input
TEXT
lat=
Location
&lon=
Current Date
&gmt=
Location
&m=
GMTdiff.minutes
&y=
Current Date
&school=
Settings
URL
http://praytime.info/getprayertimes.php?
Text
NETWORK
Get contents of
URL
Options Under Construction
DOCUMENTS
Get text from
Input
SCRIPTING
Get dictionary from
Input
SCRIPTING
Get
Value
for
PrayerDate
in
Dictionary
VARIABLES
Set variable
PrayerTimes
to
Input
VARIABLES
Get
Prayers
SCRIPTING
Repeat with each item in
Input
VARIABLES
Get
PrayerTimes
SCRIPTING
Get
Value
for
Repeat Item
in
Dictionary
DOCUMENTS
Replace
:
with
World
in
Text
Case Sensitive
Regular Expression
TEXT
Repeat Item
Dictionary Value
End Repeat
NOTHING
Nothing
VARIABLES
Set variable
Prayers
to
Input
VARIABLES
FILES
Filter
Files
Sort by
Name
Order
A to Z
Limit
SCRIPTING
Repeat with each item in
Input
TEXT
Split
Text
by
Every Character
SCRIPTING
Get
Items in Range
6.0
to
End Index
from
List
TEXT
Combine
Text List
with
Custom
Text
VARIABLES
Add
Input
to
Prayers
VARIABLES
SCRIPTING
Get
Items in Range
Start Index
to
5.0
from
List
TEXT
Combine
Text List
with
Custom
Text
End Repeat
TEXT
Combine
Text List
with
New Lines
VARIABLES
Set variable
PrayerTimesSummary
to
Input
VARIABLES
Get
Settings
SCRIPTING
If
Input
Condition
TEXT
alarms
Otherwise
VARIABLES
Get
Settings
SCRIPTING
If
Input
Condition
TEXT
reminders
Otherwise
TEXT
calendar events
End If
End If
SCRIPTING
Choose from Menu
View prayer times

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 11 days ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

38 more actions