iOS OpenPilot Navigation Shortcuts - commaai/openpilot GitHub Wiki
OpenPilot🔗 Siri Shortcuts🔗
A set of iOS (and macOS) Shortcuts that let you quickly set the OpenPilot navigation🔗 destination from your iPhone, hands-free or not. The Comma Connect API can be used to easily set the navigation destination on your Comma device. Here are Siri Shortcuts that provide the following functions for iPhone, iPad, and Mac users.
- Navigate with OpenPilot: Set OpenPilot navigation destination from a specified location/pin in Apple Maps, Google Maps, or Waze using the share sheet🔗
- OpenPilot Search: Search for and select destinations
- by saying "(Hey) Siri, OpenPilot search" or
- by tapping the shortcut/widget/home screen icon followed by your destination (after the prompt)
- Go to work — Go home
- by saying "(Hey) Siri, OpenPilot go to work" or
- by saying "(Hey) Siri, OpenPilot go home", or
- by tapping the shortcut/widget/home screen icon
- Go to favorite by saying "(Hey) Siri, OpenPilot go to favorite", then selecting a favorite from the list by voice or by tapping
- Go to recent by saying "(Hey) Siri, OpenPilot go to recent", then selecting one of the recent locations in the list
- Go to next event by saying "(Hey) Siri, OpenPilot go to next event", then perhaps selecting one of the recent locations in the list
Installation
- Acquire a JWT authentication🔗 token at jwt.comma.ai🔗, where you'll login using the same method you use at Comma Connect
- Go to Comma Connect🔗 or UserAdmin🔗 to get your Comma device dongle id (16 hex characters)
- Download and install the OpenPilot Siri Shortcuts using the links at RoutineHub.co🔗 (links not listed here to ensure they stay up to date)
- Run shortcuts ii though v immediately to acquire permissions and enable hands-free use
- The shortcuts will check for updates when you use them, and you'll be prompted to update if newer versions are available.
- If Siri will not recognize the word "OpenPilot" when you speak, you can "teach" it the word by adding a new contact called OpenPilot, and by specifying a phonetic name for it
Navigate with OpenPilot
- This is the main shortcut that actually performs the API call🔗. This shortcut works in two ways, via the "Share Sheet"🔗 and by being called by other shortcuts, providing a valid location as input.
- To use with Apple Maps (see images):
- Tap the share button for a selected location/pin in Apple Maps
- Select "Navigate with OpenPilot" from the list of share actions
- If you don't see it in the list, or want it to appear higher for easier access, scroll down and select "edit actions"
- Tap the plus sign next to "Navigate with OpenPilot"
- Arrange the favorite actions to your liking
- That's it! You should see a notification indicating that navigation has been set on your Comma device, and directions will open automatically in Apple Maps
- Google Maps: The process is identical, and directions will open in Google Maps
- Waze: The process is similar
- Select a location, tap "Send", then "more options" to open the share sheet, then select "Navigate with OpenPilot"
- Finish starting directions in Waze
- This shortcut takes text (for Waze), URLs (for Google Maps), and MapLinks (for Apple Maps) as input from the share sheet.
- You can also run it from other shortcuts, such as in the other shortcuts provided here. This makes it very easy to extend the functionality.
- If you do anything cool, be sure to let me know so it can be added here!
OpenPilot search
- Voice search for locations, places or addresses, and choose from a visual + voice menu of results. Pick one and OpenPilot + iPhone navigation will start
- Four ways to use:
- Say "(Hey) Siri, OpenPilot search" , or
- (becuase "OpenPilot search" is the name of the Shortcut, and every shortcut is callable by name automatically)
- Save the shortcut to a home/lock screen widget🔗, or
- Save the shortcut as a home screen icon🔗, or
- Tap the Shortcut in the Shortcuts app.
- Say "(Hey) Siri, OpenPilot search" , or
- Wait for the prompt "what text?"
- ("what text?" was not my idea; you can't change the prompt; smh)
- Say the (mostly) complete address or location name without any long pauses
- You'll be presented with a list of results, and Siri will begin to read them. You can respond verbally or tap one of the results (even with CarPlay 🚗). Select one of the results or tap/say cancel to cancel.
- The default map app you specified during setup will open with directions to the destination, and you'll see a notification that navigation was set on your Comma device.
Go home
- This simple shortcut lets you save one address
- When run, it passes this location to the Navigate with OpenPilot Shortcut
- Does not need to match the "home" address saved on Comma Connect
Go to work
- Same Shortcut (as "Go home"), Different Destination
- You see how these could be replicated to add more
- Does not need to match the "work" address saved on Comma Connect
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
Go to recent
- Similar to Go to favorites, but you'll choose from a list of recent locations
- This shortcut just calls Navigate with OpenPilot without providing a location, causing it to run in recent location mode
- Inspired by BitNotFound#5466 on Discord
Go to next event
- This shortcut fetches your next calendar event that has a location specified, and sets OpenPilot and phone navigation to its location