Hi all,
I've just started using Automagic and have a question regarding location based triggers.
Ideally, I'd like to create a flow that checks my location periodically to activate WiFi in three different areas (maybe more to come): at home, in the office and at a regular client's.
But since I can't find a condition like IF ... OR, IF ... ELSE or similar, I'm wondering how to achieve this?
If I just create 3 different flows my thoughts are that they would basically deactivate each other, since each flow would have a 'FALSE' state to disable WiFi based on a different location.
Any ideas or suggestions?
Best,
Chris
De-/activate WiFi in multiple locations
Moderator: Martin
Re: De-/activate WiFi in multiple locations
I'm using cell ID to activate and desactivate wifi. It's not very accurate but it use less battery and it's working well for me. I use these two to activate or desactivate other flows.
http://automagic4android.com/flow.php?i ... 4c053a92bd
http://automagic4android.com/flow.php?i ... 4c053a92bd
Re: De-/activate WiFi in multiple locations
Hi,
You can also combine multiple conditions in a flow to create more complex logic (AND, OR, XOR).
This post shows some examples: http://automagic4android.com/forum/view ... 3868#p3868
Regards,
Martin
You can also combine multiple conditions in a flow to create more complex logic (AND, OR, XOR).
This post shows some examples: http://automagic4android.com/forum/view ... 3868#p3868
Regards,
Martin
Re: De-/activate WiFi in multiple locations
Thanks, both ways looks good to me! Since there's a lot of space between all of my locations, saving battery sounds pretty neat - do you know a good app to easily read my cell ID? Or can it be done with regular services already present in android? I'm on 4.4 if that matters.
Re: De-/activate WiFi in multiple locations
You can use the Start/Stop buttons in trigger Phone Cell GSM or Phone Cell CDMA to collect the cell IDs your currently connected to. You can also use the similar named conditions to check for the cell ID. The triggers and conditions also make the cell IDs available to the executed flow in variables lac and cid (GSM) respectively cell_id (CDMA).
Re: De-/activate WiFi in multiple locations
Thanks Martin, that did the trick!
Re: De-/activate WiFi in multiple locations
For your info it took me about one week to save all the cell ID for my home. When you see that the trigger isn't fire go to the trigger and collect the new cell ID (start collect then stop). If your using also a condition you can select the text in the trigger then copy an past in the condition. Good luck!