[Q] Tasker: Send text after leaving one location and arriving at another. - Android Q&A, Help & Troubleshooting

Hi all,
I know how to set a profile of a location and have my phone compose a text when I arrive there. However, I only want this to happen if I have arrived at location B after leaving location A. Basically, its so when I leave my parents house and arrive back at my college dorm I want it to auto send a text but I do not want it to send the text every time I arrive at my dorm.
Does anyone know how to do this?
Thanks

This is more complex, so will require a more complex solution.
I'm thinking of setting up several user variables. You could set a variable every time you leave your parents' house, and set another variable every time you arrive at your dorm. Then another process which will send the SMS, but only if both variables are set properly. This might require a timer which would reset the 1st variable if you haven't arrived to the dorm within some amount of time.

Thanks man, I'll have to play around with creating my own variables.

mjs2430 said:
Thanks man, I'll have to play around with creating my own variables.
Click to expand...
Click to collapse
Profile 1 --> If connect to work wifi --> task 1: send text; task 2: turn off profile 1.
Profile 2 --> if connect to home wifi --> Task 3: turn on Profile 1.
Works perfectly. Probably more refined methods, but for my purposes I would consider this to be elegant enough.

ogredeschnique said:
Profile 1 --> If connect to work wifi --> task 1: send text; task 2: turn off profile 1.
Profile 2 --> if connect to home wifi --> Task 3: turn on Profile 1.
Works perfectly. Probably more refined methods, but for my purposes I would consider this to be elegant enough.
Click to expand...
Click to collapse
Thats awesome!:good:

Related

Tasker (Need a little help please)

Hi,
Whilst help with the profiles would be great, i'd much prefer help with understanding the "why" so i can learn it for future use.
Scenario:
I want to send a text to my wife when i arrive at work.
The most accurate way is when my phone connects to the work wifi. Now, i'm in and of the office all day so only want it to happen once.
So i did:
State > Net > Wifi Connected > SSID work > if %SMSKEV = 0
+ wait 1 second
+ variable set %SMSKEV = 1
So it will only fire 1 text off, then change the variable so it cant happen again. And then:
A separate profile that at midnight (using start and end time 0:00)
Variable set > %SMSKEV = 0
in order to reset it for the next day.
in my head this all sounds right. the tasks run fine (my wife gets the text) BUT the first task is still running now, not sending texts or anything, but the task is green in tasker so is ACTIVE. i only want it to run once when appropriate and then stop, but because i'm saying "when connected" to the work wifi, hours later i am still meeting the criteria of being connected to the work wifi so the profile is still active all the time later.
does this make ANY sense to anyone? what am i doing wrong?
many thanks for your help
Further:
"Events are a little different to other contexts because they are instantaneous whereas other contexts usually have a duration." from the user guide.
I think this is my problem, I need an event that says when i connect to the wifi, not a state. But there is no event for connecting to wifi...
kevmeister46 said:
Hi,
Whilst help with the profiles would be great, i'd much prefer help with understanding the "why" so i can learn it for future use.
Scenario:
I want to send a text to my wife when i arrive at work.
The most accurate way is when my phone connects to the work wifi. Now, i'm in and of the office all day so only want it to happen once.
So i did:
State > Net > Wifi Connected > SSID work > if %SMSKEV = 0
+ wait 1 second
+ variable set %SMSKEV = 1
So it will only fire 1 text off, then change the variable so it cant happen again. And then:
A separate profile that at midnight (using start and end time 0:00)
Variable set > %SMSKEV = 0
in order to reset it for the next day.
in my head this all sounds right. the tasks run fine (my wife gets the text) BUT the first task is still running now, not sending texts or anything, but the task is green in tasker so is ACTIVE. i only want it to run once when appropriate and then stop, but because i'm saying "when connected" to the work wifi, hours later i am still meeting the criteria of being connected to the work wifi so the profile is still active all the time later.
does this make ANY sense to anyone? what am i doing wrong?
many thanks for your help
Further:
"Events are a little different to other contexts because they are instantaneous whereas other contexts usually have a duration." from the user guide.
I think this is my problem, I need an event that says when i connect to the wifi, not a state. But there is no event for connecting to wifi...
Click to expand...
Click to collapse
I understand your problem. =)
I dont realy know how to solve it the way you tried to, but i think there is another way...
If you arrive at work every day at the same time you may find a way to connect a several time (for instance 10:15 am ) to your wifes text message.
Hope i could help yoou or even keep you mind walking on =)
I wanted to do exactly the same thing, perform a task once per day when connected to home wifi, only initiate a sync using FolderSycn, as opposed to send anSMS. I thought abut setting the variable, then resetting it at midnight just like you did.
But what I tried was to just set a simple profile:
when state = wifi connected to home wifi ssid, perform sync.
As you said, it still shows the profile as active as long as the wifi is connected, but it doesn't affect anything. As soon as you leave the wifi network and connect again, it will perform it again.
I guess in your case this might not be enough, just in case you lose wifi or leave your work for ome reason then return.
thank you both for replying. i think ive worked out a slightly better way of doing it.
As jiffer1991 said i used a time context but as a second context.
so i set it all up as i previously described with the Wifi Connected being the first context, then added a second time context from 7:40 to 8:10.
I always arrive within this period and have allowed a little extra. But it also means the task isn't active through out the day.
I know it probably "could" stay active and be completely harmless, i'm just thinking that maybe active tasks contribute to battery drain ??
Anyway thats how i've solved it for now.
thanks again for your replies and help.
:O)
You could also add as first context if %SMSKEV = 0
This way it won't be active the rest of the day and the sms will be send if you arrive a bit late
Cheers

