ShareShortcuts

OpenPilot go to favorite

twilsonco
Fork “OpenPilot go to favorite”

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å twilsonco 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
26K
Gemt
0
Handlinger
45
Kategori
Rejser og kort
Version
1.0
Sprog
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

Nyheder

Version 1.0

First release

Versionshistorik
1.0 9. feb. 2024

First release

Hvad den gør

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

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/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)
Å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 twilsonco

Se alle

Du vil måske også kunne lide

Se alle
Annonce