Отсканируй на iPhone, чтобы установить
This shortcut will help you wash your hands for as long as you should. The amount of time that you wash your hands is in accordance to the CDC Guidelines. To enable by Siri simply say “Hey Siri, wash my hands.” You can also enable it directly by the Shortcuts app.
Что нового
Версия 2.1
-Updated voice from robot-like voice to new Siri voice. - Changed waiting time to be in appliance with the new CDC guidelines.
Что делает
Действий: 35-
Choose from MenuIs an Apple Watch currently on?
-
Choose from MenuYes
-
N P R F Set Water Lockcom.apple.NanoSettings
-
Set Volume
-
Speak Text
-
Wait
-
Speak Text
-
Wait
-
Speak Text
-
Get Current Song
-
Play Music
-
Wait
-
Speak Text
-
Wait
-
Speak Text
-
Wait
-
Play/Pause
-
Speak Text
-
Choose from MenuNo
-
Set Volume
-
Speak Text
-
Wait
-
Speak Text
-
Wait
-
Speak Text
-
Get Current Song
-
Play Music
-
Wait
-
Speak Text
-
Wait
-
Speak Text
-
Wait
-
Play/Pause
-
Speak Text
-
Stop This Shortcut
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#define color blue
#define glyph personAlter
menu "Is an Apple Watch currently on?" {
item "Yes":
rawAction("com.apple.NanoSettings.NPRFSetWaterLockIntent", {
"ShowWhenRun": false
})
setVolume(0.75)
speak("Please prepare to wash your hands, then turn on the faucet.", "en-US")
wait(3)
speak("Please get your hands wet.", "en-US")
wait(3)
speak("Please apply soap and lather.", "en-US")
const CurrentSong = getCurrentSong()
playMusic(CurrentSong, "Songs", "None")
wait(20)
speak("Please rinse your hands.", "en-US")
wait(4)
speak("Please turn off the faucet and dry your hands.", "en-US")
wait(20)
pause()
speak("You're done washing your hands.", "en-US")
item "No":
setVolume(0.7533557)
speak("Please prepare to wash your hands, then turn on the faucet.", "en-US")
wait(3)
speak("Please get your hands wet.", "en-US")
wait(3)
speak("Please apply soap and lather.", "en-US")
const CurrentSong1 = getCurrentSong()
playMusic(CurrentSong1, "Songs")
wait(20)
speak("Please rinse your hands.", "en-US")
wait(4)
speak("Please turn off the faucet and dry your hands.", "en-US")
wait(20)
togglePlayPause()
speak("You are done washing your hands.", "en-US")
}
stop()
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от thatistay1244
Вам также может понравиться
Реклама