Tasker On The Prime

Not sure how many of you are aware of or are using the app tasker, available in the market...IMO Have to say this is the best app of all time albeit very difficult to use to its full extent...Let me reiterate, the learning curve on this app is like climbing a mountain...just learned about it, so I'm a total noob. Have read the manual and some tutorials, but stuck on the below profile:
Using this profile http://tasker.wikidot.com/yanawa as a base for my transformer prime which has no cell service, just wifi. Imported Wifi connected and Wifi near A profiles, erasing any reference to cell towers and other APs. I'm left with two profiles:
I) Wifi Connected
A. wifi connected
Task
1. Variable set; Name: %WIFIC to 1
2Wait, 15 sec
3. Stop; If %WIFIC !~1
4. Flash; Text "Connected to Wifi"
5. Profile Status; Name, Wifi near A Set off
Exit Task
1. Variable Set; Name: %WIFIC to 0
2. Flash; Text "Wifi disconnected"
3. Wait, 30 sec
4. Stop; If %WIFIC ~1
5. Flash; Text "Disabling Wifi"
6. Wifi; Set off
7. Wait, 3 sec
8. Profile Status; Wifi near A Set on
II) Wifi near A
A. Wifi near home SSID (Toggle checked) -
Task
1. WiFi; Set on
2. Flash; Text "wifi in range"
- Exit Task
1. WiFi; Set off; If %WIFIC !~1
2. Flash; Text "Wifi out of range”; If %WIFIC !~1
The problem is when a Wifi signal is not available, Wifi near keeps searching and toggling wifi, which makes the entire thing useless to me. If anybody could offer nay guidance it would be much appreciated.
I don't quite understand what you're trying to do?
From what I see, is your trying to find out, if you're at home, so that the Wifi gets switched on, and the other way round to save battery? Correct?
Remember, wifi is the method you use to locate your position. So if you switch it off, it can't see where the tf201 is... What you could do is implement another timer, so that Wifi gets switched on every 15 minutes to have a look around. In case it finds your home wifi it stays active. Otherwise it gets shut off again for another 15 min....
Regards,
Chris.
if someone can tell me how to make it notify me (sound) when the micro sd card ejects, I will hit the Thank You Button three times!! lol...i can not figure this out at all. if someone can give me the step by step setup please
It's an absolutely amazing app. You can get lots of preconfigured profiles from their wiki and customise them to your desire. I've been using this app for a while now, first on HTC Desire, then Galaxy Note and now on the Prime. Especially on the Prime that has only Wifi I find that one of the most useful profiles is the one that turns wifi off when my mobile Mifi is not available, and then to switch from Mifi to home wifi and similarly at work.
---------- Post added at 10:29 PM ---------- Previous post was at 10:21 PM ----------
MRCANNADY said:
if someone can tell me how to make it notify me (sound) when the micro sd card ejects, I will hit the Thank You Button three times!! lol...i can not figure this out at all. if someone can give me the step by step setup please
Click to expand...
Click to collapse
That would be a cool warning indeed to warn us that the card has ejected. All I can think of at the moment is to search for an app on Play that you can use to eject manually the card, put that under Tasks > 3rd Party in Tasker and tie your eject event to that. Will continue searching for this profile as I think its a really neat idea...
chrihuc said:
I don't quite understand what you're trying to do?
From what I see, is your trying to find out, if you're at home, so that the Wifi gets switched on, and the other way round to save battery? Correct?
Remember, wifi is the method you use to locate your position. So if you switch it off, it can't see where the tf201 is... What you could do is implement another timer, so that Wifi gets switched on every 15 minutes to have a look around. In case it finds your home wifi it stays active. Otherwise it gets shut off again for another 15 min....
Regards,
Chris.
Click to expand...
Click to collapse
Basically trying to have wifi scan for a specified signal and when available connect and stop scanning...which is what the first part of the above does. However, when a signal is not available wifi continues to scan. Which is what it currently does. What I've done is set the scan's a little further apart, so as to save batt. But my main concern is automation over batt saving.
MRCANNADY said:
if someone can tell me how to make it notify me (sound) when the micro sd card ejects, I will hit the Thank You Button three times!! lol...i can not figure this out at all. if someone can give me the step by step setup please
Click to expand...
Click to collapse
+ 1...Tried it using tasker states re: sd card, but it didn't work.
Moe5508 said:
That would be a cool warning indeed to warn us that the card has ejected. All I can think of at the moment is to search for an app on Play that you can use to eject manually the card, put that under Tasks > 3rd Party in Tasker and tie your eject event to that. Will continue searching for this profile as I think its a really neat idea...
Click to expand...
Click to collapse
Tried a locale plugin (https://play.google.com/store/apps/details?id=com.suttco.locale.externalstorage.status&hl=en) and was able to get a text warning that sd card was mounted, but doesn't seem to work for unmounted or removed.
Also found this info: http://www.itwizard.ro/tag/broadcast-receiver

[Q] Tasker variable question

I have a profile called HOME and a profile called WORK. Can someone tell me how to create a variable for when both of these two profiles are not active. I would like to use the variable as a context along with a time context to turn on Mobile Data every hour for 5 minutes so that I can sync email, etc.
I am new to tasker and it is fun just trying to figure out how to make things work.
Ideally you could select home and work based on GPs then invert that. I have seen invert in the selections but those are for tasks. But inverting does not seem available for Profiles.
What different actions do you have triggered when you are at home and office and what criterion are you using to define home and office?? GPS, cell tower, friendly wifi points????
You can just create a variable called, for example, %OUT. Then in your home/work profiles, make it such that %OUT=1 when they are running, and %OUT=0 when they aren't. So when you're out, you can go
IF
%OUT=0
STOP
ELSE
Mobile Data = ON
Wait 5 minutes
Mobile Data = off
Wait 55 minutes
Goto top of the loop
And you can set the context to SCREEN OFF.
Should probably work I guess. I'm pretty new to it too.
Thanks. I will try this tomorrow.
Sent from my DROID RAZR using Tapatalk 2

Can anyone help a Tasker noob?

I finally decided that I was missing out by not having Tasker automate my life for me, so bought it as well as the full version of Secure Settings.
I've managed a couple of simple Profiles, but I'm having trouble with other stuff I want to do - most likely because I just don't understand.
A. Aim: When Maps is launched, turn on "WiFi" and "Location Mode High Accuracy"
Profile: Near Work
State: Cell Near (work)
Tasks: (1) WiFi On (2) Secure Settings, Location Mode/High Accuracy
This almost works - opening Maps carries out the expected tasks, and when I exit maps WiFi turns off (desired behaviour). However, Location does not switch off again, it stays on switched on, and I don't understand why.
I'd like Location to switch off again when I exit Maps.
B. Aim: Switch on WiFi and Location Mode/Battery Saving and Location Reporting and Location History once an hour, for one minute, and allow (force?) Google to poll my location for a short period so that if I ever lose my phone and it is switched off, there will be a trail of sorts (without having to leave all these services switched on all the time,which canes my battery).
Profile: Manage Location Services
State: Time - I don't know how I can make the profile active for one minute, every hour
Tasks: (1) WiFi On
Then I get lost - I can't see how to enable Location Reporting which is in Location Services in my phone settings. Also I don't know if doing that would immediately prompt the phone to contact Google and report its location (I assume it would).
C: Aim: Between 10pm-9am, if at home, then silence phone and switch off notification light
State: Cell near (home)
This is as far as I've got. I don't understand how to use time as a defining factor. Nor do I know how to switch off the notification light.
If anyone could help then I'd be very grateful!
Also, after reading a lot of Tasker walkthroughs/userguides (and not understanding a lot of them) I am none the wiser as to how to set up an 'exit task'?
There are a lot of issues regarding Secure Settings, I don't recommend it. The only way to turn on/off gps (and the way I'd do it personally) is use root shell to navigate through the settings or better yet set Status Bar-Open and using a Shell-"input tap x y" Use Root: Yes to tap on the GPS quick setting widget.
To add an exit task simply long press on the action part of your profile (on the main screen) and the options will appear. You can also add additional State, Time or Action matchings to your one profile, by long-pressing on the left part!
<<< Please say thanks if I was of help.
Sent from my SCH-I605 using xda app-developers app

