webCoRE mobile app - iOS Source Code


#1

Is there any way to get a hold of the iOS source code?

I have tried via multiple forums to get help correcting the false alarms both for the DH and the mobile app, unfortunately with to no avail :pensive: I have made modifications to the DH and things are better. I am still having issues with the geo fence too big on arrival. Of which there are a plenty of other people having issue with the false arrivingAt/departingFrom location triggers.

I would like to experiment with removing or altering the geo fence restriction of the departure circle needing to be 200M larger than the arrival. I truly believe that it will help with the issues and will test it on my own.


#2

Iā€™m confused. If you want to adjust the geo-fence, why do you need the source code? You can just do that in the app.


#3

There are minimum radius sizesā€¦ and minimum differences between radius sizes.


#4

Because there is a limitation that the Departure geo fence has to be 200M larger than the Arrival.


#5

But isnā€™t that what you said you want to do?

Iā€™m confused. Isnā€™t that just the minimum @Robin ? You could make it larger, correct?


#6

No, there is a limitation where there has to be a 200M difference. That is just not feasible for me where I live and drive home.

What happens is I cross the edge of the geofence and it causes my pistons to cancel because I get arrivingAt immediately followed by a departingFrom in less than a second. I have altered the DH to only accept updates when the horizontalAccuracy is very high, say 10M, but it wonā€™t filter out the crossing of the geo fences. The only thing I have left is to actually get the geofence smaller.


#7

The restriction is that the departure radius needs to be a minimum of 200m larger than the arrival radius.

He wants to reduce that minimum so the two radiuses can be closer together.


#8

Exactly.


#9

Waitā€¦ you want to get them closer together? Wouldnā€™t that cause more false departures than it being larger? I mean, logically, if they departure geofence is smaller, you would ā€œleaveā€ more often, right? The whole purpose of having the departure geofence larger than the arrival is to prevent false triggers.


#10

When I say, ā€œsmaller,ā€ I just want to reduce the 200M difference to say 100M or 50M. I donā€™t want to make them the same size.

This is why.


#11

I still donā€™t understand how making the departure zone smalerl will reduce the number of false triggers. The reason youā€™re getting false arrivals is because itā€™s first detecting that you left. Right?


#12

Heā€™s driving past homeā€¦ scraping the edge of his outer geo-Fenceā€¦ which triggers arriving followed immediately by departure.

So he wants a smalller outer geofence.


#13

@kxavier_23

Going back to your original post requesting the app source code.

My understanding is that the mobile app is not much more than a web wrapper with the ability to report location to webCoRE.

I believe the geofence size is set by the dashboard codeā€¦ not the mobile app.

The dashboard code is in @ady624ā€™s GitHub repo but youā€™d need to figure out how to run it on your own servers / web address.


#14

Iā€™m sorry, Iā€™m still not understanding. The outer ring is the departure radius. So, if youā€™re clipping that but youā€™re already ā€œnot presentā€ that shouldnā€™t be a problem. I was able to go in and make my arrival zone as small as 50m. You need to get smaller than that?


#15

@kxavier_23

I think this is the relevant part of the dashboard JS:

if ($scope.designer.inner + 200 >= $scope.designer.outer) {
	        $scope.designer.outer = $scope.designer.inner + 200;
	    }

Arrival/departure if/then or case statement?
#16

When entering the outer ring it triggers ā€˜arriving at placeā€™.

When entering the inner ring it triggers ā€˜current placeā€™

So if he wants an action for arriving at place, not current place, the outer ring needs to be smaller to avoid drive by false alarms.


#17

Then it seems you would want to have the trigger be current place not arriving at place. If you make the outer ring smaller, you are going to get false departures. When my phone automatically turns off GPS, since it canā€™t run it 24/7, I frequently jump into my neighbors houseā€¦so I have to set up geofences accordingly.

And if youā€™re in such an area that it needs to be that accurate (Iā€™m thinking large city) maybe you want to use a virtual presence center tied to your wifi or something rather than GPS.


#19

Some people like to use arriving at place so their garage door is open by the time they actually pull onto the drive.

I donā€™t know the OPā€™s use case so using current place may work for himā€¦ but the fact he has been tweaking the presence DTH tells me he knows those options already.


#20

Possiblyā€¦but I donā€™t know if I would assume that right off the bat. Plus, how long does a garage door take to open? 10 seconds? make your home location a tiny bit bigger and voila, it will open earlier. I dunno, just seems like there are easier ways to fix the problem he has than tweeking code.


#21

I was using the Garage Door as an exampleā€¦ might be to open a driveway gate or turn on a driveway light.

Also, for many users, particularly those in a built up area, the inner 50m is too large as well.