BT module (Package of flows)

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

BT module (Package of flows)

Post by TheBrain1984 » 22 Jan 2015 18:09

Like the already published WiFi-module I did the same for Bluetooth. So after importing the flows and the widget you need to execute the init flow. It initialize the vars global_low, global_set_bt and global_lock_bt. After that you can put the widget on your homescreen. By tapping it, it changes if you have control over the switch of Bluetooth or Automagic. If the indicator is green Automagic have it, is it red you have it. The only thing is that you have to replace all your actions where you switch on or off the Bluetooth by a script-action where you set the var global_set_bt to 1 for on or to 0 for off.
A known issue is that if "officially" Automagic has control and you use manually the default device switch, it can be that the module doesn't work correctly because the module won't switch off Bluetooth, if it already "thinks" it is switched off. If this could be a normal case for you, you can add a action that executes the flow "Modul: BT copy" after every script-flow where you touch the var global_set_bt.
Enjoy.

Requirements:
Just run the init flow first

http://automagic4android.com/flow.php?i ... c0a8b6d422

garet
Posts: 13
Joined: 20 Jan 2015 12:48

Re: BT module (Package of flows)

Post by garet » 22 Jan 2015 19:48

The package is working exactly as planned.
Great!

Post Reply