Phone Profiles Plus

Hi all,
I just wanted to share an app I've been using for quite a while and I think it's great and might be useful for some.
It's called Phone Profiles Plus, it allows you to set sound profiles based on time of day, location, connected devices, connected to WiFi or Bluetooth and also when connected to a charger, you can also have it launch apps based on what it's connected to.
Example 1: When I got to the gym and connect my Bluetooth headphones, it will automatically launch 2 apps for me, Google Play Music and my workout app (but doesn't close them when disconnected, unless I didn't figure how)
Example 2: When I connect my phone anytime between 11pm and 8am to the charger, it will set all sounds to silent and then revert back to the previous profile once I take the phone of the charger.
Example 3: If I go the the movies (I usually go to the same 2 theaters) my phone will automatically change to vibrate based on the location.
Anyway I thought I would just share.
Phone Profiles Plus at Google Play Store
Yes, it's great but unfortunately has no good help file. For example I totally cannot figure out what 'shared profile' is. And why bluetooth is constantly switching on when nothing is triggering it and there is absolutely nothing on the log file.
I just installed this app and it seems awesome. I, too, am having some small configuration issues and was looking for a subreddit, user forum, wiki, or some other place where users could help each other. Does anyone know if this exists?
I'm using the app without events until I get the profiles working like I need. I want all notifications off at night (Sleep profile) except for my ringer and alarm. I enabled the "Unlink Ringer and Notification Volumes", set notification volume to 0, Ringer to 1, but I can still hear all of my notifications. Am I missing some other setting somewhere?
Thanks for any light anyone can shed on this!
I would try to set the system sounds to 0, silent sound notifications, 1 ringtones, but silent sound and ring only for those who have a ringing tone assigned, the alarm clock works, and other announcements are quiet. It works fine for me.
This app is surely great, I have one problem: my home and my work places are very close to each other and there is only one mobile cell that covers both my home and my work. There are around 10 totally different cells for home and 10 other cells for work but this only one common cell that is in use in both home and work areas is spoiling the whole profile change process because my profiles are changing based on mobile cells. It would be very easy if my GPS sensor was enabled at all times but it is not and don’t want to be enabled constantly. Any advice of how to solve this problem without GPS enabled will be greatly appreciated! My phone is Samsung Galaxy S9+ and it is rooted with Magisk.
I like this app, but I am having similar issues here. Bluetooth activates/deactivates unexpectedly. Events sometime trigger unexpectedly. Can't find support.
RDLaw said:
I just installed this app and it seems awesome. I, too, am having some small configuration issues and was looking for a subreddit, user forum, wiki, or some other place where users could help each other. Does anyone know if this exists?
I'm using the app without events until I get the profiles working like I need. I want all notifications off at night (Sleep profile) except for my ringer and alarm. I enabled the "Unlink Ringer and Notification Volumes", set notification volume to 0, Ringer to 1, but I can still hear all of my notifications. Am I missing some other setting somewhere?
Thanks for any light anyone can shed on this!
Click to expand...
Click to collapse
I'm using this app too and potentially it should be great, however I cant get events working as they should. Finding some sort of support would be handy.
Westindieman said:
I'm using this app too and potentially it should be great, however I cant get events working as they should. Finding some sort of support would be handy.
Click to expand...
Click to collapse
What issues are you having with getting your events to work? Are they activated? Did you set priorities for them?
Sent from my SM-N960W using XDA-Developers Legacy app
Cyclops1055 said:
What issues are you having with getting your events to work? Are they activated? Did you set priorities for them?
Sent from my SM-N960W using XDA-Developers Legacy app
Click to expand...
Click to collapse
Thanks for your response. My events sometimes don't activate and you are correct, it could be to do with the priorities which I didn't pay too much attention to before. I thought as long as the active parameters were met the event would activate the profile. For example I initially had my home profile activated by the area then I tried mobile cell censor, I also set this to be active between 7AM and 2300. I had a 'night' event from 2300 till 7AM which only seemed to activate when I restarted events. I had a work event which should have activated on the area where I work but wasn't. Even when I tried manual activation it wasnt changing. Yesterday I cancelled the time activation on the 'at home' event and left the times on the 'night' event and gave a higher priority to the 'night' event and this seemed to work last night, but I have previously had things working for one activation before then it doesn't again, so we will see. Also I have switched to 'order events by priority' rather than start order, so will see how that works over the next day or so when I am back at work.
Im using a Oneplus Six
Regards
Westindieman said:
Thanks for your response. My events sometimes don't activate and you are correct, it could be to do with the priorities which I didn't pay too much attention to before. I thought as long as the active parameters were met the event would activate the profile. For example I initially had my home profile activated by the area then I tried mobile cell censor, I also set this to be active between 7AM and 2300. I had a 'night' event from 2300 till 7AM which only seemed to activate when I restarted events. I had a work event which should have activated on the area where I work but wasn't. Even when I tried manual activation it wasnt changing. Yesterday I cancelled the time activation on the 'at home' event and left the times on the 'night' event and gave a higher priority to the 'night' event and this seemed to work last night, but I have previously had things working for one activation before then it doesn't again, so we will see. Also I have switched to 'order events by priority' rather than start order, so will see how that works over the next day or so when I am back at work.
Im using a Oneplus Six
Regards
Click to expand...
Click to collapse
I found using the priorities helps a lot with event, here's some examples of events that I have setup and their priorities.
Event name: Work (activated by time: Mon to Fri, 8am to 6pm) / Priority: P6
Event name: Car (activated by Bluetooth connection to my car) / Priority: P8
Event name: Bedtime (activated by time and if phone is charging: 7 days, 11pm to 7am and phone must be also be charging to launch event / Priority: P7
So here is where setting Priorities is important:
Let's say it's 11:30pm and I'm home and put my phone on the charger, my Bedtime event will activate which switches my Profile to the DND that I set up.
But if it's 11:30pm and I go into my car and connect my phone to Android Auto (USB cable) or to the car charger, my Car event will launch and not my Bedtime event.
My Car event is set to P8 and Bedtime is set to P7, so the Car event takes priority over the Bedtime event.
I've been using Phone Profiles Plus for a few years now and have about 10 events setup.
If you have questions, I'll be glad to try and help, I learned how to use it by trial and error.
Cyclops1055 said:
I found using the priorities helps a lot with event, here's some examples of events that I have setup and their priorities.
Event name: Work (activated by time: Mon to Fri, 8am to 6pm) / Priority: P6
Event name: Car (activated by Bluetooth connection to my car) / Priority: P8
Event name: Bedtime (activated by time and if phone is charging: 7 days, 11pm to 7am and phone must be also be charging to launch event / Priority: P7
So here is where setting Priorities is important:
Let's say it's 11:30pm and I'm home and put my phone on the charger, my Bedtime event will activate which switches my Profile to the DND that I set up.
But if it's 11:30pm and I go into my car and connect my phone to Android Auto (USB cable) or to the car charger, my Car event will launch and not my Bedtime event.
My Car event is set to P8 and Bedtime is set to P7, so the Car event takes priority over the Bedtime event.
I've been using Phone Profiles Plus for a few years now and have about 10 events setup.
If you have questions, I'll be glad to try and help, I learned how to use it by trial and error.
Click to expand...
Click to collapse
Thanks for your help. What I have done seems to have things working now though there can be a delay of about 20 minutes at times before a profile is switched, have you found that to be the case too?
What switch do you use for your 'order events by...'? Does this matter?
I did delete the car profile as it wasn't activating at all now but I'm going to create it again and try it now other things seem to be working.
Thanks
Westindieman said:
Thanks for your help. What I have done seems to have things working now though there can be a delay of about 20 minutes at times before a profile is switched, have you found that to be the case too?
What switch do you use for your 'order events by...'? Does this matter?
I did delete the car profile as it wasn't activating at all now but I'm going to create it again and try it now other things seem to be working.
Thanks
Click to expand...
Click to collapse
I've never had a 20 minute delay or any delays with my events activating. What do you mean by: What switch do you use for your 'order events by...'? Does this matter?
I am using redmi note 7 now, I used the app b4 on redmi Note 4 and it was perfect, when I changed to note 7, I took the saved profiles with me and granted every possible permission to it, however when I change profiles and there is a brightness change within the new assigned profile, the screen dims to the lowest brightness after few seconds of activating the profile... Everything else works perfect.. Only the brightness issue.. Any help?
Hi,
I started using Phone Profiles Plus as a replacement of Llama. Unfortunately it doesn't detect connected cell unless I press RE-SCAN button. Is it related to specific phone model (I have Xiaomi Mi Max 3)?
VIP or Starred contacts
I've been using this app for quite a while now and I have a good setup that's been working great. However there is one thing I can't for the life of me figure out. I have certain numbers (VIP or starred contacts) to allow to sound even when it's on silent (zero volume).
Any ideas on how to make that work?
Thanks!
Edit : So finally figured this app out and dang, I must say it's pretty darn good! This and Audio Profiles (found on the Play Store - not free) are the only two Profile Apps that I have found that work w/ A11 that lets you control the screen brightness & sound levels. But this app here, PhoneProfilesPlus, let's you control much much much more than that and is more configurable than Audio Profiles but is more confusing to set up, however. But once you do figure it out it's totally worth it as it does work better than AudioProfiles (for me at least).
The only feature that I wish I could find or make happen is that when I manually switch profiles that I can choose a beep to sound when I do the switching. I see that I can make it beep when it changes Events, but how can I make it beep when I manually switch profiles? (I left a suggestion on Github).
Gotta say it's pretty crazy that more profile apps such as these don't exist.. PhoneWeaver was the bomb way back in the day
Btw, you gotta find it here now : https://apt.izzysoft.de/fdroid/index/apk/sk.henrichg.phoneprofilesplus

Categories

Resources