Отсканируй на iPhone, чтобы установить
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
Что делает
Действий: 26-
Dictionary
-
CommentThis 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…
-
Comment↓ Time range within which to notify
-
Text
-
Adjust Date
-
Set VariableStartTime
-
Text
-
Adjust Date
-
Set VariableEndTime
-
Comment↓ minute times to notify for every hour within the time range
-
Text
-
Split Text
-
Add to Variable
-
Repeat
-
Repeat with Each
-
List
-
Repeat with Each
-
Text
-
Is Time In Rangecom.sindresorhus.Actions
-
If
-
If
-
Text
-
If
-
Text
-
Make Spoken Audio
-
Show Notificationcom.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
Вам также может понравиться
Реклама