Phone cell GSM with glob pattern *
Moderator: Martin
Phone cell GSM with glob pattern *
If I use the trigger "Phone cell GSM" with option "Connected" set and the glob pattern * in the CID field I would expect that the trigger fires each and every time the phone connects to any GSM cell, even if it only alternates between two cells.
Instead the trigger never fires. It only seems to work if there are "real" CIDs in the CID field.
Instead the trigger never fires. It only seems to work if there are "real" CIDs in the CID field.
Re: Phone cell GSM with glob pattern *
The cells listed in this trigger are used to define an area of interest. The trigger executes the flow once when you are connected to one of the listed cells but not when you switch between the cells in the list.
The same should be true when you enter a glob pattern. As long as you switch between cells matching the pattern, it will not execute the flow.
The same should be true when you enter a glob pattern. As long as you switch between cells matching the pattern, it will not execute the flow.
Re: Phone cell GSM with glob pattern *
Hmm, sounds somewhat logical, but is not what one would normally expected. Can you add an option to fire the trigger each time a change is detected, even if the listed cells still match?Martin wrote:The cells listed in this trigger are used to define an area of interest. The trigger executes the flow once when you are connected to one of the listed cells but not when you switch between the cells in the list.
The same should be true when you enter a glob pattern. As long as you switch between cells matching the pattern, it will not execute the flow.
I want to use this trigger to automatically turn on bluetooth when I'm not near my home or work. I could have it fired once when I enter these areas, but it won't fire when I leave since the pattern no longer matches.
Right now I use a periodic timer to "manually" execute the flow every minute. This works and updates a global "location" variable based on the cell ID to either "home", "work" or "unknown", but I guess it's using more battery than needed this way...
Re: Phone cell GSM with glob pattern *
Wouldn't it be possible to use the option Disconnected to detect when you leave home or work?
Re: Phone cell GSM with glob pattern *
Yes, I thought of this, too. But this won't help me if I am somewhere else (e.g. supermarket) and drive on. In this case no cells would be triggered and Bluetooth wouldn't be switched on automatically.Martin wrote:Wouldn't it be possible to use the option Disconnected to detect when you leave home or work?
-
- Posts: 18
- Joined: 13 Sep 2013 03:11
Re: Phone cell GSM with glob pattern *
I did what you are describing in the past with Llama but when I switched to AA, I started using location based instead of cell tower.
You could create a "moat" of known towers around your home and work but that will require you to physically travel around "building" it.
If there were a way to say connected to NOT these towers, that would do what you want.
You could create a "moat" of known towers around your home and work but that will require you to physically travel around "building" it.
If there were a way to say connected to NOT these towers, that would do what you want.
Re: Phone cell GSM with glob pattern *
That is exactly what I would like to do. Have the trigger fire whenever the connected cell changes and then execute some code to decide what to do.standalonescript wrote: If there were a way to say connected to NOT these towers, that would do what you want.
Re: Phone cell GSM with glob pattern *
Could you use your home and work wifi (disconect) to activate bluetooth?
Re: Phone cell GSM with glob pattern *
It would not work if I start somewhere else where I don't have WiFi, for example after a stop at the supermarket.pat2net wrote:Could you use your home and work wifi (disconect) to activate bluetooth?
What I want to do is actually quite simple:
- 1) when a CHANGE in cell towers is detected and Bluetooth is disconnected and I'm NOT within a predefined list of cells (e.g. home, work, girl friend) switch on bluetooth.
- 2) if not connected after one or two minutes switch off Bluetooth.
Part 2) is easy and works fine, but part 1) does not because the GSM cell trigger won't fire

-
- Posts: 18
- Joined: 13 Sep 2013 03:11
Re: Phone cell GSM with glob pattern *
Creating a "moat" is a viable workaround, it just requires some legwork.
Go create a new group of towers (perimeter of towers around your home [and work])
When you go from home to home-moat enable Bluetooth.
When you encounter home or work moat, disable Bluetooth.
You will probably need a control global variable.
Go create a new group of towers (perimeter of towers around your home [and work])
When you go from home to home-moat enable Bluetooth.
When you encounter home or work moat, disable Bluetooth.
You will probably need a control global variable.