Login About Gallery
Log Weight to Health Via Voice
COMMENT
By /u/dmetzcher v.1.0 This shortcut asks for your weight and logs it to the Health database. This is all done via voice. Some error checking is included, and the weight will be confirmed before writing it to the database.
COMMENT
Modify all Dictate Text steps to use your own language. You may also change the Speak Text steps to the Siri language/accent you prefer when Siri speaks to you.
COMMENT
We use the Continue Shortcut in App step to stop Siri from saying the first Speak Text step in the default voice and all subsequent Speak Text steps in the voice used in those steps. This forces Siri to go straight to the Shortcuts app and run everything from there.
SCRIPTING
Continue in Shortcuts app
TEXT
How much do you weigh?
DOCUMENTS
Speak
Text
Wait Until Finished
Rate
Pitch
Language
English (United Kingdom)
Voice
DOCUMENTS
Dictate Text
Language
en-US
Stop Listening
After Pause
VARIABLES
Set variable
weight
to
Input
TEXT
And fat?
DOCUMENTS
Speak
Text
Wait Until Finished
Rate
Pitch
Language
English (United States)
Voice
DOCUMENTS
Dictate Text
Language
en-US
Stop Listening
After Pause
VARIABLES
Set variable
fat
to
Input
COMMENT
If nothing is said or if anything other than a number is spoken, the number received will be zero. These steps deal with that scenario.
NUMBER
weight
SCRIPTING
If
Input
Condition
TEXT
I did not understand what you said. You must speak the number—and only the number. Whole numbers and decimals are fine. Would you like to try again?
DOCUMENTS
Speak
Text
Wait Until Finished
Rate
Pitch
Language
English (United Kingdom)
Voice
DOCUMENTS
Dictate Text
Language
English
Stop Listening
After Pause
SCRIPTING
If
Input
Condition
SHORTCUTS
Run
Log Weight to Health Via Voice
Input
Choose Variable
Show While Running
SCRIPTING
Exit shortcut with
Result
Otherwise
SCRIPTING
Exit shortcut with
Result
End If
Otherwise
End If
TEXT
fat
kilograms and
weight
percent fat. Is that correct?
DOCUMENTS
Speak
Text
Wait Until Finished
Rate
Pitch
Language
English (United Kingdom)
Voice
DOCUMENTS
Dictate Text
Language
English
Stop Listening
After Pause
SCRIPTING
If
Input
Condition
HEALTH
Log Health Sample
Type
Weight
Options Under Construction
HEALTH
Log Health Sample
Type
Body Fat Percentage
Options Under Construction
TEXT
Done. Your weight has been logged as
weight
kilograms and your fat as
fat
%. I have opened the health app to show you.
DOCUMENTS
Speak
Text
Wait Until Finished
Rate
Pitch
Language
English (United Kingdom)
Voice
MISSING
Open _ActivityBreadcrumbKey_TabBarSetTabActivityKey#kActivityTransitionToDisplayTypeKey_DisplayActionActivityKey
Otherwise
TEXT
Would you like to try again?
DOCUMENTS
Speak
Text
Wait Until Finished
Rate
Pitch
Language
English (United Kingdom)
Voice
DOCUMENTS
Dictate Text
Language
English
Stop Listening
After Pause
SCRIPTING
If
Input
Condition
SHORTCUTS
Run
Log Weight to Health Via Voice
Input
Choose Variable
Show While Running
Otherwise
SCRIPTING
Exit shortcut with
Result
End If
End If
SCRIPTING
Exit shortcut with
Result

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 18 days ago

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

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0