Autolocation and multiple geofence monitoring in same profile

808 views
Skip to first unread message

kellan....@gmail.com

unread,
Aug 7, 2013, 9:09:49 AM8/7/13
to joao...@googlegroups.com
I have geofences set up around several grocery and department stores that I shop at frequently and when I enter them it sends a text message to my wife asking if she needs anything from that particular store.

Currently I have seperate profiles for each store but I would like to combine these into one profile that monitors all my store geofences. I have also tried using the %algeofence variable so that it auto populates the text message with the store that I'm at but the text "%algeofence" shows up instead of the geofence that was entered.

I guess my questions are how do I list multiple geofences in the manual geofence name box and how to get the %algeofence variable to work correctly

João Dias

unread,
Aug 8, 2013, 8:01:54 AM8/8/13
to joao...@googlegroups.com
To use multiple geofences in one profile just use the manual name field and write something that all those Geofences have in their name. For instance, if all those geofences have the word "Store" in there, you could write Store in the manual name field and it would match them all. Or you could add something to their name that identifies all stores like [Store] before their actual name


About the %algeofence variable not being filled, I can't reproduce that myself... Can you try this manual name method and see if it helps?





--
You received this message because you are subscribed to the Google Groups "joaomgcd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joaomgcd+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Message has been deleted

Marco Rossi

unread,
Aug 26, 2013, 3:39:49 AM8/26/13
to joao...@googlegroups.com, kellan....@gmail.com
At first I also couldn't get the %algeofence variable to work through tasker. It seems to have a limited time that it does work for.
Eg, now I am in a geofence, but Flashing %algeofence only shows "%algeofence"
Whilst if I have a geofence as a context for a profile, if I Flash %algeofence at the start of the Task, it works when entering the geofence. So I will try to use a Variable Set %MYLOC to %algeofence, so it is stored in a separate variable.

From this, I am setting up a profile to keep track of my location. (I have about 30 geofences).

Location: Context: Inside ".+" Inverted (all GeoFences), Entry: Periodically will update my location from a Google HTTP Get api if profile is active, Exit: Variable set (%MYLOC to %algeofence), AutoNotification(You are at %MYLOC)

EDIT: I saw in another reply joaomgcd mentioned the ".+" as a manual regex, (I tested and it works for Inside all geofences), i will test this with the Invert checked for effectively Outside all geofences. (Will have to wait to leave home to see if it works)


Marco R

unread,
Aug 26, 2013, 8:19:49 PM8/26/13
to joao...@googlegroups.com, kellan....@gmail.com
The Inverted Inside (.+) geofences seems to work outside all geofences, did experience it drop out but i think it was when i had no signal. Mostly seems fine.
Still having trouble with the %algeofences which does not seem to be consistent. Sometimes it shows and other times it does not, especially when a geofence drops out and then reconnects, which seems to happen even with a large radius. 

Marco R

unread,
Aug 27, 2013, 8:02:42 PM8/27/13
to joao...@googlegroups.com, kellan....@gmail.com
The %algeofence does not work when used in an Exit Task, but does work during an Entry Task. I have [Variable Set %MYLOC to %algeofence *if %algeofence Doesnt Match Regex algeofence] which works great on many geofences.

Joaomgcd is there a way for you to incorporate a variable to retrieve which Geofences are active (you are still in), similar to Taskers Profiles Active variable?

João Dias

unread,
Aug 28, 2013, 6:30:42 AM8/28/13
to joao...@googlegroups.com
Not right now, but I'll add to my todo list :)


Marco R

unread,
Aug 28, 2013, 8:56:38 PM8/28/13
to joao...@googlegroups.com
Sounds Good. Might %algeofence being lowercase not make it a global variable? Would %ALGEOFENCE make a difference in the code?

I bought your AutoLocation, Notification, Shortcut and they are all great. Keep up the good work :)
Cheers,
Marco

João Dias

unread,
Aug 29, 2013, 5:19:13 AM8/29/13
to joao...@googlegroups.com
You can create an %ALGEOFENCE variable yourself if you want. just assign %algeofence to %ALGEOFENCE, and the global variable will be updated with the new values

bba...@gmail.com

unread,
Oct 7, 2013, 10:44:44 PM10/7/13
to joao...@googlegroups.com
On Thursday, August 29, 2013 7:19:13 PM UTC+10, joaomgcd wrote:
> You can create an %ALGEOFENCE variable yourself if you want. just assign %algeofence to %ALGEOFENCE, and the global variable will be updated with the new values

I'm also having trouble getting this to work. Even a basic task, with only the AL geofence entry as the state, and a 'flash %algeofence' as the action, doesn't substitute the value - I just get '%algeofence' flashed, and a variable assignment just assigns '%algeofence' as the value.

I tried a '.+' regexp match as well as selecting the geofence manually, and it still didn't work. The condition is hit, and the task runs, but the variable doesn't seem to be set at all (or its not making it into tasker)

Bradley

João Dias

unread,
Oct 8, 2013, 5:23:49 AM10/8/13
to joao...@googlegroups.com
bbaetz, what version of AutoLocation are you running? I just tried it myself and it worked.... weird.


Bradley Baetz

unread,
Oct 8, 2013, 5:52:41 AM10/8/13
to joao...@googlegroups.com

The one you mailed me last night to fix the trial issue.

The profile I'm using is:

Profile: Flash Geolocation (41)
State: AutoLocation Geofences [ Configuration:Geofence Name: .+
Use Regex: true
Status: Inside ]
Enter: Anon (42)
A1: Flash [ Text:Entered %algeofence Long:On ]

Exit: Anon (43)
A1: Flash [ Text:Left %algeofence Long:On ]

Bradley

You received this message because you are subscribed to a topic in the Google Groups "joaomgcd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joaomgcd/zFwvk93aVoY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to joaomgcd+u...@googlegroups.com.

João Dias

unread,
Oct 8, 2013, 6:11:57 AM10/8/13
to joao...@googlegroups.com
The exit task won't work, but the entry task should be working. Isn't it?

Bradley Baetz

unread,
Oct 8, 2013, 6:25:01 AM10/8/13
to joao...@googlegroups.com
If I 'disable tasker' from the menu, then re-enable tasker, it works just that once. If I just disable/enable the task (existing tasker each time), then the substitution doesn't happen.

If I stop/start the geofence monitor, then it also does the substitution, but again just the once.

Even that only seems to fix 'simple' contexts - if I add a 'wifi near' context to the autolocation, then disable/enable tasker doesn't help.

Maybe this is a tasker bug?

Bradley

Bradley Baetz

unread,
Oct 8, 2013, 6:42:26 AM10/8/13
to joao...@googlegroups.com
Also tried tasker 4.2b8 - no difference.

Bradley

João Dias

unread,
Oct 8, 2013, 6:45:13 AM10/8/13
to joao...@googlegroups.com
Just tried that situation you mentioned: " If I just disable/enable the task (existing tasker each time), then the substitution doesn't happen." and that doesn't work for me either. It seems like a Tasker bug to me. I'll check it out with the Tasker developer, thanks!
Reply all
Reply to author
Forward
0 new messages