Login About Gallery
Sleep Widget
COMMENT
‎Sleep Widget shortcut by veredictum Version:0.6.4;
COMMENT
‎To run setup, go to the details (...) menu and tap “Customize shortcut...”
COMMENT
‎Set value below to enable Charty 0 = disabled 1 = enabled 2 = ask each time
NUMBER
‎1
VARIABLES
‎Set variable ‎ChartyEnabled ‎to ‎Number
COMMENT
‎Enter comment...
COMMENT
‎Advanced configuration options
DICTIONARY
VARIABLES
‎Set variable ‎UserConfig ‎to ‎Dictionary
COMMENT
‎Set value below to return to Springboard after running. 1 = Return to Springboard 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎SpringboardEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable update checking. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎UpdatesEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable resting heart rate on the chart. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎RestingEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable the motion series on the chart. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎MotionEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable the heart rate moving average series. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎HeartAverageEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable the initial menu. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎MenuEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable notifications. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎NotificationsEnabled ‎to ‎Number
COMMENT
‎Set the value below to show the report before quitting. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎ShowReport ‎to ‎Number
COMMENT
‎Set the value below to enable the noise series on the chart. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎NoiseEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable the motion average series on the chart. 1 = enabled 0 = disabled
NUMBER
‎0
VARIABLES
‎Set variable ‎MotionAvgEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable the sleep quality series on the chart. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎SleepQualityEnabled ‎to ‎Number
COMMENT
‎Set the value below to enable the blue sleep background on the chart. 1 = enabled 0 = disabled
NUMBER
‎UserConfig
VARIABLES
‎Set variable ‎BackgroundEnabled ‎to ‎Number
COMMENT
‎Shortcut meta information
DICTIONARY
VARIABLES
‎Set variable ‎Meta ‎to ‎Dictionary
DICTIONARY
VARIABLES
‎Set variable ‎Config ‎to ‎Dictionary
SCRIPTING
‎Get type of ‎Config
VARIABLES
‎Set variable ‎DictionaryType ‎to ‎Type
TEXT
‎Text
SCRIPTING
‎Get type of ‎Text
VARIABLES
‎Set variable ‎TextType ‎to ‎Type
SCRIPTING
‎Get numbers from ‎Config
VARIABLES
‎Set variable ‎PerfLog ‎to ‎Numbers
SCRIPTING
‎If ‎ChartyEnabled ‎is ‎1
NUMBER
‎3
VARIABLES
‎Set variable ‎ChartyEnabled ‎to ‎Number
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
SCRIPTING
‎Get type of ‎Shortcut Input
SCRIPTING
‎If ‎Type ‎is ‎DictionaryType
COMMENT
‎Process input
SCRIPTING
‎Count ‎Characters ‎in ‎Shortcut Input
SCRIPTING
‎If ‎Count ‎is greater than ‎0
SCRIPTING
‎Otherwise
SCRIPTING
‎Get type of ‎Shortcut Input
SCRIPTING
‎If ‎Type ‎is ‎TextType
CALENDAR
‎Get dates from ‎Shortcut Input
VARIABLES
‎Set variable ‎ReportDate ‎to ‎Dates
NUMBER
‎0
VARIABLES
‎Set variable ‎SpringboardEnabled ‎to ‎Number
NUMBER
‎0
VARIABLES
‎Set variable ‎ShowReport ‎to ‎Number
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
SCRIPTING
‎End If
SCRIPTING
‎Count ‎Characters ‎in ‎Shortcut Input
SCRIPTING
‎If ‎Count ‎is greater than ‎0
SCRIPTING
‎Get numbers from ‎Shortcut Input
SCRIPTING
‎If ‎Numbers ‎is less than or equal to ‎0
NUMBER
‎0
SCRIPTING
‎Otherwise
NUMBER
‎1
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎ShowReport ‎to ‎If Result
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
SCRIPTING
‎Count ‎Characters ‎in ‎Shortcut Input
SCRIPTING
‎If ‎Count ‎is greater than ‎0
SCRIPTING
‎Get numbers from ‎Shortcut Input
SCRIPTING
‎If ‎Numbers ‎is less than or equal to ‎0
NUMBER
‎0
SCRIPTING
‎Otherwise
NUMBER
‎1
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎NotificationsEnabled ‎to ‎If Result
SCRIPTING
‎Otherwise

Showcuts

Magic Vars

Screenshot

Submitted Anonymously over a year ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

1149 more actions