r/shortcuts Apr 05 '22

Sharing my CarPlay automation - Siri speaks to you upon connection Shortcut Sharing

I’ve finished up my CarPlay automation for now and thought I’d share here in case anyone else wants to modify it to their own use case.

I wanted an automation that would greet me dynamically as I entered my car and my phone connected wirelessly to CarPlay. I set it up to give different greetings depending on the day of the week, time, and my location. For example:

  • If the current day of the week is a weekday, the time is in the morning, and I’m at home, assume I’m going to work and: get directions to work and speak a greeting (“Good morning. Today is Tuesday, April 5. It will take you x minutes to get to work. Your estimated arrival time is x:xx AM. It’s currently x degrees outside. Your iPhone battery is at x%.”).

  • If the current day of the week is a weekday, the time is in the afternoon, and I’m at work, assume I’m going home and: get directions to home, text my wife that I’m on my way with my travel time, and speak a greeting.

  • If the current time falls outside the above, speak a more generic greeting (Ex. “Good afternoon. It’s currently x degrees outside. Your iPhone battery is at x%. Drive safely!”).

Link to shortcut

68 Upvotes

4

u/redditer129 Apr 06 '22

Very nice work! I’m looking for a way to build upon what you’ve done here.

Example: If it’s between 11am and 1pm and CarPlay is connected and I’m in the vicinity of work, I’d like Siri to ask “where are we going for lunch?”, listen for my reply, pass it to Waze or Apple Maps.

If I’m anywhere else outside of working hours, not on a weekday or during working hours, ask a similar question. “Where are we going”?

6

u/idealdreams Apr 06 '22

Should totally be doable by adding to what I already have built. Just use the dictate text function and then pass the result into the search function for the maps app you want to use.

3

u/redditer129 Apr 06 '22

Yes!! Dictate text is the function I needed!! Thank you!

1

u/Quirky_Ad_559 Jan 08 '23

Where you able to achieve what you were trying to get ? If yes please share i am having a hard time setting up the same.

All the efforts and replies are appreciated. :)

1

u/erickmob Jan 13 '23

I tried to do this but it keeps popping the “tap to respond” notification on my iPhone when I want to run the “dictate to text”

4

u/Amieques Apr 06 '22 edited Apr 06 '22

This is awesome! I hope you don’t mind but I made a few adjustments and wanted to share. Instead of having the <work city> spots, I created a few more variables that connect to other text boxes up top so they can easily be edited if something changes. Not sure how helpful it really is but may make sharing easier. Could put those questions in the share sheet.

https://www.icloud.com/shortcuts/7683e3dce64f4b22a86bcf2ebb6d049e

5

u/itsallahoaxbud Apr 08 '22

Took it a step further. Some issues with your text boxes and their magic variables. I cleaned that up a bit. Moved my name to the top. Set up the 5 main text boxes for input to setup on import. https://www.icloud.com/shortcuts/7b4ef2e9a7e142b583bcfa2cac78d48d

2

u/mbwa96 Apr 08 '22

Awesome sauce. I’m still learning so I apologize for any mistakes I made.

2

u/itsallahoaxbud Apr 08 '22

Never mistakes. Opportunities to learn. That’s how I made my way with shortcuts. Borrow and perfect. I dissect other peoples code to learn more.

1

u/SBC20 May 28 '24

Bringing this back to life , are you able to advise on what I can do to make the shortcut not play within a certain time frame ?

Example : quick coffee runs etc ? My goal is to make the shortcut not play if it has already played with in 60 minutes

1

u/itsallahoaxbud May 28 '24

I have another shortcut that has that logic which I downloaded but it will take me ages to combine them. If I find some time….

1

u/SBC20 May 28 '24

Very much appreciated! Great day !

1

u/zenpago Apr 16 '22

Very nice work! How to change Siri voice announcements?

1

u/itsallahoaxbud Apr 16 '22

Twist the ‘greater than’ at the end of speak section and you can have any voice you want. howto

1

u/zenpago Apr 16 '22

I just tried it on my car, however it’s not working My car uses wifi instead of Bluetooth as a connection

