Page 1 of 1

Android GeoFence Application

Posted: Sun Sep 27, 2015 2:11 am
by kgschlosser
Me and a fellow from germany have been working on an application for Android that will allow geofencing and will send an event with payload to EventGhost. It is almost complete. when done I will post more information on it.

GeoFencing for those of you that don't know is the ability to set a virtual fence around a location.
Example: If you have to leave the house in a hurry and want to have EventGhost shut down all the lights. you would set a perimeter around your homes location with a radius of say 500 feet. and when you leave or enter that perimeter an event will be triggered inside eventghost. this is all done automatically. so there is no need to pick up your phone or device to press a button to turn the lights off or on even.


the Event will contain the name of the zone (user changeable) that has been triggered as the program allows for multiple zones on a single device as well as if you are leaving or entering the zone.

the payload will include in a dictionary datatype the zone name, the transition (entering or leaving) the time and date(time is useful if turning on and off lights so you will be able to do it based on what time it is) and android device id (unique ID for each device) I don't know yet if we will add the option to input a nice user friendly name for the device just yet. As well as the latitude and longitude of the zone that has been triggered


if anyone has any suggestions please let me know.

K

Re: Android GeoFence Application

Posted: Fri Oct 02, 2015 1:19 pm
by Phil
Hi
I already have this function using tasker and autolocation apps which can send whatever information back to my eventghost at home with whatever information I need.
What would you look to do more than this?

Phil

Re: Android GeoFence Application

Posted: Thu Oct 08, 2015 1:23 am
by kgschlosser
Simplicity

Tasker is a very Involved application. Designed to do a large variety of things.

This is a specific app with a single function. and a small memory footprint on the device. Tasker is a great app. but very intimidating to your average person. This is all point and click kinda setup.

just need to know your server address and port and what you want as a password. map functions to set up the fences and exactly what data you want sent over in a payload if any at all.

K

Re: Android GeoFence Application

Posted: Thu Oct 08, 2015 1:23 am
by kgschlosser
and it's FREE

K

Re: Android GeoFence Application

Posted: Fri Oct 09, 2015 5:08 am
by kgschlosser
Update.


working through some google location services BS

if anyone knows a solution it will finalize this project.


Problem.....


Google Location Services when polled by default will always save battery life.... menaning that it won't poll GPS unless asked to.


BUT.... when asked to multiple times it will kill the service that asks for GPS data to save battery life.

Brain child of an Egg Head I guess....


now. I know i can have a service that creates a service that will do the polling and if the polling service gets killed the creating service will recreate the service that polls google location services.


I think my brain farted and crapped at the same time when typing that.....


but we get the point. it's dumb on a fantastical level


any solutions other than the above mentioned??

K

Re: Android GeoFence Application

Posted: Fri Oct 09, 2015 10:18 am
by Pako
I have zero knowledge about this issue.
However - if everything you write is true - your solution sounds like the only possible.

Pako

Re: Android GeoFence Application

Posted: Sat Oct 10, 2015 2:15 am
by kgschlosser
Found a way using an Alarm feature of android.

working out the details on it...


:-D