ShareShortcuts
Fork “ArriveHome”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så weplaydr får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
12K
Gemt
0
Handlinger
15
Kategori
Rutiner
Version
1.0
Sprog
EN

Upon arriving home, Automatically cause the phone to announce itself after 3minutes in case it is forgotten in a jacket pocket or snow suit.

Nyheder

Version 1.0

First release

Versionshistorik
1.0 12. aug. 2025

First release

Hvad den gør

15 handlinger
  1. Comment
    Note: This Automation Shortcut is run whenever my phone connects to a bluetooth hotspot in my house. Alternatively, it can be automated to run everytime your iPhone connects to your home WiFi. But, be aware it might trigger/run multiple times when y…
  2. Comment
    During the winter, my phone is located in my snowsuit or jacket pocket rather than my oants pocket. Due to the possibity of misplacing my phone, I set a three minute timer! So my phone will announce itself !
  3. Comment
    This Shortcut initially deletes any pending alarm named HomeModeFindPhone then creates a new alarm labeled HomeModeFindPhone
  4. Number
  5. Repeat
  6. Comment
    Delete HomeModeFindPhone alarm twice, but create only if RepeatIndex=1
  7. Get Alarms
    com.apple.mobiletimer-framework.MobileTimerIntents
  8. If
  9. Delete Alarm
    com.apple.mobiletimer
  10. If
  11. Adjust Date
  12. M T Create Alarm
    com.apple.mobiletimer-framework.MobileTimerIntents
  13. Show Alert
  14. Comment
    Shortcut execution reaches this comment only if a person presses Continue button, from above Action.
  15. Stop This Shortcut

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#include 'actions/calendar'
#define color green

/*
Note: This Automation Shortcut is run whenever my phone connects to a bluetooth hotspot in my house. 
Alternatively, it can be automated to run everytime your iPhone connects to your home WiFi. But, be aware it might trigger/run multiple times when you don’t expect it. 

This Shortcut can be refined to run only if a lockfile does not exist. Then a separate script must delete the lockfile whenever home WiFi goes out of range: complexities!

Nevertheless, I am able to find my phone whenever I forget to remove it from my snowsuit pocket! 🙂 
*/
// During the winter, my phone is located in my snowsuit or jacket pocket rather than my oants pocket. Due to the possibity of misplacing my phone, I set a three minute timer!  So my phone will announce itself !

// This Shortcut initially deletes any pending alarm named HomeModeFindPhone then creates a new alarm labeled HomeModeFindPhone

const minsDelay = 3

repeat _ for 2 {
	// Delete HomeModeFindPhone alarm twice, but create only if RepeatIndex=1

	const Alarms = getAlarms()
	if Alarms['label'] {
		rawAction("com.apple.mobiletimer.DeleteAlarmIntent", {
			"AppIntentDescriptor": "",
			"entities": "Alarms"
		})
	}
	if @RepeatIndex == 1 {
		adjustDate(CurrentDate, "")
		createAlarm("HomeModeFindPhone")
		confirm("Have you found this phone?")
		// Shortcut execution reaches this comment only if a person presses Continue button, from above Action. 

	}
}
stop()
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra weplaydr

Se alle

Du vil måske også kunne lide

Se alle
Annonce