Car Locator And Park Timer

What this tasker does is when you get out of your car Tasker can timestamps what time you leave and also your location; when you want to find the car you push a button and the nav opens taking you back to your car.
The only thing is you need a bluetooth or hands free connection
Profile "Car Set"
Condition bluetooth with the name "Million" connected (Million is the name of my car stereo)
Actions on condition connected
1 Secure Settings "Pattern Lock Disabled"
2 Set wallpaper (browse to your image you want to use in the car)
3 Start your music player if you want to
4 Notification Popup "Bluetooth Connected"

ACTIONS ON CONDITION EXIT
1 Set variable %PARKEDTIME to %TIME
2 Set Minimalistic Text variable 'parkedtime' to %PARKEDTIME see below for more info
3 Clear variable %PARKED (which will hold the car's parked location)
4 Get GPS location with 240 second timeout
5 Set variable %PARKED to %LOC (GPS location)
6 Set variable %PARKED to %LOCN (Network location) If %PARKED !Set (i.e. GPS did not get a fix)
7 Popup text "bluetooth disconnected"

TASK-FIND CAR
New task setup called "Go Car" give it an icon like say a house
choose task "App"
choose open map
Mode Navigate To
Address %PARKED
Now save it
now activate a widget on your phone and choose "task" and task "Go Car"
save and back out
you should have a home widget on your screen that when you push navigates to the car
if you now push the home widget it should open your nav software and take you back to your car

Minimalist text widget (doing this from memory so may be a little different)
Download this from the market
make another widget
choose hor 2*1 a black screen will pop up give it a name of your choice
click predefined layout and choose custom
click custom layout and another screen pops up with things like hour minute etc
push and hold each grey icon and drag it to the bin
click the green button to the right
on the menu that pops up choose misc
then choose Locale variable by dragging to the empty bar
now click the grey Locale box and in the popup enter parkedtime
change style to normal and back out to main widget screen
choose your background color
change text style normal to size 40dp
back out and click ok saving it
go into tasker
click on Car Set then disconnected hit the play button lower rh side
the widget on your screen should show the current time
tap on your new widget and then do the following
tick box "start another activity"
choose select activity or shortcut
click to shortcuts
go to tasker
choose shortcut
choose go car on task selection
save and back out
you are done!!
now when you hop out of your car the widget punches in your time of exit and location, when you tap the button it will navigate you back to your car

I AM CURRENTLY WORKING ON THIS TO SET IT SO THAT FOR THE FIRST 15 MIN AFTER A TRIGGER IT WONT RE-ACTIVATE (This to avoid lots of little stops and wasting battery)
AFTER 15-30 MIN IT WILL POPUP AND ASK YOU IF YOU WANT TO SAVE YOUR LOCATION
AFTER 30 MIN IT RESETS TO RUN FULLY

Looked so far at using a variable %STATE where it toggles between 0, 1, 2
0 = full run 1=0-15min and 2=15-30 min
this is to avoid it running the whole time you are out and it only triggers on bluetooth disconnect checking what states its in

Not happy with the results so far so I am now looking at using variables
%CURRENTTIME (current time in seconds)
%TIME15 (current time plus 15 min in seconds)
%TIME30 (current time plus 30 in seconds)
when it triggers it checks %CURRENTTIME against %TIME15 and %TIME30 to see what the status is.
if its between the stamp %CURRENTTIME and %TIME15 it will just goto the end of the routine

This is as far as I have got as it needs some whizzy things like goto's to make sure it runs past the original time stamping

ANYONE FEELS LIKE HELPING FEEL FREE :) to add notes to this

I do feel im making it over complicated but cant see how to make it easier, once I crack it it will be simple including using a scene for the pop up

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License