ShareShortcuts

TimeTeller

Speaks the time of day at regular intervals within a time range

te55eract
Создать форк «TimeTeller»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы te55eract получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
13K
Сохранено
0
Действия
26
Категория
Utilities
Версия
2.0
Язык
EN

Speaks the time of day at regular intervals within a time range.

Useful in an Automation that runs the shortcut daily.

To configure: set time range and minute values before running this shortcut.


Requires "Actions" app

Что нового

Версия 2.0

Removed saving of audio files to the files app

История версий
2.0 5 авг 2025 г.

Removed saving of audio files to the files app

1.0 25 июл 2025 г.

First release

Что делает

Действий: 26
  1. Dictionary
  2. Comment
    This shortcut speaks the time of day at regular intervals within a time range. Useful in an Automation that runs the shortcut daily before `StartTime`. To change the voice scroll down to the `Make spoken audio from` action Note: You can schedule a m…
  3. Comment
    ↓ Time range within which to notify
  4. Text
  5. Adjust Date
  6. Set Variable
    StartTime
  7. Text
  8. Adjust Date
  9. Set Variable
    EndTime
  10. Comment
    ↓ minute times to notify for every hour within the time range
  11. Text
  12. Split Text
  13. Add to Variable
  14. Repeat
  15. Repeat with Each
  16. List
  17. Repeat with Each
  18. Text
  19. Is Time In Range
    com.sindresorhus.Actions
  20. If
  21. If
  22. Text
  23. If
  24. Text
  25. Make Spoken Audio
  26. Show Notification
    com.sindresorhus.Actions

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/calendar'
#define color blue
#define glyph alarmClock

/*
This shortcut speaks the time of day at regular intervals within a time range. 

Useful in an Automation that runs the shortcut daily before `StartTime`. 

To change the voice scroll down to the `Make spoken audio from` action

Note:
You can schedule a maximum of 64 notifications per 24 hour period for the Actions app. So keep track of the math if you think you might exceed that limit with your custom times.
*/
// ↓ Time range within which to notify

adjustDate(, "Subtract")
@StartTime = ['Time']
adjustDate(, "Add")
@EndTime = ['Time']
// ↓ minute times to notify for every hour within the time range

const Text = "00\n30"
splitText(Text)
@MinuteValues

repeat _ for 12 {
	for _ in @MinuteValues {
		const List = list("am", "pm")
		for _ in List {
			rawAction("com.sindresorhus.Actions.IsTimeInRangeIntent", {
				"AppIntentDescriptor": "",
				"endTime": "{@EndTime}",
				"startTime": "{@StartTime}",
				"targetTime": "{}"
			})
			if IsTimeInRange ==  {
				if @RepeatItem2 == "00" {
				} else {
				}
				const SpokenAudio = makeSpokenAudio()
				rawAction("com.sindresorhus.Actions.ShowNotificationIntent", {
					"AppIntentDescriptor": "",
					"actions": [],
					"customSound": "SpokenAudio",
					"isTimeSensitive": false,
					"sound": "custom",
					"time": " {}",
					"timing": "atTime",
					"title": "The time is {}"
				})
			}
		}
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от te55eract

См. все

Вам также может понравиться

См. все
Реклама