Store GSM cells at Wi-Fi
Posted: 24 Jan 2015 09:51
Here my group of flows
It stores a CID of GSM cell in a list if phone connected to any Wi-Fi network
You can use it in your flows if want enable wi-fi atomatically only where it avalible
Flows:
Cell at Wi-Fi - main flow, stores and removes cell's CID from list according to connected wi-fi or not.
Check enable - disables main flow when Wi-Fi is set to off. Just to reduce battery usage
Clear unused pending - it removes old unfinished records
Global variables:
global_current_cid - current cell's CID
global_wifi_cells - list of cell's CID where Wi-Fi avalible
global_wifi_name_cells - map with wi-fi name associated with cell's CID
global_wifi_cells_delete_pending - store how many time (x10s) Wi-Fi was unavalible, delete when reach 160s
global_wifi_cells_add_pending - store how many time (x10s) Wi-Fi was avalible, delete when reach 70s
Install:
Just import flows
Note:
I have to use trigger "Phone Cell GSM: Disconnected to CIDs { global_current_cid }" because it is the only way to trigger on every cell change.
There is an "WiFi Connected" condition in main flow - it is black list for Wi-Fi names. You can add there your mobile Wi-Fi names, like notebook hotspot, other Android WiFi hotspot or mobile Wi-Fi modem
Last version: http://automagic4android.com/forum/view ... 490#p10490
It stores a CID of GSM cell in a list if phone connected to any Wi-Fi network
You can use it in your flows if want enable wi-fi atomatically only where it avalible
Flows:
Cell at Wi-Fi - main flow, stores and removes cell's CID from list according to connected wi-fi or not.
Check enable - disables main flow when Wi-Fi is set to off. Just to reduce battery usage
Clear unused pending - it removes old unfinished records
Global variables:
global_current_cid - current cell's CID
global_wifi_cells - list of cell's CID where Wi-Fi avalible
global_wifi_name_cells - map with wi-fi name associated with cell's CID
global_wifi_cells_delete_pending - store how many time (x10s) Wi-Fi was unavalible, delete when reach 160s
global_wifi_cells_add_pending - store how many time (x10s) Wi-Fi was avalible, delete when reach 70s
Install:
Just import flows
Note:
I have to use trigger "Phone Cell GSM: Disconnected to CIDs { global_current_cid }" because it is the only way to trigger on every cell change.
There is an "WiFi Connected" condition in main flow - it is black list for Wi-Fi names. You can add there your mobile Wi-Fi names, like notebook hotspot, other Android WiFi hotspot or mobile Wi-Fi modem
Last version: http://automagic4android.com/forum/view ... 490#p10490