Why doesn't my GPS flow work?

Post your questions and help other users.

Moderator: Martin

Post Reply
rialeral
Posts: 14
Joined: 19 Aug 2013 06:21

Why doesn't my GPS flow work?

Post by rialeral » 05 May 2016 09:40

My Cell ID flow has become unusable with my provider. It disconnects/reconnects to towers every 30th seconds sometimes, no matter how few/many cell IDs I use.

Anyway, how do I get this GPS flow to work properly (GPS coordinates aren't the actual ones)? I think it only works when entering. It's kinda hard to test.
GPS flow: https://drive.google.com/file/d/0BxIAJY ... sp=sharing

What's this supposed to mean?
"Inside
True when the location is inside. This is also true when the location has been inside before and therefore is possibly true for every location provided by a trigger."

I think "Ignore..." should be enabled for both Leaving/Entering conditions, but I don't think that' why it doesn't work when leaving. I think I've tested witht hat.

Offtopic: Why does this forum have "upload attachment" if it's not working anyway? "The extension is not allowed."

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Why doesn't my GPS flow work?

Post by Bushmills » 09 May 2016 16:53

To avoid repeated execution of multiple "Enter" events into the same geofence, I store name of most recently entered geofence in a global variable. When a trigger occurs, I can test against this variable whether this geofence has already been entered before.
You may have to clear that variable upon leaving the geofence, otherwise reentering without having entered another geofence will not re-execute the enter action.
As bonus, geofence name will be available to any other flow when needed.

rialeral
Posts: 14
Joined: 19 Aug 2013 06:21

Re: Why doesn't my GPS flow work?

Post by rialeral » 19 May 2016 18:34

Bushmills, could you post your flow?

Anyway, could someone say why the GPS slow doesn't work?

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Why doesn't my GPS flow work?

Post by Bushmills » 19 May 2016 18:57

The flows relevant for my suggestion are attached to this post, but you won't be able to use them as they are, for reasons of "environmental dependency". Looking at them you will see that there are more flows needed, which are mostly very specific to my setup. Several actions will mean nothing to you, for example those relating to "Serafena" (Service Request Architecture For Easy Network Administration, https://github.com/Bushmills/serafena). Still, the check against already entered geofence should be clear, so those flows may be useful nevertheless: http://automagic4android.com/flow.php?i ... caa73c089a

Post Reply