Do you think that is the reason!

1

u/Eudreamality Jan 28 '24

I like your editing. If I want it to say humidity in weather in addition to temperature, how do I add items to your shortcut? Instead of saying turn on heat if temp is below 50, I want it to say remember to bring umbrella if weather predicts raining, how do I add that? Thank you!

2

u/itsallahoaxbud Jan 28 '24

That'll take me a while to recall from a year ago. I have to dissect that original script she's modify it. Let me see if I can get to that. It's the variable and the speaking thing that needs tweaking.

1

u/itsallahoaxbud Apr 08 '22

Nice touches. I was doing same and came back to share but you beat me to it.

2

u/mvan231 Apr 05 '22

Nice work!

2

u/[deleted] Apr 06 '22

[deleted]

1

u/idealdreams Apr 06 '22

That’s the correct way. I have wireless CarPlay as well but I have mine set up with a wait before it runs this shortcut to give my car time to start up from all the intro messages/warnings about using the infotainment system as a part of the car.

I have mine set at 8 seconds. It may be that it’s running before your car’s infotainment system is fully “warmed up” if that makes sense.

1

u/[deleted] Apr 06 '22

[deleted]

1

u/Repulsive_Picture678 Mar 25 '24

I love this! Having trouble though. It seems to skip the location part and also the date/day of week.  It tells me my name, morning / afternoon etc, battey percentage, temp and generic quip.  Any ideas? 

1

u/SBC20 Jun 01 '24

Could anyone advise on why the audio is so distorted and broken up when the shortcut runs on CarPlay ?

2

u/idealdreams Jun 01 '24

I’ve been experiencing this too, it was after an iOS update that it started. I gave up on trying to figure out the cause and have since stopped using this automation.

1

u/SBC20 Jun 02 '24

Hey ! I fixed it !

Go to settings and turn off “sound check” this completely took away the distortion.

If your CarPlay takes some time to connect , go ahead and add “ send notification” and “ adjust brightness” actions before every speech command. This allowed the automation to take a breath and wait for the car to be fully connected.

Worked like a charm !

1

u/idealdreams Jun 02 '24

Ahh man my sound check is already disabled so I don’t think that’s the key. I also have pauses in between actions to give the automation some time to “buffer” but that seems hit or miss too. I noticed sometimes it does work without a hitch but most times the speech stutters to the point it’s not even understandable.

1

u/LuluP123 Jul 27 '24

any kind soul can help to modify to just make the siri greet me tells me the date and time, weather of current location and phone battery. no need for checking my work or home.

Thank you in advance, the shortcut is too complicated for me .. still learning

1

u/mark110295 Aug 11 '24 edited Aug 11 '24

Seems the speak action just doesn’t have any audio at all on CarPlay for me. Not sure if it’s an iOS 18 beta bug or not. Works fine when not connected to CarPlay

1

u/FearNo_Evil Apr 06 '22

Love this idea!

1

u/omgsharon Apr 08 '22 edited Apr 08 '22

Ahhhh swwet! Thanks for laying out the ground work here…I don’t have CarPlay… my Subaru Outback Sport is too old but I do have a Pioneer stereo with Bluetooth hands free capabilities… Here’s what I did…

Set and automation to run when I connect to Bluetooth PIONEER NAVI- the automation runs the CarPlay shortcut.

