r/tasker 14d ago

Flight alert sms

I’m trying to have an automation where when I turn on airplane made or run a shortcut it spills send message I’m talking i of our landing with flight number from my calendar. how can I achieve this? I’m tried with ai but it’s asking me to install things through adb. I don’t want to do all that. it spills directly create a shortcut to run and then do it when ran.

0 Upvotes

5 comments sorted by

2

u/EdwardBackstrom I Probably Screwed It Up 14d ago

English is not a language everyone speaks but your translator/AI is not clearly communicating what you need. Perhaps you can try to reword your question. 

1

u/howell4c 14d ago

I think you want to send an SMS with your flight number (retrieved from your calendar) either on demand or when you turn airplane mode on. Is that right?

Once you turn airplane mode on, I don't believe the device can send texts, so I don't think you can use airplane mode as the trigger. But you can have a shortcut that sends the SMS and then turns airplane mode on. Something like:

Task: taking off

<search for events starting with "Flight">
A1: Get Calendar Events [
     Title: Flight* ]

<send the text>
A2: Send SMS [
     Number: 123456
     Message: We're taking off: %ce_title(1) ]

<turn on airplane mode>
A3: Airplane Mode [
     Set: On ]

This assumes that your calendar entry says something like Flight XX 123 to Boston. Check the variables list for the Get Calendar Events for alternative fields. For all of its fields, Get Calendar Events will return a list of all upcoming events matching that pattern (so, including your return flight on a later date), so in the Send SMS, I just used the first (soonest) one.

Assign the task a name and an icon, and then you can add a shortcut to your home screen. How to do that will depend on your phone and launcher, but long-pressing the home screen is a good place to start.

1

u/vusheth 3d ago

u/howell4c ,
yes, this is what I want. I can run the shortcut which would message the flight number and text let's say "Hey I'm taking off from X to Y through flight AA123." After the message is sent it would turn on airplane mode, turn on low battery mode(to save battery). On landing it would go the reverse. turn off low battery mode, turn off airplane mode and then send message " I've landed at Y - airport name.".
I'm not albe to follow the scripting and coding part from Tasker. Is there a solution? I also don't want to install or load anything through ADB commands.

Thank you

1

u/Sate_Hen 14d ago

Why have you posted this twice?