sindresorhus / Actions

⚙️ Supercharge your shortcuts
https://sindresorhus.com/actions
MIT License
2.58k stars 109 forks source link

Action proposal: wait x mutes and run other shortcut #139

Closed alexey-zaharchenko closed 1 year ago

alexey-zaharchenko commented 1 year ago

Description

Run other shortcut after waiting x minutes/hours

jsiegenthaler commented 1 year ago

Isn't this standard functionality? A built-in Action exists to Wait, and a built-in Action exists to run another shortcut.

alexey-zaharchenko commented 1 year ago

Thank you for such a fast response 😎.

I believe you're referring to actions like this: image. Afaik they have limitations on the wait duration, typically 1-2 minutes at most.

What I'm discussing is a longer use case, such as scheduling a shortcut to run in 10 minutes or 1 hour.

For instance, I want to turn on the air conditioner, wait for 15 minutes, and then turn it off.

Currently, this can be achieved by emulating cron as demonstrated here: https://www.joshholtz.com/blog/2021/06/23/automating-ios-shortcuts-the-cron-job-way.html. This method involves using a alot of personal automations set to "Time of Day". Another option is Pushcut, but it requires a dedicated iOS device to run its app in the foreground.

sindresorhus commented 1 year ago

This is unfortunately not possible because third-party shortcut actions are limited to ~30 seconds of execution.

I have submitted feedback to Apple about this, but nothing has happened: https://github.com/feedback-assistant/reports/issues/364