Page 1 of 1

Location Variable

PostPosted: Mon May 27, 2013 10:47 am
by andyf0
Hi Wes,

First, I'd like to be able to edit the location variable name please.
Second, your popup states the variable will be 1 when in-region and 0 when outside region. My iPhone variable is showing 2 for in-region and 0 for outside region. Also, setting the initial value might not be a good idea .. initial value is set to 2 because I set it up in-region. What if there's a power fail while outside region, the variable would be wrong. I assume the variable only changes on an in/out region state change.

Edit: Driving around the variable goes to 0 out of region and 1 in region. Initial value is still set to 2.

I think the 100 meters leaving region is about right but I have to be pulling into my driveway before it registers in-region.

Re: Location Variable

PostPosted: Mon May 27, 2013 1:43 pm
by AdminWes
Hi Andy,

This is done on purpose.

The initial value is set to a 2. MobiLinc doesn't assume it's in or out of a region until explicitly told by iOS. Then MobiLinc will set the variable to a 1 or a 0 from there on out.

If there's a power failure and the ISY reboots, the value is set to a 2. Again, we can't assume in or out of a region, so we set to a value outside of our range (2) and wait to get the boundary crossing notification again to set it correctly to a 1 or a 0.

Since programs trip on the value changing (not just setting the same value over again) we have to start with something other than 1 or a 0 to get your programs to fire initially.

The 100 meters is a guide for iOS to follow. It not NOT GPS accurate. Please read my notes on this on our site: http://mobilinc.com/geofence/

Understood about variable name editing. You can edit this through the ISY's Admin Console. As long as you don't delete it, you can rename it freely.

Wes

Re: Location Variable

PostPosted: Mon May 27, 2013 2:32 pm
by andyf0
Ah! OK then. Makes senses.