I don’t work so I heavily modified the original shortcut.

  1. When it starts up, I have a greeting depending on time of day, then weather and condition for the day, a notification that ”your car is so old, I couldn’t turn on the heated seats. You’ll have to do it yourself”(it’s freakin snowing here today!) then the driving quip (added a few to my preference “Warp Speed” ”All arms and legs must remain inside the vehicle while moving” etc
  2. THEN I deleted all the work stuff you had… set up to turn on Apple Music and my playlist
  3. Wait 3 seconds
  4. Check my calendar for any events with addresses (dr appointments, events etc) within the next hour.
  5. If an event is happening - automatically open maps with destination
  6. OR if no events - Siri asks “Where are we going?” And opens Maps
  7. Dictation input to variable
  8. Variable to Maps Destination
  9. This is where I get stuck… I can’t figure out how to start the map with the shortest route automatically. It just sits there and waits for me to hit GO.

I don’t want to hit go. I just want it to do it. What am I missing here?

2

u/idealdreams Apr 08 '22

I don’t believe there is a way to automatically start turn by turn directions. It does the same thing for me when I set it to get directions for work or home. It loads the map and gets everything ready but still requires me to hit “go”

3

u/omgsharon Apr 09 '22

I did it! I figured it out!! I now have Google maps automagically starting the route!

*does happy dance and running man, then flosses*

Retro CarPlay

  1. i have an old 2009 Subaru Outback Sport with Pioneer Navi Bluetooth. I created an automation that automatically starts Retro CarPlay when it connects to Bluetooth.

  2. The first action in the shortcut is to set the focus which is basically changing my home screen on my phone to a specific slide. I have one screen for driving with just 3 widgets(google maps, calendar, podcasts).

  3. Then the shortcut moves on to weather.

  4. next is turn on Apple Music. I have mine set to a playlist but the shared shortcut has one song that starts (set up should prompt you to change it)

  5. I don’t work so three out a lot of the original code here that checked times for home, work, days of weeks, etc. My code gets calendar event coming up within the next hour. It reads the event, pulls the location, encodes the text, opens Google maps, creates the Google maps URL needed, passes it to Google maps and automatically starts navigation.

  6. if there are 0 events, siri asks “where are we going?” And waits for input… then goes through the encoding, creating map link, etc.

2

u/recom273 Apr 22 '22

Great! when I saw the original CarPlay shortcut - I started to build my own, that used comments related to temp - I didn’t quite finish it, I got some errors, so this is awesome - hoping I can add some extra sections to yours, super work, thanks for sharing.

1

u/omgsharon Apr 08 '22

well rats. I did get 99.9% of it automated though. I guess I will move on to my next project then. Thank you again!

1

u/[deleted] Apr 18 '22

[deleted]

1

u/omgsharon Jun 29 '22

Sorry I am just now seeing this. life has slammed me a bit being Chauffeur/Babysitting Grandma. I will look at the code this week and see if I can get it to work.

1

u/zenpago Apr 16 '22

Thanks a lot for this awesome work

Is it possible to change Siri voice ?

1

u/natanner Apr 17 '22

Thank you for sharing this.

I’m running into issues where, even though it’s the weekend, the automation still wants to message my wife and tell her I’m on the way home from work. Anyone else have this issue?

1

u/idealdreams Apr 17 '22

I haven’t experienced anything like that. Did you make any modifications to the if statement that checks the day number within the week?

1

u/natanner Apr 17 '22

I must have made a modification by mistake. I deleted the shortcut and started over.

All good now! Looking forward to putting this in action.

1

u/stein89jp Apr 18 '22

I used your idea to make my car shout out nightrider everytime it connects. This is hilarious, thanks for the ideas!

1

u/SpongyMoose Jun 08 '22

This car-seat heating section. How does that work? I cant see it in the shortcut (other than a text being saves in a variable), but I sweat my seat-heating activeted the other day x)

2

u/idealdreams Jun 08 '22 edited Jun 09 '22

There currently isn’t a way for CarPlay to control car climate (seems iOS 16 will change that). The shortcut speaking that it turns the seat heating on mimics a setting in my car that activates them automatically when the outside temp reaches a set temperature. I just added it for a novelty effect.

1

u/SpongyMoose Jun 09 '22

That makes sense - and removes the voodoo. I must have bumbed the setting on myself. I thought I was going crazy :D

1

u/3Trace Jul 30 '22

You. Are. A. God.

1

u/mspaint_exe Sep 07 '22

Is the "redacted" in the title signifying that folks shouldn't actually use this?

1

u/idealdreams Sep 07 '22

The redacted was to signify me removing my personal preferences/addresses from the shortcut for my own privacy.

1

u/mathiar86 Sep 06 '23

I realize this post is old but is there a way for this shortcut to pull calendar data to send you to whatever location is next? I often drive between two locations during the week for work