ShareShortcuts

OpenPilot go to favorite

twilsonco
„OpenPilot go to favorite“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit twilsonco die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
26K
Gesichert
0
Aktionen
45
Kategorie
Travel and Maps
Version
1.0
Sprache
EN

Go to favorite

  • Similar to home/work, but this one lets you specify multiple place names and locations
  • When run, you can select one of the favorites from the list, verbally or by tapping (even in CarPlay 🚗)
  • There is no set format to use for the specified locations
  • The specified locations are used to search, and the top result is used. They need to be complete enough that the desired place will be the top result
  • Uses "Navigate with OpenPilot" shortcut

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 9. Feb 2024

First release

Was er macht

45 Aktionen
  1. Comment
    OpenPilot go to favorite By Tim Wilson, November 2023 https://github.com/twilsonco/OpenPilotSiriShortcuts Similar to home/work, but this one lets you specify multiple place names and locations When run, you can select one of the favorites from the l…
  2. Dictionary
  3. Comment
    Check for shortcut updates
  4. Nothing
  5. Comment
    【Auto-Update Routine】 Checks For Latest Shortcut Version ↳ https://routinehub.co/shortcut/16590/
  6. Dictionary
  7. Get Dictionary Value
  8. If
  9. Get IP Address
  10. If
  11. Get Contents of URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  12. If
  13. Split Text
  14. Repeat with Each
  15. Calculate Expression
  16. Set Variable
    Latest Version
  17. Split Text
  18. Repeat with Each
  19. Calculate Expression
  20. Set Variable
    Current Version
  21. If
  22. Choose from Menu
    New Version: … Release: … Whats New: "…"
  23. Choose from Menu
    Update → Result (Version)
  24. Expand URL
  25. Replace Text
  26. Open URLs
  27. Stop This Shortcut
  28. Choose from Menu
    Skip (Info (Version))
  29. Comment
    【Auto-Update Routine Ends Here】 Support → https://www.reddit.com/r/shortcuts/comments/18j4f9p/ 【⚙️】 Convert Semantic Number to Decimals ↳ https://routinehub.co/shortcut/16589/
  30. Nothing
  31. Get Dictionary Value
  32. Count
  33. If
  34. Get Item from List
  35. If
  36. Choose from List
  37. Get Dictionary Value
  38. Get Addresses from Input
  39. If
  40. Search Local Businesses
  41. Get Item from List
  42. Location
  43. If
  44. Location
  45. Run Shortcut
    Navigate with OpenPilot

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/web'
#include 'actions/network'
#define color darkblue
#define glyph locationPin

/*
OpenPilot go to favorite
By Tim Wilson, November 2023
https://github.com/twilsonco/OpenPilotSiriShortcuts

Similar to home/work, but this one lets you specify multiple place names and locations
When run, you can select one of the favorites from the list, verbally or by tapping (even in CarPlay 🚗)
There is no set format to use for the specified locations
The specified locations are used to search, and the top result is used. They need to be complete enough that the desired place will be the top result
*/
const PlacesDictionary = {}
// Check for shortcut updates

nothing()
/*
【Auto-Update Routine】
Checks For Latest Shortcut Version
↳ https://routinehub.co/shortcut/16590/
*/
const Info = {
	"Author": "twilsonco",
	"RoutineHub ID": 17682,
	"Version": "1.0.1",
	"Version Check": true
}
const True = getValue(Info, "Version Check")

if True == "Yes" {
	const CurrentIPAddress = getExternalIP("IPv4")
	if CurrentIPAddress {
		const Result = downloadURL("https://routinehub.co/api/v1/shortcuts/{Info['RoutineHub ID']}/versions/latest")
		if Result contains "success" {
			const SplitText = splitText(Result['Version'], ".")
			for _ in SplitText {
				@LatestVersion = ((1/1000)^@RepeatIndex)*@RepeatItem+@LatestVersion
			}
			const SplitText1 = splitText(Info['Version'], ".")
			for _ in SplitText1 {
				@CurrentVersion = ((1/1000)^@RepeatIndex)*@RepeatItem+@CurrentVersion
			}
			if @LatestVersion > @CurrentVersion {
				menu "New Version: {Result['Version']}\nRelease: {Result['Release']}\nWhats New: \"{Result['Notes']}\"" {
				item "Update → {Result['Version']}":
					expandURL(Result['URL'])
					const UpdatedText = replaceText("https://www.icloud.com/", "shortcuts://", false)
					openURL(UpdatedText)
					stop()
				item "Skip ({Info['Version']})":
				}
			}
		}
	}
}
/*
【Auto-Update Routine Ends Here】
Support → https://www.reddit.com/r/shortcuts/comments/18j4f9p/

【⚙️】
Convert Semantic Number to Decimals
↳ https://routinehub.co/shortcut/16589/
*/
nothing()
const PlaceNames = getKeys(PlacesDictionary)
const Count = count(PlaceNames)

if Count == 1 {
	getRandomItem(PlaceNames)
} else {
	chooseFromList(PlaceNames)
}
const ChosenPlace = getValue(PlacesDictionary)
const Addresses = getAddresses(ChosenPlace)

if !Addresses {
	rawAction("is.workflow.actions.searchlocalbusinesses", {
		"WFSearchQuery": "{ChosenPlace}"
	})
	const FirstResult = getFirstItem(LocalBusinesses)
	location(FirstResult)
} else {
	location(Addresses)
}
run("Navigate with OpenPilot", IfResult)
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von twilsonco

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung