Automatic selection of Wifi or 3G using the app called Llama - Android Apps and Games

Hi everybody,
I am using Llama for several things on my i9100g. The first one is to control sound profile at work and at home, this is straightforward. The second thing is to control when the Wifi or the 3G signal should be on. I would like to have some input in order to optimize the process, since I believe is kind of messy.
Basically there are three principles that I want to use.
a. When I am physically at home I want to use only my Wifi, I have no flat 3G plan plus I believe the Wifi consumes lets battery that the 3G connection.
b. When I am out, of course I want to turn off Wifi and turn on the 3G.
c. Always optimize my battery consumption. So far with low use, I have two full days without charging the battery again.
For these reasons, I have created the following events, variable and zones.
Zones
Home: This zone covers my house and roughly 4 blocks around, including restaurants and a friend place.
Llama Variables
Wifi: when ‘Wifi’ is Disabled the Wifi signal is off and vice versa.
Mobile data: when ‘Mobile data’ is Disabled the 3G is off and vice versa.
Force: It a kind of flag variable that I have created to “force” Llama to check for a Wifi signal after some period of time.
Events
• Wifi On - Home:
Between 06:30 and 22:59 at Home when 'Wifi' has a value of 'Disable' when 'Force has a value of 'Disable' - disable mobile data, set Llama variable 'Mobile Data' to 'Disable' and enable Wifi
Note on this event. I like to turn off all signals (3G and Wifi) after 11 pm at home, since I am probably sleeping.
• Force On: When ‘Force’ has a value of ‘Enable’ – delay for 30 min and then set Llama variable ‘Force’ to ‘Disable’
• No Wifi Available: When your phone disconnects from <Any Wifi network> - delay for 1 minute and then disable Wifi and set Llama variable ‘Wifi’ to ‘Disable’. And set Llama variable ‘Force’ to ‘Disable’
Note on this event. It will fire the event after one minute if all conditions are still valid. I use this extra setting to avoid turning off the Wifi, when the signal just goes away for few seconds.
• Force Mobile Data – On: At home between 06:30 and 22:59 when your phone disconnects from <Any Wifi network> when ‘Force has a value of ‘Disable’ – delay for 5 minutes and then enable mobile data, set Llama variable ‘Mobile Data’ to Enable’, disable Wifi and set Llama variable ‘Force’ to ‘Enable’ every 1 minute.
Note on this event. I will repeat this event as long as all the conditions hold. Please see note 1 at the end of the thread for an extra explanation why I need the repetition.
• Mobile Data Away – On: Upon leaving home enable mobile data, set Llama variable ‘Mobile Data’ to ‘Enable’ disable Wifi and set Llama variable ‘Wifi’ to ‘Disable’
• Evening: Between 23:00 and 6:29 at Home disable all signals.
A general explanation of the events.
I am sometimes in a restaurant in my Home zone, but not physically at home. Therefore, the “Wifi Home – On” will try to connect to the wireless network at home, but of course is not available. Therefore, the “No Wifi Available” will fire after one minute, disabling Wifi. At this stage my phone has neither Wifi nor 3G connected.
For roughly 5 minutes after the firing “No Wifi Available”, the “Force Mobile Data” event turn on the 3G if all conditions are met. At this moment, the ‘Force’ Llama variable will be ‘Enable’.
After 30 min, the ‘Force’ variable is ‘Disable’ again, this is my way to tell Llama, please check again if my home Wifi network is available, if not fire again “No Wifi Available” and later “Force Mobile Data” and one more time the cycle of 30 min is on.
The “Mobile Data away-on” is an evet that kind of overright all the other process. When I am not at Home, is pointless to check for my home Wifi conection,so I tell Llama to turn on the Mobile data regardless of time (maybe I am in a party).
I hope I have explained more of less the process.
Note 1. The repetition of 1 minute is because on my way home, I have to walk few blacks on my Home zone, and I want Llama to always check (every 1 minute) if I have arrived at home or not. If all the conditions in ”Force Mobile Data” are true, means I have not arrived yet in my house, if not, Llama will fire “Wifi On”.
Cheers

Related

[REQ] BT/WiFi interval service - Will Pay

I would be willing to pay for the following app/service.
It would allow for an interval to be set from 10 minutes to 30 minutes (or whatever). During that time it does the following...
Let me explain this by just focusing on WiFi, as Bluetooth functionality would be the same functionality-wise.
At the ste interval time, the service will check the status of WiFi.
- If Off, it turns it on long enough to see if any networks autoconnect
- If network connects, then WiFi stays on as long as netowrk connection exists
- If On, it checks to see if network is connected
- If network not connected, it turns WiFi off
This way a user can save battery life by not having these services on all the time, nor shutting them on/off manually and having to remember to do it when getting in their car or office, etc..
NOTE: When the interval is hit and WiFi or BT needs to be turned on, it needs to wait a minute (or whatever time is necessary - this might be user configurable to account for differences between phones) to see if connects.
Can anyone work on such a project? I am sure you could put this in the market and have many people pay for it. It would allow for incredible battery saving and allowing for automated WiFi/BT switching.
Ceger

[Q] Tasker Help - Wifi Near

I have create a profile Home
State > Wifi Near > MyWifi
Tasks > Entry - Wifi On, Exit - Wifi Off
When I enter my house it doesn't work I have to manually activate wifi, then I can see the profile is active. When I leave the house it switches off the wifi as programmed.
What am I doing wrong should the wifi be in sleep mode?
Cheers
When you turn of wifi it can't scan for wifi near.Try using cell near, then it scans for celltower.Or location
thanks i'll try that
Try Cell Near instead
Are you using the scan function in Cell Near? It should retrieve the ID of the closest cell tower with a value following a slash:
CDMA: 99999 / 8
Try changing the value to a wild card:
CDMA: 99999 / *
I have been using the following to turn WIFI on and off:
Add a new Profile and select State. Then select Cell Near and click the Scan button to find which Cell Towers are near your current location. Check the Invert button. Add a Task to for WIFI and set to Off.
Duplicate this profile and uncheck Invert and set WIFI to On.
Confirm Cell Towers
You can confirm the Cell Tower ID by downloading one of these free Apps:
Antennas
Cell Tower Locator
You will want to use the BSID number listed in one of these Apps in Tasker for Cell Near.

[Q] wifi/data auto toggle?

This may be a dumb question but is there a way to set up wifi and data to automatically toggle? As in, when wifi is available it uses wifi, but when its not it automatically switches to 3g/4g? When im home i like to use wifi, but then when I leave I lose it and usually forget to switch over to data, so I get no emails or updates on anything until I look at my phone.
Option 1: Leave wifi and data on all the time.
When a trusted wifi network is available and your phone is connected, your phone will not use data (you will see the data indicator automatically disappear even though it is enabled). When you are no longer connected to wifi, your phone will automatically bring the data connection back.
Exception: using apps (usually Verizon-specific) that require a mobile data connection will bring the 3g/4g radio out of dormancy.
Pro: automatic switching, no need for additional apps.
Con: leaving wifi on takes its toll on battery life.
Option 2: Download/Install Llama from the Market
After you teach the program what cell towers are where, you can define criterion (ie you physically leave or enter a defined area, a certain time, etc) to carry out specific actions, including changing volume, display brightness, toggling data connection, wifi connection, bluetooth, gps, etc.
Pro: automatic switching of most anything imaginable, saves battery life compared to leaving wifi on
Con: additional app running in background, occasional instances of bugs
cnoevl21 said:
This may be a dumb question but is there a way to set up wifi and data to automatically toggle? As in, when wifi is available it uses wifi, but when its not it automatically switches to 3g/4g? When im home i like to use wifi, but then when I leave I lose it and usually forget to switch over to data, so I get no emails or updates on anything until I look at my phone.
Click to expand...
Click to collapse
wi-fi matic is the app you want, it auto toggles wifi on when you are on the same cell tower than is near your home, as soon as your cellular switches to your home cell towers it toggles wifi on, and when it's away from home cell towers it toggles wifi off, you can use it for multiple wifi networks as well, i travel for work so i dont have a work wifi but u could have it auto toggle on at work or home, its also extremely easy to use, far easier than any tasker program.

[Q] Help: Tasker profile to turn on/off mobile data

Situation: I want Tasker to turn on 3G/4G when certain apps are launched, and then restore the phone to the previous state before the app was launched. For example, if 3G/4G was already on, then it should leave it on. If it was off, then turn 3G/4G off.
My tasker profile:
CONDITION: On App launch (Chrome, Maps, etc)
EXECUTE:
Set Variable %WIMAXprior to 0 if %WIMAX is NOT SET ... (assigns value of 0 if 3G/4G is turned off)
Set Variable %WIMAXprior to 1 if %WIMAX is SET ... (assigns value of 1 if 3G/4G is turned on)
Mobile Data ON
EXIT ACTION:
Set Mobile Data OFF if %WIMAXprior = 0
Set Mobile Data ON if %WIMAXprior = 1
Unfortunately, I can't get it to work. After quite a bit of testing, I think the problem is that Tasker is unable to read the Wimax status. As a debug feature, I asked Tasker to say aloud the value of the variable %WIMAXprior and it reads "0", whether or not 3G/4G was enabled before the task was launched.
Does anyone have any ideas?

[Q] Stupid wifi scanning?

I just bought an S6 edge, UK variant, and all I need to do is to have wifi on (I'm at home) but NOT have it continually scanning for other networks.
There doesn't seem to be an option for this in the wifi - more section in settings. Am I missing something?
Just to recap, I need:
Wifi: on
Scan: off
Is this possible?
Unfourtuanly there is only 2 viable options.
Allow searching all the time
Allow searching when Wifi is on (but not connected)
So best bet, is download Tasker, set it to disable wifi when disconnecting and set it to turn wifi on when arriving at home (Cell tower scan can do that)
If you are rooted, you can go to /system/build.prop and change this line
Code:
wifi.supplicant_scan_interval=XXX
where XXX=wifi scan interval in seconds. I don't think it can be completely disabled, but for example you could change XXX to 99999999 seconds, which is 1666666.65 minutes, which is 27777.78 hours, which is 1157.41 days.

Categories

Resources