I have a large house on a farm. I have 5 wifi networks. 4 are in the house. There are two routers. Each has a 2.4GHz network and a 5GHz network. I also have a line going out to my shop from one of these routers. The line feeds an access point.
I want to make a task that QUICKLY switches to the strongest network of the 5. Id like the task to trigger when I get home from work. I thought these phones could sense wifi networks they are familiar with even when wifi was off. Can I tap into this somehow to trigger the task? I have tried auto connect and the task described in this YouTube video(https://youtu.be/5Y0csfH4h_g). This seems to work partially and sporadically. It's the best I have had. I have been chasing this one since I got this phone in November. If someone can figure this out we need to post it all over the internet! It seems like most of these are designed for switching between 2 networks, but don't work well when having to pick from multiple networks like in my scenario. There have been a couple other plugins mentioned such as this one: https://play.google.com/store/apps/details?id=ultimatesoftware.nw.SSIDSelector&hl=en. This hasn't been updated in years though, and the developer never replied when I emailed him. Someone please help.
Sent from my Pixel 2 XL using Tapatalk
TTT
You'll need Autotools. Here's description of the task:
ChgToBestWifi (2)
Abort Existing Task
A1: Perform Task [ Name:GPS On Priority:%priority+10 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stopff ]
A2: AutoTools Connectivity [ Configuration:Check Wifi Networks: true Timeout (Seconds):5 Continue Task After Errorn ]
A3: AutoTools Json Read [ Configuration:Simple Mode: true
Json: %atwifinetworks
Fields: ssid
Separator: , Timeout (Seconds):5 Continue Task After Errorn ]
A4: AutoTools Connectivity [ Configuration:SSID: %ssid Timeout (Seconds):10 Continue Task After Errorn ]
A5: Perform Task [ Name:GPS Off Priority:%priority+10 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stopff ]
Related
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Dude I didn't test it.. But it's real innovative...[emoji106]
Thought about doing this myself!! Glad someone has already done the work.
Is there a way to do this with hangouts or kik or any other message app?
Sent from my SM-N920T using Tapatalk
any way you can get this to send a message to your girlfriend number 1, and send a different text to gfriend number two and three?
nickmax1 said:
any way you can get this to send a message to your girlfriend number 1, and send a different text to gfriend number two and three?
Click to expand...
Click to collapse
Sure. Just have it run again for each number.
I mean... No! You shouldn't have more that one gf at a time!
Sent from my LG G2 Mini using XDA Labs
Haha really cool thing!
samsHarvy said:
Haha really cool thing!
Click to expand...
Click to collapse
I love it keeps me out of trouble
Sent from my SM-G930F using XDA-Developers mobile app
WaterTrooper said:
Is there a way to do this with hangouts or kik or any other message app?
Sent from my SM-N920T using Tapatalk
Click to expand...
Click to collapse
I think autoinput will do it.
Josh Smith10 said:
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Click to expand...
Click to collapse
Wonderful idea!
I did the same. A serious problem will come the day the task will send the identical message twice.
Randomly it will happen. When your wife will unferstand that the romantic is made by tasker will she be happy?
I solved the issue setting in variables the last two random lines and checking that the current one is not equal to those.
My wife is happy...
pulcinella75 said:
Wonderful idea!
I did the same. A serious problem will come the day the task will send the identical message twice.
Randomly it will happen. When your wife will unferstand that the romantic is made by tasker will she be happy?
I solved the issue setting in variables the last two random lines and checking that the current one is not equal to those.
My wife is happy...
Click to expand...
Click to collapse
Oh. No way she wouldn't be happy lol.. Sometimes I blame the ohone if it's sends too.. Could you share your task at the end to check.
Sent from my SM-G930F using XDA-Developers mobile app
Happy wife - happy life! Case closed :good:
Anybody want to share the Xml?
Sent from my SM-G920V using XDA-Developers mobile app
Thanks
Josh Smith10 said:
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Click to expand...
Click to collapse
Thanks for the great task. I changed it up to meet my needs, but it was nice to have a good base to work off of. Keep up the great work.
Josh Smith10 said:
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Click to expand...
Click to collapse
Very cooooll thing
Thanks for this. Now before my son plays any games he has to get 3 correct spellings.
Buried the file nice and deep, and renamed it to minimise cheating too.
I absolutely love Tasker, but this is one time where I decided to make an app to make this “brain dead” simple, and add some easy-to-use smarts as well. The app is CommuniqAI and it can be used to help you stay in touch with anyone, not just loved ones. Details are at https://forum.xda-developers.com/t/...sms-calls-and-email-with-promo-codes.4337045/.
I would like to change my audio profiles based on different situations:
Audioprofile Normal
Normal audiosettings at daytime, when car is not connected and no meeting in calendar.
Audioprofile Night.
Silent audiosettings at nighttime, but only when I'm at home and car is not connected.
Audioprofile Car
Audioprofile in car when connected to bluetooth. Overwrites every other audioprofile.
Audioprofile Silent
Audioprofiles for meetings and special locations.
Every state has his own variable, like the daytime, the bluetooth connection, my location etc..
So I tought I could combine the variable states in a profile with "Variable Value" and the operator AND:
"[email protected]"
Variable Value
%Day=1
AND
%Meeting=1
AND
%Car=0
Enter Task=Audioprofile Silent
But I read this in the Tasker Wiki:
...
Warning: if you want to trigger on a variable and then take some action which sets the thing the variable represents you should use the Variable Set event instead. A Variable Value state will cause complications when the state exits and tries to restore the value again.
...
With "Variable Set" I can only query the value of one variable. That's not enough for my profiles.
How could I do this? Is the warning still valid?
JasMan78 said:
I would like to change my audio profiles based on different situations:
Audioprofile Normal
Normal audiosettings at daytime, when car is not connected and no meeting in calendar.
Audioprofile Night.
Silent audiosettings at nighttime, but only when I'm at home and car is not connected.
Audioprofile Car
Audioprofile in car when connected to bluetooth. Overwrites every other audioprofile.
Audioprofile Silent
Audioprofiles for meetings and special locations.
Every state has his own variable, like the daytime, the bluetooth connection, my location etc..
So I tought I could combine the variable states in a profile with "Variable Value" and the operator AND:
"[email protected]"
Variable Value
%Day=1
AND
%Meeting=1
AND
%Car=0
Enter Task=Audioprofile Silent
But I read this in the Tasker Wiki:
...
Warning: if you want to trigger on a variable and then take some action which sets the thing the variable represents you should use the Variable Set event instead. A Variable Value state will cause complications when the state exits and tries to restore the value again.
...
With "Variable Set" I can only query the value of one variable. That's not enough for my profiles.
How could I do this? Is the warning still valid?
Click to expand...
Click to collapse
What i would do create individual profiles based on time of day, power supply connection, wifi network connection, bluetooth device connection, etc. Each one of those trigger their own individual task which:
1. Sets a specific variable to "1".
2. Sets other settings specific to that profile (if needed).
3. Performs a separate task that change common settings all profiles share.
Then create exit tasks for each profile to:
1. Set specific variables to "0".
2. Set other settings specific to that profile no longer being active (if needed).
3. Performs that same separate task that changes common settings all profiles share.
The common task should be set up with a series of if/else statements for each condition you want. So if variables time of day and home wifi connected are "1", do this, else do nothing. if car Bluetooth connected set to "1", do this, else do nothing. Etc etc etc.
LeftyGR said:
What i would do create individual profiles based on time of day, power supply connection, wifi network connection, bluetooth device connection, etc. Each one of those trigger their own individual task which:
1. Sets a specific variable to "1".
2. Sets other settings specific to that profile (if needed).
3. Performs a separate task that change common settings all profiles share.
Then create exit tasks for each profile to:
1. Set specific variables to "0".
2. Set other settings specific to that profile no longer being active (if needed).
3. Performs that same separate task that changes common settings all profiles share.
The common task should be set up with a series of if/else statements for each condition you want. So if variables time of day and home wifi connected are "1", do this, else do nothing. if car Bluetooth connected set to "1", do this, else do nothing. Etc etc etc.
Click to expand...
Click to collapse
Thank you for your answer.
That could be a way to do it. I must think about it.
But is the warning still valid? I've a lot of profiles which base on variable states. I never have had any problems with them.
JasMan78 said:
Thank you for your answer.
That could be a way to do it. I must think about it.
But is the warning still valid? I've a lot of profiles which base on variable states. I never have had any problems with them.
Click to expand...
Click to collapse
I could be wrong, but I think it is saying not to trigger based on a variable. Meaning, a variable set to x causes y to happen. You can have a profile set a variable, but can get problems if a variable triggers a profile.
At least I think that's what it's saying...lol
That's exactly what I'm doing. A variable is set to 1, and a profile gets active because it checks the state "Variable Value" of this variable. This works fine for me, also the exit task as soon as the value is not longer 1.
The advantage of this method is, that I need only one profil which checks my location, appointments, bluetooth connection, etc.. The profile then sets the variable e.g. $Appointment to 1, and I can work with this variable in any other profile where I need to check if I've an appointment. If the name of the calendar change, I need only to change the name of the calendar in one profile.
And I can simply combine different variables to complex profiles.
Also, the wiki is old-ish, and not really all that up to date. So it is possible tasker has been updated to fix that issue since it was posted.
I found a good solution for me.
I've created a Tasker task, which checks the needed variables and executes the associated audio profile.
E.g. if %Day=1 then execute the task "Profil Normal", if %BluetoothConnected=Car then execute the task "Profil Car".
To execute the task I created Tasker profiles with the event "Variable Set" for every variable, which I query to choose the right audio profile. I left the value field emtpy, so everty time the variable changed the profile executes my task.
Now every time one of this variables changes, the task, which checks the values of the variables and calls the audio profile task, is executed.
Hi,
I'm new to tasker, i downloaded it like a week ago. So any help will be apreciated.
I want to know if it is possible to make some contexts to trigger a profile (trigger contexts), while others not (they must be true for the profile to get activated, but they must not trigger it (state contexts)).
For example, i want to try this:
- When waze is active and at certain locations (like my home), run and intent to cleanly exit waze.
This is intented so when i arrive at destination, waze gets closed automatically. The problem arises if i'm at home and then open waze to drive somewhere, then it gets closed immediatly. Therefore, i'd like that only the location context triggers the profile.
Is this even possible? I want to create other profiles and task under this premise too.
Regards
Make a profile that only activates on location.
Make a second, separate profile for Waze running.
Method 1:
1. Give a custom name to the Waze profile (necessary), e.g. "Waze is Running".
2. Set the Waze profile to run a dummy task like "wait 10 milliseconds".
3. In the first step of your location task, add a Task > Stop > if %PACTIVE doesn't match regex .*Waze is Running.*
4. After this first step, the location task has to stop Waze.
Alternatively, instead of adding a Task > Stop, you can put the "if condition" in the step that closes Waze. Just change it from "doesn't match regex" to "matches regex".
Method 2:
1. Waze profile sets a global variable like %Waze to yes or 1 when Waze is running (enter task)
2. Waze profile clears the global variable when Waze quits (exit task)
3. Location profile checks %Waze instead of checking %PACTIVE
%PACTIVE contains a list of all currently active profiles, but you can only check for those profiles to which you've given a custom name.
Ok, thanks. I had already started with method 2, the only thing i was missing was the third step.
I think this is a task for the state event "Variable Set". As soon as an variable has changed, the task will be executed once. There is no exit task.
Example:
1. Create profiles which set your location to a variable, e.g. %Location
2. New Profile with event "Variable Set" and the variable %Location
3. If %Location change, execute Task which checks if %Location is equal Home or not. If Home, kill Waze. If not, do nothing.
4. When you are at home and start Waze, it will not get killed because the variable %Location has not changed. Therefore the profile will not be triggered. Only when you left home the variable changes and the task will be executed. When you come back to your home, the task will be executed again.
Thanks!! , this is more consistent and more easily applied to others profiles given the way I handle my profiles and tasks.
I know this might be one of the easiest tasks to perform but still I'm not able to get it through. I tried various methods and read some docs too still not helping.
I've created a profile when my GF sends some specific text below tasks is triggers to provide my GPS, speed and battery %
Please review my tasks below and tell me what am I doing wrong here.
Tasks - https://i.imgur.com/8qQ263R.png
Message is still sent as %LOC - https://i.imgur.com/GL1pgVk.png
You're trying to use a **very** old unsupported plug in (secure settings). I'm guessing you are on a newer release, so the gps action doesn't do anything. You need to switch location mode. Such as by using AutoTools.
AutoTools Secure Settings [ Configuration:Location Mode: HighAccuracy Timeout (Seconds):60 ]
I would go with Autotools to do this.
I recently found a tutorial on how to use Tasker to take voice notes to save it to Google Sheets. I'm trying to make a different project that involves adding (and possibly renaming) new sheets to an existing SpreadSheet. I've tried everything possible (with my limited knowledge, of course) to get it to work after reading Google's documentation. But nothing has worked. Can anyone tell what I might be doing wrong.
A1: HTTP Auth [ MethodAuth 2.0 Client ID:%client Client Secret:%secret Endpoint To Get Code:https://accounts.google.com/o/oauth2/v2/auth Endpoint To Get Refresh Token:https://www.googleapis.com/oauth2/v4/token Scopes:https://www.googleapis.com/auth/spreadsheets Force Re-Authenticationff Timeout (Seconds):30 Username: Password: ]
A2: HTTP Request [ MethodOST URL:https://sheets.googleapis.com/v4/spreadsheets/%spreadsheetid/batchUpdate Headers:%http_auth_headers Query Parameters: Body:{ "requests": [ { "addSheet": { "properties": { "title": "Sample Title", "gridProperties": { "rowCount": 20, "columnCount": 12 }, "tabColor": { "red": 1.0, "green": 0.3, "blue": 0.4 } } } } ] } File To Send: File/Directory To Save With Output: Timeout (Seconds):30 Trust Any Certificateff Automatically Follow Redirectsff Use Cookiesff ]
iampunX said:
I recently found a tutorial on how to use Tasker to take voice notes to save it to Google Sheets. I'm trying to make a different project that involves adding (and possibly renaming) new sheets to an existing SpreadSheet. I've tried everything possible (with my limited knowledge, of course) to get it to work after reading Google's documentation. But nothing has worked. Can anyone tell what I might be doing wrong.
A1: HTTP Auth [ MethodAuth 2.0 Client ID:%client Client Secret:%secret Endpoint To Get Code:https://accounts.google.com/o/oauth2/v2/auth Endpoint To Get Refresh Token:https://www.googleapis.com/oauth2/v4/token Scopes:https://www.googleapis.com/auth/spreadsheets Force Re-Authenticationff Timeout (Seconds):30 Username: Password: ]
A2: HTTP Request [ MethodOST URL:https://sheets.googleapis.com/v4/spreadsheets/%spreadsheetid/batchUpdate Headers:%http_auth_headers Query Parameters: Body:{ "requests": [ { "addSheet": { "properties": { "title": "Sample Title", "gridProperties": { "rowCount": 20, "columnCount": 12 }, "tabColor": { "red": 1.0, "green": 0.3, "blue": 0.4 } } } } ] } File To Send: File/Directory To Save With Output: Timeout (Seconds):30 Trust Any Certificateff Automatically Follow Redirectsff Use Cookiesff ]
Click to expand...
Click to collapse
You can try in a different way. I am not sure if it is possible or not. But you can try google apps script.
read doPost or doGet function of apps script and SpreadsheetApp guide. there is quota limit. So do a google search first. and you can read this also https://stackoverflow.com/questions...et-in-a-google-sheets-with-google-apps-script