Hi
Is it possible to use array on WiFi near SSID matching field?
I'm storing all the SSID i connect to in an array and trying to check if any of the value of the array matches wifi near scan so it would turn on wifi automatically otherwise it will be turned off...
I am trying putting the SSIDS() but it is not working
dreamsayer said:
Hi
Is it possible to use array on WiFi near SSID matching field?
I'm storing all the SSID i connect to in an array and trying to check if any of the value of the array matches wifi near scan so it would turn on wifi automatically otherwise it will be turned off...
I am trying putting the SSIDS() but it is not working
Click to expand...
Click to collapse
I believe a the use of a For loop will be needed:
Code:
A1. For %match Items %SSIDS()
A2. Wifi on If %WIFII ~R %match
A3. Variable set %success To 1 If %WIFII ~R %match
A4. End For
A5. Wifi off If %success !Set
svampsson said:
I believe a the use of a For loop will be needed:
Click to expand...
Click to collapse
Hi mate
Thanks for reply
Do I have to make a new task on that and use the variable %success on wifi near SSID match?
dreamsayer said:
Hi mate
Thanks for reply
Do I have to make a new task on that and use the variable %success on wifi near SSID match?
Click to expand...
Click to collapse
Not sure if I'm understanding what you're asking but, the %success variable is only there to check if a match was found. If if it was it will turn on Wifi, if not it will turn off Wifi.
svampsson said:
Not sure if I'm understanding what you're asking but, the %success variable is only there to check if a match was found. If if it was it will turn on Wifi, if not it will turn off Wifi.
Click to expand...
Click to collapse
Aha i got you... But what I understand is a task won't activate itself if I don't run it inside a profile... And there is a wifi near state where I can check if my phone is near a wifi network, so I am trying to use that state and use an array to check if that array contains any SSID that matches the wifi near SSID, so it will activate wifi on task. Is that possible somehow? I'm new to tasker and trying to learn new things and playing around with it.. so it will be really good if you can help me, i appreciate that ?
I guess I can use your method and create a wifi near state profile using a wild card... I guess that will work too, I'll try doing that too..
Related
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
If you're not happy with that, Automate It should be able to do something for you. I have Automate It Pro set to turn off wifi & data at midnight, for example, to avoid the nuisance of emails pinging me in the middle of the night. And it switches wifi & sync on at 09:00 each day. Very useful tool, simpler than Tasker, so no tutorial from me...
There are a few Automate apps in the Play Store - it's this one:
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
This free version allows you 3 (as I recall) triggers - if you need more it's not too expensive to buy Pro.
I use RadioControl to handle that for me.
https://play.google.com/store/apps/details?id=com.nikhilparanjape.radiocontrol&hl=en
It requires root, and it's not perfect. But it works well enough for me.
[NG]Owner
Try smart radio xposed module.
pr0ndigy said:
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
Click to expand...
Click to collapse
Tasker does it pretty simply, but it needs root access..
Set up (2) tasks - I called mine Data Off & Data On. You will need to select "Net/Mobile Data" and then set "On" or "Off" respectively. Next set up your profile. Select "State/Net/Wifi Connected", and leave everything empty and save. This will trigger the profile when any wifi is connected. (Optionally, you could set it to your home or work wifi, etc). Your "task" will be "Data Off", then add an "exit task" for "Data On" (by long pressing the Data On and selecting "exit task").
dahawthorne said:
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
Click to expand...
Click to collapse
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Pkt_Lnt said:
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Click to expand...
Click to collapse
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
jbaumert said:
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
Click to expand...
Click to collapse
Do you have a ROM that has that option and it is enabled?
Pkt_Lnt said:
Do you have a ROM that has that option and it is enabled?
Click to expand...
Click to collapse
Running SIX ROM - Just checked, that option is disabled in the Dev Settings / connected to good wifi / and cellular is active...
¯\_(ツ)_/¯
Now it is a question for that rom dev.
Hi
Often on my galaxy A5 2016 rooted I see that a task is active but it doesn't really active the function on my phone...
For example: I've a task to turn wifi on when I'm at home (based on location). Often the task is active (is green on tasker) but wifi isn't turned really on! Why this??
copeppe said:
Hi
Often on my galaxy A5 2016 rooted I see that a task is active but it doesn't really active the function on my phone...
For example: I've a task to turn wifi on when I'm at home (based on location). Often the task is active (is green on tasker) but wifi isn't turned really on! Why this??
Click to expand...
Click to collapse
On my s8 I've had to turn on reliable alarms for when screen is of as I noticed that some profiles like turning Bluetooth on weren't working when the screen was off. Maybe that could help turning this on in the settings?
Sent from my SM-G950F using Tapatalk
mgdorbit said:
On my s8 I've had to turn on reliable alarms for when screen is of as I noticed that some profiles like turning Bluetooth on weren't working when the screen was off. Maybe that could help turning this on in the settings?
Sent from my SM-G950F using Tapatalk
Click to expand...
Click to collapse
Maybe... but can you explain me better what alarms I must turn on?
copeppe said:
Maybe... but can you explain me better what alarms I must turn on?
Click to expand...
Click to collapse
Go to preferences > monitor > Use reliable alarms. I have mine set for screen off
Location is not a reliable trigger (never was for me).
Try using variables. These are better.
For example.
I'm using 2 variables to CONFIRM I'm at home and trigger my home profile.
First... I use Cell near to verify the proximity and enable my WiFi. So my variable is set to "1".
Then... After my phone connects to my network I set another variable to "1".
When both variables are equal to "1" my home profile kicks in.
This way I do not rely on Location (and my power consumption is lower).
Sent from my LG-D855 powered by Aosp Extended and Tapatalk.
So the way tasker works is when a profile activates, the entry task runs, then when the profile deactivates the exit task runs.
If something interferes with the entry task, or if you have profiles that overlap (changing the same settings for instance) the profile will be active, but the desired actions may not be able to run.
However, when it comes to wifi on/off actions, you have to do a few things to ensure the actions can run.
1. Make sure you give yourself enough time to enable wifi before continuing.
Eg: 1. Turn on wifi
2. If connected to my home ssid do the following
This will never work because tasker enables the wifi and immediately goes to the next action, but you need at least 5 seconds (really 15) to connect, so it will never be connected when if statement is checked
2. Or say you want to disable wifi every time The wifi is disconnected from any ssid and whenever you're in range of your homer ssid another profile turns on wifi.
The following WILL NEVER WORK but will take a long time to realize the simplicity of why if not careful
If wifi=on and wifi is not connected
Disable wifi and do these things
The reason is the home profile will always enable wifi and for 15 seconds the disable WiFi profile will trigger because the wifi is on but not connected...so it'll disable WiFi.. which will... you get the idea.
P.s. if the profile is active then reliable alarms has nothing to do with why the actions didn't run. Tasker correctly activated the profile... something interfered elsewhere
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Do I link these profiles or run them all seperate?
This is what I have set up from the xml you sent me
Or like this?
Do these profiles supposed to turn WiFi off? As in, turning it off in settings too? I tried these and it don't work that way. I did change cell near as you suggested.
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Could you quote my post so I can get the notification for this o.p? Tyvm
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
---------- Post added at 12:34 PM ---------- Previous post was at 12:20 PM ----------
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
Yes use all 3 at same time, make sure your variables are getting set. The one profile sets wifilocation variable when your near your cell towers, then the second one will see that wifilocation is set and activate causing it to turn on wifi and wait for 20 sec and if its not connected will turn wifi off. you may need a profile that turns wifi off when screen is off or go into wifi settings on phone and set it to not stay on when screen is off. Also you may need to turn on cell workaround and/or use new cell api under taskers preference depending on the model of your phone. You may not need the If WiFi connected profile, I think I used that for another project.
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Honestly this is a complicated way of doing something very simple.
The most accurate and low battery way to accomplish this is to have 1 profile with a state context of "cell near" and set it to scan while you walk around your house for 5 min and then set it down and let it scan for another 10 min. (This ensues all available cell towers in your area are accounted for) and make tier entry task enable wifi. So when you're close to home, tasker will enable WiFi and Android will handle reconnecting.
In the exit task,Turn wifi off so whenever you leave your area WiFi will be deactivated and you are using nearly 0% battery to achieve it
loogielv said:
Honestly this is a complicated way of doing something very simple.
The most accurate and low battery way to accomplish this is to have 1 profile with a state context of "cell near" and set it to scan while you walk around your house for 5 min and then set it down and let it scan for another 10 min. (This ensues all available cell towers in your area are accounted for) and make tier entry task enable wifi. So when you're close to home, tasker will enable WiFi and Android will handle reconnecting.
In the exit task,Turn wifi off so whenever you leave your area WiFi will be deactivated and you are using nearly 0% battery to achieve it
Click to expand...
Click to collapse
Yeah. I have already used that task before. The cell near profile. I just want a profile that turns WiFi off completely when I'm not connected to any WiFi.
Tmobilefan906 said:
Yeah. I have already used that task before. The cell near profile. I just want a profile that turns WiFi off completely when I'm not connected to any WiFi.
Click to expand...
Click to collapse
How about a wait time, then afterwards switch wifi off if not connected?
HatchetEgg said:
How about a wait time, then afterwards switch wifi off if not connected?
Click to expand...
Click to collapse
Yes
Tmobilefan906 said:
Yes
Click to expand...
Click to collapse
Ok then the best thing to do is create a profile event context of WiFi disconnected and make the entry task merely set a variable %WIFITIMER to %TIMES+120
then create another profile with a time context and set if to activate on %WIFITIMER (which would be set for 120 seconds after the WiFi disconnected and make the entry task WiFi disable
Then create one more profile with an event context of WIFI CONNECTED and set the entry task to clear the Wi-Fi timer. This will ensure that if the Wi-Fi reconnects, the Wi-Fi disable profile won't be able to activate because the time will never be Null
The logic is: if the Wi-Fitimer is set then when the current time matches it, disable the Wi-Fi, but if it reconnects, the timer is disabled.
Edit
The benefits of these profiles is more than merely an elegant approach, but also the least battery impacting method to have Tasker wait until a certain time to do something. Using wait actions inside tasks might be one of the worst things for battery life
Is there a way that when I come into my home my wifi turns on automatically and turns data off in this app? I figured out how to turn wifi on with tasker but I want to know now if it can also turn data off when wifi connects. Galaxy s10+ so no root obv
orlans21 said:
Is there a way that when I come into my home my wifi turns on automatically and turns data off in this app? I figured out how to turn wifi on with tasker but I want to know now if it can also turn data off when wifi connects. Galaxy s10+ so no root obv
Click to expand...
Click to collapse
Best option is using auto input and Tasker.
Auto input is basically a Tasker plugin that creates a virtual touch on your screen without root.
Or else you can also do this using autoTools secure settings but you will need adb for that and it won't work after reboot
manan9999 said:
Best option is using auto input and Tasker.
Auto input is basically a Tasker plugin that creates a virtual touch on your screen without root.
Or else you can also do this using autoTools secure settings but you will need adb for that and it won't work after reboot
Click to expand...
Click to collapse
So just use auto input?
orlans21 said:
So just use auto input?
Click to expand...
Click to collapse
Buy auto input and set it up according to your need using Tasker
Post If help needed .
manan9999 said:
Buy auto input and set it up according to your need using Tasker
Post If help needed .
Click to expand...
Click to collapse
Ok. One thing maybe you can help me with. I've noticed that after setting up my wifi with tasker the wifi shuts off from time to time. I don't think it's signal strength because I'm either 3 or full bars. Then like a few seconds later tasker will turn it back on. I know its triggered from the cell tower but I have no idea.
orlans21 said:
Ok. One thing maybe you can help me with. I've noticed that after setting up my wifi with tasker the wifi shuts off from time to time. I don't think it's signal strength because I'm either 3 or full bars. Then like a few seconds later tasker will turn it back on. I know its triggered from the cell tower but I have no idea.
Click to expand...
Click to collapse
I don't experience the same.
It works just perfect for me.
Are you sure you are not doing something wrong?
Try mailing the developer
It could just be my router. It's in the basement and I'm 2 floors above
As for determining your proximity to your location, one good idea is to use two different sized or two location geo fences that you can cross reference against each other
My request is very simple:
I use WiFi tithering a lot while travelling. When I enter any known WiFi zone, I wish to turn tithering off and WiFi on, using Tasker.
I have created two profiles for this purpose:
1. Activates tithering when I leave a WiFi zone and loose WiFi connection. This profile works perfectly!
2. Disable tithering and turn WiFi on when I enter a known WiFi zone. This profile never triggers, but the associated tasks run do exactly what I want them to do when I run them manually.
The two actions linked to profile #2 are:
WiFi Tither Set Off
WiFi Set On
And, as I said - they perform exactly what they should - if run manually.
The profile that I use to trigger, is:
State Net, WiFi Near
I have not set any paramters such as SSID, MAC etc. Everything is left blank.
May assumption was that it would trigger on any WiFi zone that it could successfully recognise (log on to). But that does not seem to be the case. It never triggers.
But the profile does become active (turn green) every time I enter a known WiFi Zone. I believed this was a sign that it would trigger.
Any idea how to accomplish a working trigger the way I want?
Rgds
Viking
Oyvindo said:
My request is very simple:
I use WiFi tithering a lot while travelling. When I enter any known WiFi zone, I wish to turn tithering off and WiFi on, using Tasker.
I have created two profiles for this purpose:
1. Activates tithering when I leave a WiFi zone and loose WiFi connection. This profile works perfectly!
2. Disable tithering and turn WiFi on when I enter a known WiFi zone. This profile never triggers, but the associated tasks run do exactly what I want them to do when I run them manually.
The two actions linked to profile #2 are:
WiFi Tither Set Off
WiFi Set On
And, as I said - they perform exactly what they should - if run manually.
The profile that I use to trigger, is:
State Net, WiFi Near
I have not set any paramters such as SSID, MAC etc. Everything is left blank.
May assumption was that it would trigger on any WiFi zone that it could successfully recognise (log on to). But that does not seem to be the case. It never triggers.
But the profile does become active (turn green) every time I enter a known WiFi Zone. I believed this was a sign that it would trigger.
Any idea how to accomplish a working trigger the way I want?
Rgds
Viking
Click to expand...
Click to collapse
If I remember correctly Wifi near requires "Wifi Scanning" to be on, which is located under settings > security & location > location > advanced > scanning.