COMMENT
version: 0.5.1
User Settings below
SCRIPTING
If
Current Date
has any value
COMMENT
⬇️ Use ‘Dark’ • ‘Light’ or ‘ClassicaLS’
This should match the theme folder in Wetr/Content/Conditions/*theme* exactly (case sensitive)
TEXT
Dark

Text
VARIABLES
Set variable
Theme
to
Text
COMMENT
⬇️ Set wallpaper to be ‘Auto’ or ‘Album’
________
If you set it to ‘Album’ make sure to choose which photo album you want to use 6 steps below, where it says…
“Find [All Photos] Where”
“[Album] [is] [Recents]”
Tap [Recents] and choose your album. This assumes you have already have an album for wallpapers.
TEXT
Auto

Text
COMMENT
⬇️ Use the text field below to change what temperature # you want to use.
“Real” or “Feels”
‘Feels’ accounts for humidity and other factors that might make it feel warmer or cooler than the normal temperature.
TEXT
Feels

Text
VARIABLES
Set variable
TempChoice
to
Text
COMMENT
⬇️ Use the text field below to change what subject you want to use as your wallpaper, IF it’s set to ‘Auto’ above.
TEXT
nature

Text
VARIABLES
Set variable
Subject
to
Text
SCRIPTING
If
Text
is
Album
PHOTOS
Find
All Photos
where
[{'class': 'filter-property', 'value': 'Album'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'anything'}] Get 1 File



Photos
VARIABLES
Set variable
PhotoChoice
to
Photos
SCRIPTING
Otherwise
NETWORK
Get contents of
https://source.unsplash.com/random/1284x2778?
Subject
Options Under Construction

Contents of URL
MEDIA
Get images from
Contents of URL

Images
VARIABLES
Set variable
PhotoChoice
to
Images
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
VARIABLES
Get
PhotoChoice
SCRIPTING
If
Current Date
has any value
DOCUMENTS
DOCUMENTS
Create Folder
Path
/Shortcuts/Wetr/Prefs/
DOCUMENTS
Create Folder
Path
/Shortcuts/Wetr/Content/
DOCUMENTS
Create Folder
Path
/Shortcuts/Wetr/Content/Conditions/
DOCUMENTS
Create Folder
Path
/Shortcuts/Wetr/Content/Conditions/Dark/
DOCUMENTS
Create Folder
Path
/Shortcuts/Wetr/Content/Conditions/Light/
DOCUMENTS
Create Folder
Path
/Shortcuts/Wetr/Content/Conditions/ClassicaLS/
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
SCRIPTING
If
File
does not have any value
LIST

List
SCRIPTING
Choose from
List
Prompt
Select Your Device

Chosen Item
VARIABLES
Set variable
Device
to
Chosen Item
SCRIPTING
Show alert
You chose [
Device
]. Are you sure?
Title
[{'value': 'You chose [ ', 'class': 'text'}, {'class': 'magic', 'value': 'Device', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': ' ]. Are you sure?', 'class': 'text'}]
TEXT
Device

Text
DOCUMENTS
Save
Text
Destination Path
/Shortcuts/Wetr/Prefs/device.txtOverwrite If File Exists

Saved File
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
DOCUMENTS
Get text from
File

Text
VARIABLES
Set variable
Device
to
Text
DICTIONARY

Dictionary
SCRIPTING
Get
Value
for
Device
in
Dictionary

Dictionary Value
SCRIPTING
Get
Value
for
dir
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
DeviceDir
to
Dictionary Value
SCRIPTING
Get
Value
for
group
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
ThemeGroup
to
Dictionary Value
SCRIPTING
Get
Value
for
width
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Width
to
Dictionary Value
SCRIPTING
Get
Value
for
height
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Height
to
Dictionary Value
DICTIONARY

Dictionary
SCRIPTING
Get
Value
for
Theme
in
Dictionary

Dictionary Value
SCRIPTING
Get
Value
for
ThemeGroup
in
Dictionary Value

Dictionary Value
SCRIPTING
Get
Value
for
Text 1 Size
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text1Size
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 2 Size
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text2Size
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 1 X
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text1X
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 2 X
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text2X
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 1 Y
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text1Y
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 2 Y
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text2Y
to
Dictionary Value
SCRIPTING
Get
Value
for
Saturation
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Saturation
to
Dictionary Value
SCRIPTING
Get
Value
for
Blur
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Blur
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 1 Align
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text1Align
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 2 Align
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text2Align
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 1 Color
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text1Color
to
Dictionary Value
SCRIPTING
Get
Value
for
Text 2 Color
in
Dictionary Value

Dictionary Value
VARIABLES
Set variable
Text2Color
to
Dictionary Value
SCRIPTING
End If

If Result
COMMENT
Weather
SCRIPTING
If
Current Date
has any value
LOCATION
Get current weather at
Current Location

Weather Conditions
LOCATION
Get
Condition
from
Weather Conditions

Condition
VARIABLES
Set variable
WeatherCond
to
Condition
LOCATION
Get
Precipitation Chance
from
Weather Conditions

Precipitation Chance
VARIABLES
Set variable
WeatherPrecip
to
Precipitation Chance
SCRIPTING
End If

If Result
COMMENT
Shortcut Update Checker
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
SCRIPTING
If
File
does not have any value
TEXT
0.5.1

Text
NETWORK
Get contents of
https://github.com/Polyphian/repo/raw/master/shortcuts/Wetr/updater/version.txt
Options Under Construction

Contents of URL
DOCUMENTS
Get text from
Contents of URL

Text
SCRIPTING
If
Text
is not
Numbers
NETWORK
Get contents of
https://github.com/Polyphian/repo/raw/master/shortcuts/Wetr/updater/URL.txt
Options Under Construction

Contents of URL
NETWORK
Get contents of
https://github.com/Polyphian/repo/raw/master/shortcuts/Wetr/updater/updateNotes.txt
Options Under Construction

Contents of URL
DOCUMENTS
Get text from
Contents of URL

Text