ShareShortcuts

TimeTeller

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

te55eract
Dupliquer « TimeTeller »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que te55eract soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
13K
Enregistré
0
Actions
26
Catégorie
Utilities
Version
2.0
Langue
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

Nouveautés

Version 2.0

Removed saving of audio files to the files app

Historique des versions
2.0 5 août 2025

Removed saving of audio files to the files app

1.0 25 juil. 2025

First release

Ce qu’il fait

26 actions
  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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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 {}"
				})
			}
		}
	}
}
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 te55eract

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité