Aperçu
Plays a selected playlist for a selected period of time, either locally, or to a remote speaker and then shuts down. Perfect to play quiet music while you fall asleep. Note: the timer app must be set to 'stop playing' when the timer ends. This is not programmable in shortcuts.
Adjust the code for your playlist and speaker name.
Nouveautés
Version 1.0
First release
Ce qu’il fait
15 actions-
Show NotificationTimer app must be set to "Stop Playing" when timer ends.
-
Setplaybackdestination
-
Choose from MenuPlay Duration (mins)?
-
Choose from Menu15
-
Start Timer
-
Choose from Menu30
-
Start Timer
-
Choose from Menu45
-
Start Timer
-
Choose from Menu60
-
Start Timer
-
Choose from MenuContinuous
-
Set Volume
-
Play Music
-
Open App
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#define color darkorange
#define glyph clock
showNotification("Timer app must be set to \"Stop Playing\" when timer ends. ", "Important", false)
rawAction("is.workflow.actions.setplaybackdestination", {
"WFMediaRoute": ""
})
const MenuResult = menu " Play Duration (mins)?" {
item "15":
startTimer()
item "30":
startTimer()
item "45":
startTimer()
item "60":
startTimer()
item "Continuous":
}
setVolume(0.18214285)
playMusic(, "Songs", "All")
openApp("com.apple.Music")
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de gramps
Ça pourrait aussi te plaire
Publicité