1. Welcome to Tundras.com!

    You are currently viewing as a guest! To get full-access, you need to register for a FREE account.

    As a registered member, you’ll be able to:
    • Participate in all Tundra discussion topics
    • Transfer over your build thread from a different forum to this one
    • Communicate privately with other Tundra owners from around the world
    • Post your own photos in our Members Gallery
    • Access all special features of the site

CarPlay startup … a little geeky but kind of fun

Discussion in 'Audio & Video' started by jeffw6236, Jan 9, 2022.

  1. Jan 9, 2022 at 1:44 PM
    #1
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    Anyone ever mess around with shortcuts in iOS?

    I created an automation using shortcuts. When CarPlay connects I get an audible greeting, thru CarPlay, that tells me about the weather, tells me my battery status and asks me if I need a mask or gas.

    this one is sortof long - I don’t want to hear all that every time I start my truck, so I changed it to 3 parts. When CarPlay connects it checks to see if I’ve connected to CarPlay at all during the day. It’s looking for my first drive. If it is the first drive it runs the shortcut I’m showing below. If I’ve already connected earlier in the day it runs a much shorter version of this one.

    It’s a little nerdy, but it’s kind of cool.

    F5A977C5-F09E-4500-AA3C-5A8858F59903.jpg


    Continued…..

    25A38C83-B7CF-41CF-A4C4-361896AFDBF8.jpg
     
  2. Jan 9, 2022 at 1:54 PM
    #2
    BoysandHisToys

    BoysandHisToys New Member

    Joined:
    May 20, 2021
    Member:
    #63305
    Messages:
    214
    Gender:
    Male
    First Name:
    Bryan
    Central Virginia
    Vehicle:
    2013 Tundra Crewmax Limited
    12” Bulletproof Lift, AFE CAI, AFE Exhaust, rock lights, Fas-Top tonneau and soft topper, Dasaita 10.2” radio, light bar, ditch lights, LED headlights and fog lights, LED interior lights, Amp Research rear bumper step, dashcam, BT ODBII reader and Torque app on radio
    This is pretty cool. Would it work for Android units running Zlink?

    I didn’t know you could do this. I’ll have to test it.
     
  3. Jan 9, 2022 at 1:57 PM
    #3
    Bakershack

    Bakershack Critical of Noncritical Thinkers

    Joined:
    May 20, 2020
    Member:
    #46846
    Messages:
    2,678
    Gender:
    Male
    First Name:
    Kelly
    Spanish Fort, AL
    Vehicle:
    2020 SSM 1794 4x4
    That is cool! Thanks for sharing!
     
  4. Jan 9, 2022 at 2:20 PM
    #4
    Black

    Black Raised Hands Surround Us. 3 Nails To Protect Us

    Joined:
    Dec 4, 2020
    Member:
    #55705
    Messages:
    692
    Gender:
    Male
    Vehicle:
    2014 Tundra Limited CrewMax
    Falcon Leveling System, Coachbuilder +1s, RCI Skid Plates
    So for those of us who are not geeky enough to know how you did it but think it is pretty cool, how did you actually do it?
     
    KK6PD, Bprose and D3VA like this.
  5. Jan 9, 2022 at 2:49 PM
    #5
    Kung

    Kung Pulleth my finger

    Joined:
    Mar 10, 2020
    Member:
    #43761
    Messages:
    1,964
    Gender:
    Male
    First Name:
    Matt
    FLW, MO
    Vehicle:
    2020 SR5 CM 4WD, TRD Off-Road, Voodoo Blue
    Spiffy console tray, N-Fab Steps
    What he said - although I AM geeky enough. I just don't want to reinvent the wheel if I don't have to. LOL
     
    KK6PD likes this.
  6. Jan 9, 2022 at 2:59 PM
    #6
    jhardy1979

    jhardy1979 New Member

    Joined:
    Mar 19, 2021
    Member:
    #60649
    Messages:
    180
    Gender:
    Male
    First Name:
    Justin
    Vehicle:
    MGM 2015 Tundra Crewmax Limited 4x4
    Its called shortcuts
     
  7. Jan 9, 2022 at 3:09 PM
    #7
    BoysandHisToys

    BoysandHisToys New Member

    Joined:
    May 20, 2021
    Member:
    #63305
    Messages:
    214
    Gender:
    Male
    First Name:
    Bryan
    Central Virginia
    Vehicle:
    2013 Tundra Crewmax Limited
    12” Bulletproof Lift, AFE CAI, AFE Exhaust, rock lights, Fas-Top tonneau and soft topper, Dasaita 10.2” radio, light bar, ditch lights, LED headlights and fog lights, LED interior lights, Amp Research rear bumper step, dashcam, BT ODBII reader and Torque app on radio
    I have this setup now, but just tried it in my truck with zlink. Unless I missed automating it, it’s not working. Will try on my car that uses wired CarPlay next.
     
  8. Jan 9, 2022 at 3:31 PM
    #8
    Black

    Black Raised Hands Surround Us. 3 Nails To Protect Us

    Joined:
    Dec 4, 2020
    Member:
    #55705
    Messages:
    692
    Gender:
    Male
    Vehicle:
    2014 Tundra Limited CrewMax
    Falcon Leveling System, Coachbuilder +1s, RCI Skid Plates
    That tells me nothing unfortunately
     
    KK6PD likes this.
  9. Jan 9, 2022 at 3:34 PM
    #9
    jhardy1979

    jhardy1979 New Member

    Joined:
    Mar 19, 2021
    Member:
    #60649
    Messages:
    180
    Gender:
    Male
    First Name:
    Justin
    Vehicle:
    MGM 2015 Tundra Crewmax Limited 4x4
    Its an app you use to make your phone do certain things in different situations. Its an IOS app
     
    TRDFerguson likes this.
  10. Jan 9, 2022 at 4:11 PM
    #10
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    Shortcuts is specific to iOS. There may be something similar in Android but I don’t know.
     
  11. Jan 9, 2022 at 4:15 PM
    #11
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    Once you build the Shortcut you can go to Automations and run the shortcut when CarPlay starts.

    522D63C7-90DA-4ADC-839F-F24F1026AA9E.jpg


    continued


    4A5DC58E-3B1D-4D14-A204-64730DFE1AE3.jpg
     
    BoysandHisToys likes this.
  12. Jan 9, 2022 at 4:16 PM
    #12
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    I’ll try to do a better write up in the next day or so
     
  13. Jan 9, 2022 at 4:54 PM
    #13
    Bergy24

    Bergy24 New Member

    Joined:
    Aug 18, 2021
    Member:
    #66925
    Messages:
    213
    Gender:
    Male
    Vehicle:
    2021 Cement Crewmax Limited TRD
    TRD rear sway bar
    I was just playing with my shortcuts today. I’m interested in a better write up or step by step when you get time
     
  14. Jan 9, 2022 at 5:18 PM
    #14
    tightywhitey

    tightywhitey New Member

    Joined:
    Nov 25, 2018
    Member:
    #22190
    Messages:
    319
    New Orleans, LA
    Vehicle:
    2015 Toyota Tundra CREWMAX - Louisiana Edition
    The geek in me is writing the code to do this in my head as I read it.
     
  15. Jan 9, 2022 at 5:37 PM
    #15
    eick

    eick New Member

    Joined:
    Jan 6, 2020
    Member:
    #40848
    Messages:
    726
    Gender:
    Male
    Vehicle:
    2020 CrewMax TRD Off Road
    I never thought of this thanks OP
     
  16. Jan 9, 2022 at 5:49 PM
    #16
    jhardy1979

    jhardy1979 New Member

    Joined:
    Mar 19, 2021
    Member:
    #60649
    Messages:
    180
    Gender:
    Male
    First Name:
    Justin
    Vehicle:
    MGM 2015 Tundra Crewmax Limited 4x4
    So I finally figured out how to set it up I just need to figure out how you get it to check if you have connected to carplay earlier in the day or not.
     
    jeffw6236 [OP] likes this.
  17. Jan 10, 2022 at 8:23 AM
    #17
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    Here’s how I did my CarPlay voice greeting. Note this works in iOS (iPhone). There may be something similar for Android, but my experience with Android is limited so I can’t really speak to that.


    **** Shortcuts is an iPhone/iPad/Mac app (probably preloaded on your device) that can automate a set of actions for you. If you’ve never used shortcuts, check it out, and look at the gallery. I’d recommend you load a couple of those and play around with them some to see how the actual programming works. When you are in the shortcut app, you’ll see a list of actual shortcuts. At the top right hand corner of the shortcut, there is a small circle with 3 horizontal dots in it. If you click that it will open up all of the code so that you can see and/or modify it. ****

    I started first with a Shortcut. It gives a greeting, gives me a weather report and battery life. And reminds me about bringing a mask and to check my gas.

    Shortcut 1 Steps

    - Get the weather at the current location

    -Get the battery level

    -Format the battery level to 0 decimal places

    -Create the TEXT

    -Here you basically write out what you want it to say. You enter text and variables. Mine looks like this. I’ve put the variables in parenthesis:

    Hey Jeff. Today is (Current Date), (Current Date.

    Right now, its (Temperature) and (Condition).

    There is a (Percent Chance)% of rain. The low for today is (Low) and the high is (High)…

    Your iPhone battery is at (Formatted Number)%.....

    Do you need a mask?

    Do you need gas?

    -(Speak) Text

    -after you create your text, go to each variable and touch to specify what you’re looking for.

    -click the play button on the bottom toolbar to test it.



    Screenshots below:


    F7697AFE-C625-445A-9C23-524BB0AF62BB.jpg



    .
    57E710FD-8DFF-4040-98DE-C72C3575D671.jpg

    .




    9CE72116-6FA6-4A7B-A201-36A3B46BAE53.jpg

    .

    I used Automations to trigger the shortcut below. To do this:

    -open the Shortcuts app

    -choose Automation on the bottom toolbar

    -touch the + at the top right of the screen

    -touch Create Personal Automation

    - Touch CarPlay

    - Then When CarPlay > Connects > Next > Add Action > Apps > Shortcuts > Run Shortcut > touch the grayed out word Shortcut and select the shortcut you created above.

    2FB7D28E-525D-4F7C-B556-A0A2134A6957.jpg
    .
    D309B2E2-56BC-4354-84D4-F20A1DF40740.jpg

    Now your shortcut will start when your iPhone connects to CarPlay. It may take 30 seconds or so before it plays.


    After I ran this for a couple of days I decided it was too much, so I created a shorter version. To do this just long-press on your shortcut and touch duplicate when the menu pops up. Then modify however you like.


    Then I thought, when I get in my truck for the first time in the morning, I’d maybe like to hear the long version. But when I get in / out several times during the day I don’t need all of that. So I created an automation that checks to see if I’ve driven that day. If not, it plays the long greeting. If I have already driven that day it plays the shorter version.


    I’ll show how to do that in another post.


    Have fun!
     
  18. Jan 10, 2022 at 8:50 AM
    #18
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks

    For this one you’ll need to download Toolbox Pro from the App Store. It’s free. There is some premium content, but this one uses the free stuff.

    build another shortcut

    When you go this route you would use this when CarPlay connects. It’ll check if run then will decide which greeting to play. Again in my case I have a long greeting for the first time of the day. Then a short greeting for each following.

    What actually happens here is when you run it it creates a global variable with the current date. The global variable it creates is CarPlayRan. So when it runs again it checks to see if the global variable previously exists. Then I have another automation that runs at 11:59 pm daily. That one clears the global variable so that there is a clean slate for the next day.

    8907F7CA-10DA-422B-AE39-BCF29F2FF72D.jpg
    .
    A995796D-B3E7-44DF-9862-12BBB8C356A3.jpg
    .

    B2235FBB-6ED4-4349-ADA3-C30E06DA8499.jpg

    .
    C4835CC4-4776-45A8-BD9C-7FF2019698F8.jpg


    .

    To clear the global variable each night run the automation I mentioned above.

    F48AAA40-61D1-4F47-9B5D-BA43FC6910D6.jpg

    .

    3F50471E-E49B-4910-9499-4C80E0A98791.jpg

    .

    4D7879A8-C24A-45B8-B127-D8E39CED7583.jpg
    .


    .
     
  19. Jan 10, 2022 at 10:00 AM
    #19
    Bakershack

    Bakershack Critical of Noncritical Thinkers

    Joined:
    May 20, 2020
    Member:
    #46846
    Messages:
    2,678
    Gender:
    Male
    First Name:
    Kelly
    Spanish Fort, AL
    Vehicle:
    2020 SSM 1794 4x4
    Jeff, this is a SIGNIFICANT contribution to the site. Thank you for sharing!
     
  20. Jan 10, 2022 at 10:06 AM
    #20
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
  21. Jan 10, 2022 at 10:09 AM
    #21
    Cortez11

    Cortez11 New Member

    Joined:
    Nov 6, 2020
    Member:
    #54561
    Messages:
    55
    Gender:
    Male
    Vehicle:
    2013 DblCab 5.7 4x4
    Wow, I’m blown away. Nice job Jeff, thanks for the write up.
     
    jeffw6236 [OP] likes this.
  22. Jan 10, 2022 at 11:45 AM
    #22
    BoysandHisToys

    BoysandHisToys New Member

    Joined:
    May 20, 2021
    Member:
    #63305
    Messages:
    214
    Gender:
    Male
    First Name:
    Bryan
    Central Virginia
    Vehicle:
    2013 Tundra Crewmax Limited
    12” Bulletproof Lift, AFE CAI, AFE Exhaust, rock lights, Fas-Top tonneau and soft topper, Dasaita 10.2” radio, light bar, ditch lights, LED headlights and fog lights, LED interior lights, Amp Research rear bumper step, dashcam, BT ODBII reader and Torque app on radio
    I got mine working with zlink. Only thing is that the radio or Apple Music keeps playing. Any way to silence those while this is speaking?
     
  23. Jan 10, 2022 at 11:57 AM
    #23
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    that’s awesome!

    mine plays at the same time but it seems to lower the music volume a bit.

    in iOS there is a command to pause and play media. I’m going to experiment with putting this command at both the beginning and end of the shortcut.

    4E29A776-2403-46F4-9E8B-49415EE7179A.jpg
     
    BoysandHisToys likes this.
  24. Jan 10, 2022 at 12:01 PM
    #24
    CGP

    CGP New Member

    Joined:
    Aug 4, 2021
    Member:
    #66349
    Messages:
    44
    Gender:
    Male
    Houston, TX
    This is relevant to my interests.
     
  25. Jan 10, 2022 at 12:10 PM
    #25
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks

    I think this will work. Put Pause right before the text command and Play after the Speak Text command

    8B2C1F08-1CFA-4787-96BF-1D647B1CB0A1.jpg
     
    BoysandHisToys likes this.
  26. Jan 10, 2022 at 12:18 PM
    #26
    BoysandHisToys

    BoysandHisToys New Member

    Joined:
    May 20, 2021
    Member:
    #63305
    Messages:
    214
    Gender:
    Male
    First Name:
    Bryan
    Central Virginia
    Vehicle:
    2013 Tundra Crewmax Limited
    12” Bulletproof Lift, AFE CAI, AFE Exhaust, rock lights, Fas-Top tonneau and soft topper, Dasaita 10.2” radio, light bar, ditch lights, LED headlights and fog lights, LED interior lights, Amp Research rear bumper step, dashcam, BT ODBII reader and Torque app on radio
    Just added those! I think it will work for Apple Music, but not sure about the radio. Will test a little later.
     
  27. Jan 10, 2022 at 12:57 PM
    #27
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    it should work for any media that is playing on your phone. Apple Music , Pandora, etc. But for the radio…. I don’t know - I doubt it.
     
  28. Jan 10, 2022 at 3:49 PM
    #28
    BoysandHisToys

    BoysandHisToys New Member

    Joined:
    May 20, 2021
    Member:
    #63305
    Messages:
    214
    Gender:
    Male
    First Name:
    Bryan
    Central Virginia
    Vehicle:
    2013 Tundra Crewmax Limited
    12” Bulletproof Lift, AFE CAI, AFE Exhaust, rock lights, Fas-Top tonneau and soft topper, Dasaita 10.2” radio, light bar, ditch lights, LED headlights and fog lights, LED interior lights, Amp Research rear bumper step, dashcam, BT ODBII reader and Torque app on radio
    Yup, worked for Apple Music. But not for radio. Definitely going to keep playing with this. I wish there was a way to search the actions instead of scrolling through all of them. Maybe there is and I’m just missing it.
     
  29. Jan 10, 2022 at 4:01 PM
    #29
    jeffw6236

    jeffw6236 [OP] New Member

    Joined:
    Nov 4, 2016
    Member:
    #5090
    Messages:
    283
    Gender:
    Male
    First Name:
    Jeff
    San Antonio
    Vehicle:
    2019 MGM CrewMax 4x4
    DiamondBack HD Katzkin Falcon shocks
    Do you mean the shortcut actions? You can search here. You may have seen this already

    B2DCC3E6-1649-4323-9D2B-C798E7AD8354.jpg
     
  30. Jan 10, 2022 at 4:05 PM
    #30
    BoysandHisToys

    BoysandHisToys New Member

    Joined:
    May 20, 2021
    Member:
    #63305
    Messages:
    214
    Gender:
    Male
    First Name:
    Bryan
    Central Virginia
    Vehicle:
    2013 Tundra Crewmax Limited
    12” Bulletproof Lift, AFE CAI, AFE Exhaust, rock lights, Fas-Top tonneau and soft topper, Dasaita 10.2” radio, light bar, ditch lights, LED headlights and fog lights, LED interior lights, Amp Research rear bumper step, dashcam, BT ODBII reader and Torque app on radio
    Ah, I did overlook that, but even when using that, it just brings up a bunch of other useless things like texting before the actions. I’m just not a fan of the way it looks.
     

Products Discussed in

To Top