ShareShortcuts

OpenPilot go to favorite

twilsonco
Bifurcar “OpenPilot go to favorite”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que twilsonco reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
26K
Guardado
0
Acciones
45
Categoría
Travel and Maps
Versión
1.0
Idioma
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

Novedades

Versión 1.0

First release

Historial de versiones
1.0 9 de feb. de 2024

First release

Qué hace

45 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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 = getValue(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 = getRandomItem(LocalBusinesses)
	location(FirstResult)
} else {
	location(Addresses)
}
run("Navigate with OpenPilot", IfResult)
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de twilsonco

Ver todo

También te puede gustar

Ver todo
Publicidad