Location Extension/ ClockIn-ClockOff app

Hi all,

New guy here :slight_smile: ; I’m looking into creating an app that replaces the keycards for ClockIn and ClockOff.
For example when I get to work ( specific location), my phone automatically detects that and clocks me in…also when I leave the location I’ll be clocked off; and all this information is stored and sent to my manager.
Can this be done? any input is appreciated.

Thanks in advance

I managed to set up the location feature; now I would like to move forward and compare the user location with the office location. And if the same than the user is clocked In.
Anyone please…

do a search for ring fence , see also these threads in the App Inventor forum
https://groups.google.com/forum/#!searchin/mitappinventortest/ring$20fence|sort:date
Taifun

Thank you so much for this piece of information, exactly what I’m looking for.
I tried to apply everything I understood and got the below code which doesn’t seem to be working- please help someone please…


Thanks in advance

I would really appreciate if someone would take a look over the code above and provide assistance/guidance.

thanks in advance

After having read the info you provided-thanks-, I got to this point:

http://community.thunkable.com/uploads/thunkable1/original/3X/b/7/b7ee7123b62d29f98f68648b36b8c26648357716.png

still, the code isn’t working. where did I go wrong?

it seems to be, you are using Thunkable X…
I changed the category for you…

Taifun

I don’t quit follow the goal of the if/else. You want to see
if ( lat and long are at the office )
do:
set atTheOffice to true
navigate to screen 2
else:
set atTheOffice to false
and just sit idle

Right now your logic is only going to set “atTheOffice” to true if you are in the lat long specified, or set it to false if you are not. you will never get to the “Navigate to screen 2” command. (unless something happens on another screen that can set "atTheOffice to true.

the most straight forward way would have one huge if line but would look like:
if ( (lat > 46.760082 and lat < 46… ) and (long > 23… and long < 23…) )
do {
set atTheOffice to true
navigate to screen2
}
else
set atTheOffice to false

its usually a good idea to do an error condition:

if error
do: set labelx text to error
elseif ( (lat > 46.760082 and lat < 46… ) and (long > 23… and long < 23…) )
do {
set atTheOffice to true
navigate to screen2
}
else
set atTheOffice to false