ShareShortcuts
Fork “SleepTimer ATV”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so alxblog gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
44K
Saved
1
Actions
11
Category
Utilities
Version
1.1
Language
DE
With this shortcut it is possible to put the Apple TV into sleep mode with an assigned time in minutes.

What's New

Version 1.1

Update Link

Version History
1.1 Jan 23, 2022

Update Link

1.0 Jan 23, 2022

First release

What it does

11 actions
  1. Ask for Input
    Ok, wie lange soll der Timer laufen?
  2. Set Variable
    SleepTimer
  3. Date
  4. Adjust Date
  5. Set Focus
  6. Text
  7. Copy to Clipboard
  8. Get Clipboard
  9. If
  10. Sleep Apple T V
    com.apple.TVRemoteUIService
  11. Comment
    Version 1.1 alxblog.de @alxblog

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/sharing'
#include 'actions/calendar'
#define color darkgray
#define glyph circledPower

prompt("Ok, wie lange soll der Timer laufen?", "Number")
@SleepTimer
currentDate()
const Sleeptimer = adjustDate(, "")
setFocusMode(, "Time", Sleeptimer)
const Text = "+ Sleeptimer Aktiv"
setClipboard(Text)
const Zwischenablage = getClipboard()

if Zwischenablage == "Sleeptimer Aktiv" {
	rawAction("com.apple.TVRemoteUIService.SleepAppleTVIntent", {})
}
/*
Version 1.1
alxblog.de
@alxblog
*/
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement